Difference between revisions of "Compiling ScummVM/RPI"

Jump to navigation Jump to search
Line 17: Line 17:
== Installing the needed Raspberry Pi headers and libraries on PC ==
== Installing the needed Raspberry Pi headers and libraries on PC ==


We need to copy over the '''/usr''', '''/lib''' and '''/opt''' directories from your Raspbian SD Card to your host PC (the computer were you will do the cross-compilation) for the needed headers and libraries to be available.
We need to copy over the '''/usr''', '''/lib''' and '''/opt''' directories from your Raspbian SD Card to your '''host PC''' (the computer were you will do the cross-compilation) for the needed headers and libraries to be available.


Of course, first you'll have to install any additional libraries from Raspbian running on the Pi before expecting them to be available so, if you want compile ScummVM with FLAC support, you should have installed the libflac development libraries on the Pi beforehand.
Of course, first you'll have to install any additional libraries from Raspbian running on the Pi before expecting them to be available so, if you want compile ScummVM with FLAC support, you should have installed the libflac development libraries on the Pi beforehand.
Line 43: Line 43:
             libsdl2-net-dev \
             libsdl2-net-dev \
             libspeechd-dev \
             libspeechd-dev \
             zlib1g-dev
             zlib1g-dev</nowiki>
</nowiki>


First we export the path where we will copy these into, and then we will manually copy them. I choose /opt/rpi_root, but any other path with the right permissions for your user and common sense is going to be ok:
On the '''host PC''' we first export the path where we will copy these into, and then we manually copy them. I choose to copy the Raspberry Pi headers and libraries to ''/opt/rpi_root'', but any other path with the right permissions for your user (within common sense) should be ok:


  <nowiki>
  <nowiki>