I’m trying to use SDL and SDL_net on Mac OSX Snow Leopard (10.6.2) to compile the ORTS Game environment. I’ve installed all binaryes from the SDL web site. When the ORTS is linking the following error appears:
comp(dbg): libs/serverclient/src/TerrainModule.C
comp(dbg): libs/serverclient/src/TournamentMapTool.C
comp(dbg): libs/kernel/src/SDLMain.m
cc1obj: warning: command line option “-Wno-deprecated” is valid for C++/ObjC++ but not for ObjC
cc1obj: warning: command line option “-felide-constructors” is valid for C++/ObjC++ but not for ObjC
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m:54: warning: unused parameter ?sender?
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m: In function ?CustomApplicationMain?:
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m:173: warning: type of ?argc? defaults to ?int?
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m:173: warning: type of ?argv? defaults to ?int?
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m: At top level:
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m:173: warning: unused parameter ?argc?
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m:173: warning: unused parameter ?argv?
/Users/JE/Desarrollo/Orts/orts/trunk/libs/kernel/src/SDLMain.m:211: warning: unused parameter ?note?
linking bin/orts
ld: warning: in /Library/Frameworks//SDL_net.framework/SDL_net, missing required architecture x86_64 in file
Undefined symbols:
"_SDLNet_TCP_GetPeerAddress", referenced from:
Server::run(std::basic_string<char, std::char_traits, std::allocator > const&, Server::Options&)in libs.serverclient.src.Server.o
"_SDLNet_ResolveHost", referenced from:
TCP_Client::connect(char const*, int)in libs.network.src.TCP_Client.o
TCP_Server::init_listen(int) in libs.network.src.TCP_Server.o
"_SDLNet_TCP_Close", referenced from:
TCP_Client::close() in libs.network.src.TCP_Client.o
TCP_Server::close() in libs.network.src.TCP_Server.o
TCP_Server::handle_connection() in libs.network.src.TCP_Server.o
Server::~Server()in libs.serverclient.src.Server.o
Server::~Server()in libs.serverclient.src.Server.o
Server::~Server()in libs.serverclient.src.Server.o
"_SDLNet_Init", referenced from:
SDLinit::network_init() in libs.kernel.src.SDLinit.o
SDLinit::video_init() in libs.kernel.src.SDLinit.o
"_SDLNet_Quit", referenced from:
SDLinit::network_init() in libs.kernel.src.SDLinit.o
"_SDLNet_TCP_Accept", referenced from:
TCP_Server::handle_connection() in libs.network.src.TCP_Server.o
"OBJC_CLASS$_NSAppleMenuController", referenced from:
__objc_classrefs__DATA at 0 in libs.kernel.src.SDLMain.o
"_SDLNet_TCP_Open", referenced from:
TCP_Client::connect(char const*, int)in libs.network.src.TCP_Client.o
TCP_Server::init_listen(int) in libs.network.src.TCP_Server.o
"_SDLNet_TCP_Recv", referenced from:
IO_Buffer::blocking_read(void*, int)in libs.network.src.IO_Buffer.o
Text_IO_Buffer::probing_blocking_read(void*) in libs.network.src.Text_IO_Buffer.o
"_SDLNet_TCP_Send", referenced from:
IO_Buffer::blocking_write(void*, int)in libs.network.src.IO_Buffer.o
Text_IO_Buffer::blocking_write(void*, int)in libs.network.src.Text_IO_Buffer.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bin/orts] Error 1
It seems that the problem is in SDL_net. When I install SDL_net.dmg (uploaded to SDL_Clipboard) the output is:
linking bin/orts
Undefined symbols:
“OBJC_CLASS$_NSAppleMenuController”, referenced from:
__objc_classrefs__DATA at 0 in libs.kernel.src.SDLMain.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bin/orts] Error 1
for any reason, the binaries i’ve get from the official page don’t work .The E.wing’s SDL_net posted on the clipboard seems to work, but I need the SDL to or help to install,configure y use the official binaries. I compiled ORTS on an Ubuntu 9.10 without any problem, but don’t know what happens on Mac OS X. Thanks in advance:
JE (elche).