1,079
edits
(→PPC build: update instructions for crosscompiling) |
(→PPC build: Remove refs to MPEG2) |
||
(2 intermediate revisions by one other user not shown) | |||
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. | ||
First, there | First, there a minor change we have to do to the ScummVM <code>config.mk</code> file. | ||
Find the line that says: | Find the line that says: | ||
Line 51: | Line 54: | ||
STATICLIBPATH=/opt/1028libs | STATICLIBPATH=/opt/1028libs | ||
Next | Next we also have to modify the <code>ports.mk</code> file. | ||
Find the section that starts with: | |||
scummvm-static: $(OBJS) | scummvm-static: $(OBJS) | ||
This is the part of <code>ports.mk</code> that compiles our static binary (so we can distribute it to others without them having to have all the libraries installed) | This is the part of <code>ports.mk</code> that compiles our static binary (so we can distribute it to others without them having to have all the libraries installed) | ||
Line 72: | Line 77: | ||
./configure \ | ./configure \ | ||
--with-sdl-prefix=/opt/1028libs/bin \ | --with-sdl-prefix=/opt/1028libs/bin \ | ||
--with-mad-prefix=/opt/1028libs \ | |||
--with-ogg-prefix=/opt/1028libs --with-vorbis-prefix=/opt/1028libs \ | --with-ogg-prefix=/opt/1028libs \ | ||
--with-vorbis-prefix=/opt/1028libs \ | |||
--with-flac-prefix=/opt/1028libs | --with-flac-prefix=/opt/1028libs | ||
edits