Compiling ScummVm for Riven Specifically

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
zxspectrum22
Posts: 2
Joined: Wed Mar 30, 2022 9:35 am

Compiling ScummVm for Riven Specifically

Post by zxspectrum22 »

a Few months ago I bought riven on gog and attempted to swap the provided scummvm with a GNU/Linux native build. I started by cloning the source and building it and ended up with a 300MB file. The File provided with the game was only a few megabytes. I assume the scummvm i compiled was for everything. Is there something I have todo to only compile what I need for Riven.
Thanks in advance.
User avatar
Praetorian
ScummVM Developer
Posts: 797
Joined: Tue May 08, 2007 8:54 am
Location: Greece
Contact:

Re: Compiling ScummVm for Riven Specifically

Post by Praetorian »

zxspectrum22 wrote: Wed Jun 15, 2022 3:00 pm a Few months ago I bought riven on gog and attempted to swap the provided scummvm with a GNU/Linux native build. I started by cloning the source and building it and ended up with a 300MB file. The File provided with the game was only a few megabytes. I assume the scummvm i compiled was for everything. Is there something I have todo to only compile what I need for Riven.
Thanks in advance.
Your configure command should look something like this:

Code: Select all

./configure --disable-all-engines --enable-engine=riven --disable-debug --enable-release
You could probably also get away with disabling other subsystems and components you won't be using

Code: Select all

./configure --disable-all-engines --enable-engine=riven --disable-debug --enable-release --disable-jpeg --disable-fluidsynth --disable-fribidi --disable-flac --disable-tts --disable-ogg --disable-gif --disable-mpeg2 --disable-fluidlite --disable-bink --disable-tinygl --disable-faad --disable-a52 --disable-theoradec --disable-vorbis --disable-tremor --disable-lua --disable-mt32emu --disable-seq-midi --disable-sndio --disable-timidity --disable-opl2lpt --disable-retrowave --disable-nuked-opl --disable-opengl-game-shaders --disable-detection-full --no-builtin-resources 
Then you do your:

Code: Select all

make -j$(nrpoc)
And then optionally, if you've specified a target folder (with --prefix) and want the distribution files as well:

Code: Select all

make install
zxspectrum22
Posts: 2
Joined: Wed Mar 30, 2022 9:35 am

Re: Compiling ScummVm for Riven Specifically

Post by zxspectrum22 »

Perfect. Thank you very much!
Post Reply