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

Jump to navigation Jump to search
add first part of making the bundle
m (added another link to the problems section)
(add first part of making the bundle)
Line 2: Line 2:


= 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
* When making the bundle, I get linker errors complaining about an "illegal reference to symbol" and "defined in indirectly referenced dynamic library".
** <tt>common/libcommon.a(file.o) illegal reference to symbol: _CFBundleCopyResourceURL defined in indirectly referenced dynamic library /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation</tt>
** <tt>backends/libbackends.a(quicktime.o) illegal reference to symbol: _CloseComponent defined in indirectly referenced dynamic library /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore</tt>


= Getting a Compiler =
= Getting a Compiler =
Line 83: Line 85:


== Bundle ==
== Bundle ==
TODO (See [[Compiling_ScummVM/MacOS_X_10.2.8#Problems|Problems]])
We have to modify the makefile a bit, so open it up
 
=== OSXOPT ===
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.
 
=== Make zlib Static ===
Add
OSX_STATIC_LIBS += $(OSXOPT)/lib/libz.a
after
ifdef USE_MPEG2
OSX_STATIC_LIBS += $(OSXOPT)/lib/libmpeg2.a
endif
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
'''TODO''' (See [[Compiling_ScummVM/MacOS_X_10.2.8#Problems|Problems]])


= Notes =
= Notes =
2,051

edits

Navigation menu