Topic: [HELP] Compiling TRUNK on MAC?
Hello, i have a Problem with Compiling the Teeworlds Trunk with Mac OSX 10.6.2
i've tried all but is doesn't work
i have:
XCode
SDL.Frameworks
bam-0.4.0
the source [it works to compile with windows and linux]
here is the the the message:
Last login: Sun Dec 19 12:23:12 on ttys000
94-245-228-170:~ franzreuter$ cd bam
94-245-228-170:bam franzreuter$ ./make_unix.sh
94-245-228-170:bam franzreuter$ cd ..
94-245-228-170:~ franzreuter$ cd daReida
94-245-228-170:daReida franzreuter$ ../bam/bam server_release
bam: warning: cache file is invalid, generating new one
[ 1/66] #1 c src/osxlaunch/server.m
<built-in>:0: warning: Mac OS X version 10.5 or later is needed for use of the new objc abi
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:12,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/osxlaunch/server.m:1:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
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/Foundation.framework/Headers/Foundation.h:6,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/osxlaunch/server.m:1:
/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/Foundation.framework/Headers/Foundation.h:9,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/osxlaunch/server.m:1:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/objc/objc.h:34:6: error: #error 64-bit not supported
In file included from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:104,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/osxlaunch/server.m:1:
/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/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/ApplicationServices.framework/Headers/ApplicationServices.h:20,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:104,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/osxlaunch/server.m:1:
/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/ApplicationServices.framework/Headers/ApplicationServices.h:20,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:104,
from /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from src/osxlaunch/server.m:1:
/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)
bam: 'objs/osxlaunch/server.o' error 256
[ 2/66] #1 c++ src/engine/shared/compression.cpp
[ 3/66] #1 c++ src/engine/shared/config.cpp
[ 4/66] #1 c++ src/engine/shared/console.cpp
src/engine/shared/console.cpp:3:15: error: new: No such file or directory
src/engine/shared/console.cpp: In member function ‘virtual void CConsole::ExecuteLineStroked(int, const char*)’:
src/engine/shared/console.cpp:220: error: no matching function for call to ‘operator new(long unsigned int, CConsole::CResult*)’
<built-in>:0: note: candidates are: void* operator new(long unsigned int)
bam: 'objs/engine/shared/console.o' error 256
[ 5/66] #1 c++ src/engine/shared/datafile.cpp
[ 6/66] #1 c++ src/engine/shared/demo.cpp
[ 7/66] #1 c++ src/engine/shared/engine.cpp
[ 8/66] #1 c++ src/engine/shared/huffman.cpp
[ 9/66] #1 c++ src/engine/shared/jobs.cpp
[10/66] #1 c++ src/engine/shared/kernel.cpp
[11/66] #1 c++ src/engine/shared/linereader.cpp
[12/66] #1 c++ src/engine/shared/map.cpp
[13/66] #1 c++ src/engine/shared/masterserver.cpp
[14/66] #1 c++ src/engine/shared/memheap.cpp
[15/66] #1 c++ src/engine/shared/network.cpp
[16/66] #1 c++ src/engine/shared/network_client.cpp
[17/66] #1 c++ src/engine/shared/network_conn.cpp
[18/66] #1 c++ src/engine/shared/network_server.cpp
[19/66] #1 c++ src/engine/shared/packer.cpp
[20/66] #1 c++ src/engine/shared/ringbuffer.cpp
[21/66] #1 c++ src/engine/shared/snapshot.cpp
[22/66] #1 c++ src/engine/shared/storage.cpp
[23/66] #1 c src/base/system.c
In file included from src/base/system.c:5:
/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:32:
/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:32:
/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:32:
/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:32:
/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:32:
/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:96: warning: implicit declaration of function ‘va_start’
src/base/system.c:102: warning: implicit declaration of function ‘va_end’
bam: 'objs/base/system.o' error 256
[24/66] #1 c++ src/engine/server/register.cpp
[25/66] #1 c++ src/engine/server/server.cpp
[26/66] #1 c++ src/game/collision.cpp
[27/66] #1 network_header > src/game/generated/protocol.h
[28/66] #1 c++ src/game/gamecore.cpp
[29/66] #1 c++ src/game/layers.cpp
[30/66] #1 c++ src/game/localization.cpp
[31/66] #1 cmd5 src/game/generated/nethash.c
[32/66] #1 c src/game/generated/nethash.c
[33/66] #1 network_source > src/game/generated/protocol.cpp
[34/66] #1 c++ src/game/generated/protocol.cpp
[35/66] #1 server_content_header > src/game/generated/server_data.h
[36/66] #1 c++ src/game/server/entities/character.cpp
src/game/server/entities/character.cpp:3:15: error: new: No such file or directory
bam: 'objs/game/server/entities/character.o' error 256
[37/66] #1 c++ src/game/server/entities/flag.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/player.h:7,
from src/game/server/gamecontext.h:15,
from src/game/server/entities/flag.cpp:3:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/entities/flag.o' error 256
[38/66] #1 c++ src/game/server/entities/laser.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/player.h:7,
from src/game/server/gamecontext.h:15,
from src/game/server/entities/laser.cpp:4:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/entities/laser.o' error 256
[39/66] #1 c++ src/game/server/entities/pickup.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/player.h:7,
from src/game/server/gamecontext.h:15,
from src/game/server/entities/pickup.cpp:4:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/entities/pickup.o' error 256
[40/66] #1 c++ src/game/server/entities/projectile.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/player.h:7,
from src/game/server/gamecontext.h:15,
from src/game/server/entities/projectile.cpp:4:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/entities/projectile.o' error 256
[41/66] #1 c++ src/game/server/entity.cpp
In file included from src/game/server/entity.cpp:4:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/entity.o' error 256
[42/66] #1 c++ src/game/server/eventhandler.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/player.h:7,
from src/game/server/gamecontext.h:15,
from src/game/server/eventhandler.cpp:4:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/eventhandler.o' error 256
[43/66] #1 c++ src/game/server/gamecontext.cpp
src/game/server/gamecontext.cpp:3:15: error: new: No such file or directory
src/game/server/gamecontext.cpp: In member function ‘void CGameContext::Clear()’:
src/game/server/gamecontext.cpp:70: error: no matching function for call to ‘operator new(long unsigned int, CGameContext* const)’
<built-in>:0: note: candidates are: void* operator new(long unsigned int)
bam: 'objs/game/server/gamecontext.o' error 256
[44/66] #1 c++ src/game/server/gamecontroller.cpp
In file included from src/game/server/entities/pickup.h:6,
from src/game/server/gamecontroller.cpp:8:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/gamecontroller.o' error 256
[45/66] #1 c++ src/game/server/gamemodes/ctf.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/gamemodes/ctf.cpp:4:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/gamemodes/ctf.o' error 256
[46/66] #1 c++ src/game/server/gamemodes/dm.cpp
[47/66] #1 c++ src/game/server/gamemodes/mod.cpp
[48/66] #1 c++ src/game/server/gamemodes/tdm.cpp
In file included from src/game/server/entities/character.h:6,
from src/game/server/gamemodes/tdm.cpp:3:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/gamemodes/tdm.o' error 256
[49/66] #1 c++ src/game/server/gameworld.cpp
In file included from src/game/server/gameworld.cpp:5:
src/game/server/entity.h:6:15: error: new: No such file or directory
bam: 'objs/game/server/gameworld.o' error 256
[50/66] #1 c++ src/game/server/player.cpp
src/game/server/player.cpp:3:15: error: new: No such file or directory
bam: 'objs/game/server/player.o' error 256
[51/66] #1 server_content_source > src/game/generated/server_data.cpp
[52/66] #1 c++ src/game/generated/server_data.cpp
[53/66] #1 c src/engine/external/zlib/adler32.c
[54/66] #1 c src/engine/external/zlib/compress.c
[55/66] #1 c src/engine/external/zlib/crc32.c
[56/66] #1 c src/engine/external/zlib/deflate.c
[57/66] #1 c src/engine/external/zlib/gzio.c
In file included from src/engine/external/zlib/gzio.c:601:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
src/engine/external/zlib/gzio.c: In function ‘gzprintf’:
src/engine/external/zlib/gzio.c:610: warning: implicit declaration of function ‘va_start’
src/engine/external/zlib/gzio.c:628: warning: implicit declaration of function ‘va_end’
bam: 'objs/engine/external/zlib/gzio.o' error 256
[58/66] #1 c src/engine/external/zlib/infback.c
[59/66] #1 c src/engine/external/zlib/inffast.c
[60/66] #1 c src/engine/external/zlib/inflate.c
[61/66] #1 c src/engine/external/zlib/inftrees.c
[62/66] #1 c src/engine/external/zlib/trees.c
[63/66] #1 c src/engine/external/zlib/uncompr.c
[64/66] #1 c src/engine/external/zlib/zutil.c
bam: error: a build step failed
94-245-228-170:daReida franzreuter$ ../bam/bam
then i've tried ../bam/bam config
94-245-228-170:daReida franzreuter$ ../bam/bam config
configuration:
AUTO compiler gcc
AUTO stackprotector yes
AUTO zlib (in system path)
AUTO sdl using osx framework
AUTO freetype using freetype-config
notes:
saved configuration to 'config.lua'
94-245-228-170:daReida franzreuter$
When I try it again the Error comes again...
PLEASE HELP ME!
thx
da Reida