LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Opengl and Linux? (https://www.linuxquestions.org/questions/programming-9/opengl-and-linux-123403/)

drdroid 12-06-2003 09:23 PM

Opengl and Linux?
 
Hey, I've been programming with opengl for about a year, and then just recently I went from windows dual booted with linux to just linux. I'd like to keep programming with opengl but I don't know any of the x window managment things, so is there anyway I can use glut or somesuch to handel the windows etc? I attempted to install glut but whenever I attempt to compile I get errors stating that the certain files defined in glut are undefined.

deiussum 12-07-2003 08:51 AM

There are some known problems with glut in RedHat 9.0. I'd suggest taking a look at this link at the opengl.org forums.

drdroid 12-07-2003 09:30 AM

is there any way to remove dependencies on libraries? because when I attempt to uninstall the old version of glut, i get an error stating that kde something is dependent on it... I'll try uninstalling in command line... if i'm not on for a while... I've killer 'er. :p

drdroid 12-07-2003 09:42 AM

well, i upgraded it and I get this error:

Code:

/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status
make: *** [oblig3] Error 1


teval 12-07-2003 09:53 AM

deiussum

Already answered that. Have a look at his post.

drdroid 12-07-2003 12:17 PM

i tried reinstalling using just source code, i tried some of the different linking things... none of them worked... same error

drdroid 12-07-2003 12:22 PM

ok, i've tried some of the tests that kame with the source... they work... so it has to do with compiling the program.. any ideas?

drdroid 12-07-2003 01:22 PM

yeup, i've tried everything there...

how should I link it? where to?

memory_leak 12-08-2003 06:36 AM

pass reference to library to linker ... like : -lglut; lGL, -lGLU tell it also where to find libraries with -Lflag (on my machine -L/usr/X11R6/lib)


All times are GMT -5. The time now is 03:54 AM.