Closed FaultyRAM closed 10 years ago
I have a feeling it has something to do with the CMake script being too general with its if conditions. i.e. if(WIN32) assumes that MSVC is used.
Same error while trying to build on Gentoo Linux :
CMakeFiles/openjk_sp.i386.dir/server/sv_world.cpp.o: In function CGhoul2Info_v::InfoArray() const': sv_world.cpp:(.text._ZNK13CGhoul2Info_v9InfoArrayEv[CGhoul2Info_v::InfoArray() const]+0x7): undefined reference to
TheGameGhoul2InfoArray()'
CMakeFiles/openjk_sp.i386.dir/game/genericparser2.cpp.o: In function CTextPool::CTextPool(int)': genericparser2.cpp:(.text+0x317): undefined reference to
gi'
CMakeFiles/openjk_sp.i386.dir/game/genericparser2.cpp.o: In function CTextPool::~CTextPool()': genericparser2.cpp:(.text+0x348): undefined reference to
gi'
collect2: ld returned 1 exit status
make[2]: *\ [openjk_sp.i386] Error 1
At the moment, GCC/MinGW 4.8.1 won't compile the code base. Once some easily-fixed issues are resolved (not including <string> on Windows, not expecting OpenAL-Soft on Windows, using DirectInput constants - which aren't actually constants - as switch cases), the build hits a show-stopper during the linker phase:
Tested with MSYS Makefile, Code::Blocks/MinGW and Code::Blocks/Unix systems, on Windows XP SP3 w/ MinGW-Builds GCC 4.8.1 rev. 1.