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

Jump to navigation Jump to search
→‎Bundle: changed ref pointing to Makefile to point to ports.mk
m (added another link to the problems section)
(→‎Bundle: changed ref pointing to Makefile to point to ports.mk)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
So, I'm going to attempt to document how I was able to compile ScummVM on my 10.2.8 laptop*. However, if you don't have 10.2.8, I recommend you check out the [[Compiling ScummVM/MacOS X Crosscompiling|cross compiling page]].
So, I'm going to attempt to document how I was able to compile ScummVM on my 10.2.8 laptop*. However, if you don't have 10.2.8, I recommend you check out the [[Compiling ScummVM/Mac OS X Crosscompiling|cross compiling page]].


= Problems =
= Problems =
*kyra uses a lot of templates, and gcc 3.1 can't handle it, so I had to disable it (<tt>--disable-kyra</tt>)
* kyra uses a lot of templates, and gcc 3.1 can't handle it, so I had to disable it (<tt>--disable-kyra</tt>)
*Running <tt>make bundle</tt> leads to linkers errors as it cannot find -lSystemStubs, as it doesn't exist in 10.2.8
* After running <tt>make bundle</tt>, I get "Text::Wrap version >= 2001.0929 is required. You have 98.112902", so it needs to be updated


= Getting a Compiler =
= Getting a Compiler =
Line 70: Line 70:


= Compiling ScummVM =
= Compiling ScummVM =
If you just want the engines that are enabled always just run (see [[Compiling_ScummVM/MacOS_X_10.2.8#Problems|Problems]] about kyra):
If you just want the engines that are enabled always just run (see [[Compiling_ScummVM/Mac OS_X_10.2.8#Problems|Problems]] about kyra):
  ./configure
  ./configure
However, for other ones (such as [[Lure]], [[CruisE]], and [[Drascula]]) run:
However, for other ones (such as [[Lure]], [[CruisE]], and [[Drascula]]) run:
Line 83: Line 83:


== Bundle ==
== Bundle ==
TODO (See [[Compiling_ScummVM/MacOS_X_10.2.8#Problems|Problems]])
We have to modify <code>ports.mk</code> a bit, so open it up
 
=== Change Library Path ===
Change
OSXOPT=/sw
to
OSXOPT=/usr/local
Reason: Fink puts the installs there, but we compiled from scratch, so they're in a different folder.
 
=== Change sdl-config Path ===
Change
OSX_STATIC_LIBS := `sdl-config --static-libs`
to
OSX_STATIC_LIBS := `/usr/local/bin/sdl-config --static-libs`
Reason: It needs to be set to the correct path to find the file.
 
=== Make libfluidsynth Static ===
Add
OSX_STATIC_LIBS += $(OSXOPT)/lib/libfluidsynth.a
after
ifdef USE_MPEG2
OSX_STATIC_LIBS += $(OSXOPT)/lib/libmpeg2.a
endif
Reason: If you compiled with libfluidsynth, it needs to be compiled in statically as well.
 
=== Make zlib Static ===
Add
OSX_STATIC_LIBS += $(OSXOPT)/lib/libz.a
after
OSX_STATIC_LIBS += $(OSXOPT)/lib/libfluidsynth.a
Reason: zlib should be compiled statically to be used on all systems
 
 
Remove
-lz
Reason: We're compiling zlib statically, not dynamically.
 
=== Remove SystemStubs ===
Remove
-lSystemStubs
Reason: Not needed, and not in 10.2.8
 
=== Add CoreFoundation Framework ===
Add
-framework CoreFoundation \
after
-framework CoreMIDI \
Reason: Corrects linker error.
 
=== Add CoreService Framework ===
Add
-framework CoreServices \
after
-framework CoreFoundation \
Reason: Corrects linker error.
 
=== Add CoreAudio Framework ===
Add
-framework CoreAudio \
after
-framework CoreServices \
Reason: Corrects linker error with libfluidsynth.
 
=== Other ===
Change
$(OSX_STATIC_LIBS) \
to
$(OSX_STATIC_LIBS)
Reason: Can cause errors while compiling.
 
 
 
'''TODO''' (See [[Compiling_ScummVM/Mac_OS_X_10.2.8#Problems|Problems]])


= Notes =
= Notes =
1,079

edits

Navigation menu