Open main menu

Difference between revisions of "Compiling ScummVM/Mac OS X Crosscompiling"

→‎PPC build: add info for crosscompiling SDL library
(→‎PPC build: fix previous modification that was partially incorrect)
(→‎PPC build: add info for crosscompiling SDL library)
Line 40: Line 40:


The twist here, is that you should install these libs to a separate location from the regular system libraries. Since we're compiling PPC 10.2 specific versions, we don't want to overwrite our regular libraries. I went with /opt/1028libs/. Just set this with the --prefix option to the ./configure script, for all the libraries you're including. Do this, and make sure you've defined the above environmental libraries both when you do ./configure and when you do make, and you should be set. For some of the libraries you might also need to use the --host=powerpc-apple-darwin option when running the ./configure script.
The twist here, is that you should install these libs to a separate location from the regular system libraries. Since we're compiling PPC 10.2 specific versions, we don't want to overwrite our regular libraries. I went with /opt/1028libs/. Just set this with the --prefix option to the ./configure script, for all the libraries you're including. Do this, and make sure you've defined the above environmental libraries both when you do ./configure and when you do make, and you should be set. For some of the libraries you might also need to use the --host=powerpc-apple-darwin option when running the ./configure script.
To compile the SDL library (and maybe some of the other libraries) you will also need to set CPPFLAGS to a slightly different value than what is written above:
export CPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -nostdinc -I$SDK/usr/include/gcc/darwin/3.3 -isystem $SDK/usr/include -arch ppc -F$SDK/System/Library/Frameworks"


Once you've set up all the dependency libraries, you're ready to build ScummVM itself.
Once you've set up all the dependency libraries, you're ready to build ScummVM itself.
TrustedUser
2,147

edits