Topic: Compiling on OSX 10.9 Mavericks
Hello,
I've been working at it for a while to try and solve this but I'm hoping someone in the community can help me figure this out so it will be available for everyone. I will gladly make a tutorial once I get it sorted
I have teeworlds 0.6.2 source, I have successfully compiled bam 0.40, I have installed SDL 1.2 and 2.0 to /Library/Frameworks/
I have changed bam.lua to
11: config:Add(OptTestCompileC("minmacosxsdk", "int main(){return 0;}", "-mmacosx-version-min=10.5 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"))
157: settings.cc.flags:Add("-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk")
158: settings.link.flags:Add("-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk")
I have changed sdl.lua to the SDL2 location (as a test, didn't work)
I'm not really sure where the final puzzle piece goes here, any help would be appreciated
Here is the error I'm getting
./bam client_release
auto configuration
configuration:
AUTO compiler gcc
AUTO stackprotector yes
AUTO minmacosxsdk yes
AUTO macosxppc no
AUTO zlib (in system path)
AUTO sdl using osx framework
AUTO freetype using freetype-config
notes:
saved configuration to 'config.lua'
[1/2] #1 link teeworlds_x86_64
ld: framework not found SDL.framework
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'teeworlds_x86_64' error 256
[2/2] #1 link teeworlds_x86
ld: framework not found SDL.framework
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'teeworlds_x86' error 256
bam: error: a build step failed