Topic: [QUESTION]How to compile Teeworlds on mac os x
Hallo,
i want to know how i can compile teeworlds on mac os x
it would be lovely if anyone can explain me that.
-Stripe
You are not logged in. Please login or register.
Teeworlds Forum → Development → [QUESTION]How to compile Teeworlds on mac os x
Hallo,
i want to know how i can compile teeworlds on mac os x
it would be lovely if anyone can explain me that.
-Stripe
http://teeworlds.com/trac/teeworlds/wik … Everything
Short version:
1: install XCode with the 10.4 SDK version (you will have to modify stuff otherwise)
2: install SDL.framework from libsdl.org into /Library/Frameworks
3: get and build bam (the build system used)
4: get and build teeworlds source
Thank you
*push*
hihi sorry...
Please do not "push" existing topics unless there is something useful to add. This kind of topics cause unnecessary spam and won't get the question answered any faster. // ~{MS}~ Azon
Okey sry for trippel or 4th post xD that is the code that appears when i compile
bam: building 'release'
[1/129] #1 c src/base/system.c
In file included from src/base/system.c:4:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from src/base/system.c:31:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:6: error: #error 64-bit not supported
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
from src/base/system.c:31:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:20:6: error: #error 64-bit not supported
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
from src/base/system.c:31:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/float.h:8:24: error: float.h: No such file or directory
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
from src/base/system.c:31:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:286: error: expected ‘)’ before ‘*’ token
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:287: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ExceptionHandlerUPP’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:297: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NewExceptionHandlerUPP’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:308: error: expected ‘)’ before ‘userUPP’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:320: error: expected ‘)’ before ‘*’ token
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:331: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ExceptionHandlerTPP’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:332: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ExceptionHandler’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:342: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘InstallExceptionHandler’
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:161,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:24,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
from src/base/system.c:31:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h:1338: error: ‘SIGDIGLEN’ undeclared here (not in a function)
src/base/system.c: In function ‘dbg_msg’:
src/base/system.c:94: warning: implicit declaration of function ‘va_start’
src/base/system.c:100: warning: implicit declaration of function ‘va_end’
bam: command returned error: 256
bam: error during build
Hope I get Help
-Stripe
Looks like your SDK install is broken, or our build scripts are broken for your SDK version
What OS version, SDK version? Do you have the 10.4 directory it looks for in those paths?
the SDK versions i have are:
macOSX.10.4
macOSX.10.5
macOSX.10.6
the SDKs are in Developer/SDKs
i have a new mac book pro version 10.6.2
Hope for fast help
-Stripe
Haven't tried building with 10.6 as I only have 10.5... you can try to edit the build file (default.bam) to use a newer SDK version. Just open it and search for 10.4.
Yeah, tadaa I did it
Thank You, and now for these guys who have the same problems:
1.Download the teeworlds src
2.Open default.bam with textedit
3.Change these lines:
settings.cc.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.4u.sdk")
settings.link.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.4u.sdk")
To
settings.cc.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.6.sdk")
settings.link.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.6.sdk")
now you can compile Teeworlds
------------------------------------------
If you want you can make it sticky
Teeworlds Forum → Development → [QUESTION]How to compile Teeworlds on mac os x
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.