Compilation errors on OSX 10.6.8
Hello there,
I'm trying to build deng-1.9.0-beta6.9 on Mac OSX 10.6.8. Xcode version is 3.2.6.
I have of course installed the required frameworks (libsdl, sdl_net, sdl_mixer, libpng) and I'm using cmake 2.8.5, along with gcc 4.2.1.
The problem is that I get some errors about incomplete types during the building process:
any ideas on how to finally build it?
I'm trying to build deng-1.9.0-beta6.9 on Mac OSX 10.6.8. Xcode version is 3.2.6.
I have of course installed the required frameworks (libsdl, sdl_net, sdl_mixer, libpng) and I'm using cmake 2.8.5, along with gcc 4.2.1.
The problem is that I get some errors about incomplete types during the building process:
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c: In function ‘PNG_Load’:
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:122: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:127: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:127: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:132: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:133: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:143: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:144: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:145: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:157: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:157: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:161: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:163: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:164: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:170: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:171: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:172: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:174: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:175: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:176: error: dereferencing pointer to incomplete type
/Users/alfayate/Downloads/deng-1.9.0-beta6.9/doomsday/engine/portable/src/gl_png.c:183: error: dereferencing pointer to incomplete type
make[2]: *** [CMakeFiles/doomsday.dir/engine/portable/src/gl_png.o] Error 1
make[1]: *** [CMakeFiles/doomsday.dir/all] Error 2
make: *** [all] Error 2
any ideas on how to finally build it?
Comments
Of course, you'll need Git to access the sources.
I believe I must pass some options to cmake (32bits only? Snow Leopard is 64bits), but I can't find them.
BTW, how can I tell CMAKE to build a version without SDL_net? It's supposed to be optional but I can't find the right parameter.
Using SDL_net is currently mandatory.
BTW: CMake and SDL on the whole are on their way out, we will be switching to qmake in the near future.
In the directory where Doomsday.app was created (the build dir):
Thanks a lot!