| missing file GL/gl.h - February 03, 2010 - 20:29pm | |
|
SquiSHeR |
Hello, I started another try to compile q2w on OS X (maybe the old problems are now fixed?), but this time I got a nerror from the configure command: It seems to be missing a file. IS this normal? |
It works finally on OS X. Well done!
You're welcome! I've become quite the Mac fan myself lately :)
I think the missing files are libgl headers that you need to install on your system. They are not files that are supposed to come with q2w.
I don't know a thing about MaxOS but if you were on linux, I'd tell you to install libgl-dev. Don't know if that helps you.
Hey spirit,
thanks for your reply. There isn't such a packet called "libgl" in my packet manager here on OS X, but I think I got it already. I think the problem might be that it is in an unusual directory and the compiler can't find it there. I got it in:
/usr/X11/include/GL
and
/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/GL
Usually I would try to edit the makefile to specify this path, but in case of quake2world I don't know where?
Hey SquiSHeR, did you follow the Mac OS X installation how to on the Installation and Maintenance page? The URL is http://quake2world.net/books/documentation/installation-maintenance
The variable
CPPFLAGShas a argument for including the headers in/usr/X11/include/soGL/GH.hshould be accessible by the configure script.BTW check out the output of
./configure --helpfor additional configuration parameters. (Quake2World uses autotools which dynamically generates a makefile for a specific system.)Hello winstonw,
yes I know the OS X howto but you are right I messed it up. I think I forgot to use the configure parameters.
But I'm still getting an error from the make command:
ld: duplicate symbol _qglActiveTexture in client/.libs/libclient.a(libclient_la-cl_main.o) and client/.libs/libclient.a(libclient_la-cl_console.o)
collect2: ld returned 1 exit status
make[3]: *** [quake2world] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Would be so cool if we could fix it. I am looking forward so much to join you in q2w.
SquiSHeR
A shot in the dark, you may need to
make cleanand start building from scratch again usingmake.I tried but it doesn't work. Thank you anyway for the help. I guess I will just have to wait until someone fixes the error. Unfortunately I don't know C. :(