If you encounter this linking error when trying to use FFmpeg to play the movies:
ld: warning: in /usr/lib/libavcodec.a, file was built for unsupported file format which is not the architecture being linked (i386)
it's because configure
has determined that you have a 64-bit capable Intel Mac and sets things up so that the FFmpeg library is compiled for that architecture. On Mac OS X, Homeworld is built as a 32-bit application and needs FFmpeg to be compiled that way too, in order to link successfully. You can force configure
to set things up correctly with:
./configure --arch=x86_32 --target-os=darwin --extra-cflags="-arch i386" --extra-ldflags="-arch i386"