I just typed my first C simple program with (freeglut3 and freeglut3 developer versions 2.4.0-4) under Ubuntu Dapper Drake. The code comes from graphics textbook.
The problem I have, after loading the proper inlcude files (freeglut_std.h and freeglut_ext.h) is that I get lots of undefined refernces “glutInitWindowPosition, glBegin, GlMatrixMode, …” practically all OpenGL keyword in the program.
As if for some reason, the header files are not used.
Hello and Thanks. Things are far better now. However, I got the message when running the program:
" freeglut (./graphics): OpenGL GLX extension not supported by display ‘:0.0’ "
What does ‘glxinfo’ returns ?
What graphic card do you have ?
What driver do you use (in /etc/X11/XF86Config or in /etc/X11/xorg.org depending on which X you are running) ?
The program you show is well, I also have searched and found that the headers you use are also well but the fact that including glut.h is somewhat better (it only include the std part not the ext one). But I guess this won’t solve your problem.
i think “nv” is an unaccelerated open source nvidia driver. did you download and install the actual nvidia driver from their homepage? if you haven’t already, go for it now. if you already have, try to remove the ‘Load “nv”’ line from the xorg.conf file and restart the x server.
You don’t need the official nvidia drivers for glx to work. Why it doesn’t actually work ? I must admit I still wonder. I will try to check it this evening.
Check the X logs (in /var/log/X*.log) for lines about glx. It should say why it can’t load glx at startup.
For the point about Load “nv”, if you have the nvidia drivers it should be Load “nvidia” instead.
Of course, and for better performances, and even for simplicity, you could install the official nvidia drivers. It’s not hard to install them and will surely avoid that issue with your current not working glx.
I think the ‘nv’ is not the accelerated adapter driver that is required. The NVIDIA GeForce4 420 GO that I have is a legacy graphic processor that needs the legacy accelerated driver (Most Recent Driver: 1.0-7184)- NVIDIA site.
I downloaded the NVIDIA legacy driver support package from ubuntu and changed the driver from ‘nv’ to ‘nvidia’.