Original Post
Hi I use Open GL sparingly for visualization. I am running RedHat Enterprise for Linux on a dual processor machine. I could sure use some clarity with regards to libraries, what to use and what not to use. I have been in the past on a different machine been using nehe's tutorial for the basis of what I am doing. However I am running into real problems with compatibility of my new set-up with old code. I believe I have installed GLX and FreeGlut. One can get very basic samples working with free glut. However I seem to have problems with the X - windows routines. This is the compilation output: cc -L/usr/X11R6/lib -lGL -lGLU -lm -lgd Viewer.o -o Viewer /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGL.a when searching for -lGL /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGLU.so when searching for -lGLU /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGLU.a when searching for -lGLU Viewer.o(.text+0x19e8): In function #include #include #include #include #include #include "math.h" #include #include #include #include "gd.h" #include "Variables.h" Is there anything obvious that I should try?? It would seem GLX is not work as it should. Does anyone have any pointers to get this rectified. Thanks
killGLWindow()': : undefined reference to XF86VidModeSwitchToMode' Viewer.o(.text+0x1a04): In function killGLWindow()': : undefined reference to XF86VidModeSetViewPort' Viewer.o(.text+0x1a76): In function createGLWindow(char*, int, int, int, int)': : undefined reference to XF86VidModeQueryVersion' Viewer.o(.text+0x1aa5): In function createGLWindow(char*, int, int, int, int)': : undefined reference to XF86VidModeGetAllModeLines' Viewer.o(.text+0x1c6b): In function createGLWindow(char*, int, int, int, int)': : undefined reference to XF86VidModeSwitchToMode' Viewer.o(.text+0x1c87): In function createGLWindow(char*, int, int, int, int)': : undefined reference to XF86VidModeSetViewPort' collect2: ld returned 1 exit status make: *** [Viewer] Error 1 --Viewer.cpp head --- * * This code was created by Jeff Molofee '99 * (ported to Linux/GLX by Mihael Vrbanec '00) * * If you've found this code useful, please let me know. * * Visit Jeff at http://nehe.gamedev.net/ * * or for port-specific comments, questions, bugreports etc. * email to Mihael.Vrbanec@stud.uni-karlsruhe.de */ #include