Development Setup for Macos

Hello everyone,

after some years, I’m trying to revive an old mod I’ve written for quake3 (around the release of 1.32).
To do that, I’d like to compile and run ioquake3 from within my IDE (Jetbrains clion). Unfortunately I’m currently failing at building ioquake3 based on the steps described in http://wiki.ioquake3.org/Building_ioquake3_on_Mac

I’m confronted with the following error during linking:

make[2]: `build/release-darwin-x86_64/libSDL2-2.0.0.dylib' is up to date.
Undefined symbols for architecture x86_64:
Undefined symbols for architecture x86_64:
  "_g_localTeamPref", referenced from:
  "_g_localTeamPref", referenced from:
      _gameCvarTable in g_main.o
      _gameCvarTable in g_main.o
      _G_InitSessionData in g_session.o
      _G_InitSessionData in g_session.o
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [build/release-darwin-x86_64/missionpack/qagamex86_64.dylib] Error 1
make[2]: *** Waiting for unfinished jobs....

Does anyone know, what could be the cause of that? And what is the suggested way to start ioquake3 from within the IDE (including debugging support)?

Thank you for any help.

oh well… it was actually my own fault. During merging of my code, I accidentally deleted the g_localTeamPref declaration.

Regarding the development setup: I’ve created a clion launch configuration of type “Make Application” that runs the debug-Target and the executable build/debug-darwin-x86_64/ioquake3.x86_64

2 Likes