Difference between revisions of "Compiling ScummVM/RPI"

Jump to navigation Jump to search
→‎Configuring ScummVM: Mention --no-keep-memory option for linking on a RPi itself.
(→‎Configuring ScummVM: Mention --no-keep-memory option for linking on a RPi itself.)
(One intermediate revision by the same user not shown)
Line 32: Line 32:


Now we configure scummvm buildsystem so it knows what backend we want and where is our raspberry pi local sysroot living, containing the Raspberry Pi headers and libs the cross-compiler and linker will need. In this example configuration, we disable additional libs, and debug symbols since it's intended for final users.
Now we configure scummvm buildsystem so it knows what backend we want and where is our raspberry pi local sysroot living, containing the Raspberry Pi headers and libs the cross-compiler and linker will need. In this example configuration, we disable additional libs, and debug symbols since it's intended for final users.
Depending on whether we want dispmanx support, we would pass the --enable-dispmanx parameter to the configure script.
For example, we would run configure like this to build scummvm with dispmanx support enabled:


./configure --host=raspberrypi --with-sdl-prefix=$RPI_ROOT/usr  --disable-debug --enable-release --enable-optimizations --disable-mt32emu --disable-flac --disable-mad --disable-vorbis --disable-tremor --disable-fluidsynth --disable-taskbar --disable-timidity --disable-alsa
./configure --host=raspberrypi --with-sdl-prefix=$RPI_ROOT/usr  --disable-debug --enable-release --enable-optimizations --disable-mt32emu --disable-flac --disable-mad --disable-vorbis --disable-tremor --disable-fluidsynth --disable-taskbar --disable-timidity --disable-alsa
Line 40: Line 37:
Remember you should have exported the RPI_ROOT enviroment variable previously.
Remember you should have exported the RPI_ROOT enviroment variable previously.
On the raspberrypi host, SDL2 will be always used since it provides graphics acceleration.
On the raspberrypi host, SDL2 will be always used since it provides graphics acceleration.
''Note:'' If you are building ScummVM on your RPi itself, you might run out of memory during linking. If you use GNU ld for compiling you can try exporting LDFLAGS="-Wl,--no-keep-memory" before running configure. This tells GNU ld to optimize for memory usage.


== Compiling ScummVM ==
== Compiling ScummVM ==
561

edits

Navigation menu