Difference between revisions of "Compiling ScummVM/RPI"

Jump to navigation Jump to search
(→‎Installing the needed Raspberry Pi headers and libraries on PC: added libfribidi-dev and libglew-dev installation to apt-get)
Line 22: Line 22:


As an example, on the Raspberry Pi running Raspbian (Buster) OS 3.2 (January 2020) we can execute the following to install third party libraries that ScummVM needs for its features and various game engines:
As an example, on the Raspberry Pi running Raspbian (Buster) OS 3.2 (January 2020) we can execute the following to install third party libraries that ScummVM needs for its features and various game engines:
  sudo apt-get update
  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get upgrade
Line 47: Line 45:
               libglew-dev
               libglew-dev


On the '''host PC''' we first export the path where we will copy these into, and then we manually copy them. One option (shown in the example commands below) is to copy the Raspberry Pi headers and libraries to ''/opt/rpi_root'', but any other path with the right permissions for our user (within common sense) should be ok:
On the '''host PC''' first we make sure we have some pre-requisite packages install for the build.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get make pkg-config
Then we export the path where we will copy the directories from the RPi SD card into, and then we manually copy them. One option (shown in the example commands below) is to copy the Raspberry Pi headers and libraries to ''/opt/rpi_root'', but any other path with the right permissions for our user (within common sense) should be ok:


  <nowiki>
  mkdir -p /opt/rpi_root
mkdir -p /opt/rpi_root
export RPI_ROOT=/opt/rpi_root
export RPI_ROOT=/opt/rpi_root
cd <Raspbian_SD_card_mountpoint_directory>
cd <Raspbian_SD_card_mountpoint_directory>
cp -R usr lib opt $RPI_ROOT
cp -R usr lib opt $RPI_ROOT</nowiki>


The above copying of files has the unfortunate side-effect that many symbolic links that were copied over are now invalid, particularly those linking to absolute paths. Fortunately, we can remedy this situation by downloading and running a python script that will fix those links:
The above copying of files has the unfortunate side-effect that many symbolic links that were copied over are now invalid, particularly those linking to absolute paths. Fortunately, we can remedy this situation by downloading and running a python script that will fix those links: