I own a 20" first generation Intel iMac. I tried to compile BZFlag 2.0.10 from source using XCode, but I got an error while it was compiling. If anyone with any knowledge on this matter would be kind enough to give me any help, it would be greatly appreciated!
OpenGLGState.cxx:1582:24: error: GL/glx.h: No such file or directory
OpenGLGState.cxx:1582:24: error: GL/glx.h: No such file or directory
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -DINSTALL_DATA_DIR=\"/usr/local/share/bzflag\" -fsigned-char -Wno-deprecated -g -O2 -pipe -pedantic -fno-exceptions -W -Wall -Wundef -Wno-import -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -O0 -c RenderNode.cxx -fno-common -DPIC -o .libs/RenderNode.o
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -DINSTALL_DATA_DIR=\"/usr/local/share/bzflag\" -fsigned-char -Wno-deprecated -g -O2 -pipe -pedantic -fno-exceptions -W -Wall -Wundef -Wno-import -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -O0 -c RenderNode.cxx -o RenderNode.o >/dev/null 2>&1
OpenGLGState.cxx: In static member function 'static bool OpenGLGState::haveGLContext()':
OpenGLGState.cxx:1597: error: 'glXGetCurrentContext' was not declared in this scope
OpenGLGState.cxx: In static member function 'static bool OpenGLGState::haveGLContext()':
OpenGLGState.cxx:1597: error: 'glXGetCurrentContext' was not declared in this scope
OpenGLGState.cxx:1602: warning: control reaches end of non-void function
OpenGLGState.cxx:1602: warning: control reaches end of non-void function
lipo: can't open input file: /var/tmp//ccnSuCPu.out (No such file or directory)
make[2]: *** [OpenGLGState.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
** BUILD FAILED **
Turns out I have XCode 2.2.1. The newest version is apparently XCode 3.0, but that is a part of Mac OS 10.5 Leopard, and I have Mac OS 10.4 Tiger. To upgrade to XCode 3.0 I would have to buy Leopard.
checking GL/glx.h usability... no
checking GL/glx.h presence... no
checking for GL/glx.h... no
These should be included with Xcode (any version), so the issue is confusing. Try updating to the latest Xcode tools, and if you still can't build, you might try building from the command line first (and then using Xcode to create the final package).
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
It looks like it's not configured correctly. Macs should not be using GLX calls, they should be using Apple's GL Framework. Try re-running configure and/or editing config.h as applicable.
DTRemenak wrote:It looks like it's not configured correctly. Macs should not be using GLX calls, they should be using Apple's GL Framework. Try re-running configure and/or editing config.h as applicable.
DTRemenak wrote:It looks like it's not configured correctly. Macs should not be using GLX calls, they should be using Apple's GL Framework. Try re-running configure and/or editing config.h as applicable.
How might one go about doing that?
To run configure, launch Terminal.app. Then, cd into the BZFlag source directory, and run ./configure
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)