LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2003, 09:23 PM   #1
drdroid
Member
 
Registered: Oct 2003
Location: Here
Distribution: Redhat 9.0
Posts: 124

Rep: Reputation: 15
Question 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.
 
Old 12-07-2003, 08:51 AM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
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.
 
Old 12-07-2003, 09:30 AM   #3
drdroid
Member
 
Registered: Oct 2003
Location: Here
Distribution: Redhat 9.0
Posts: 124

Original Poster
Rep: Reputation: 15
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.
 
Old 12-07-2003, 09:42 AM   #4
drdroid
Member
 
Registered: Oct 2003
Location: Here
Distribution: Redhat 9.0
Posts: 124

Original Poster
Rep: Reputation: 15
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
 
Old 12-07-2003, 09:53 AM   #5
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
deiussum

Already answered that. Have a look at his post.
 
Old 12-07-2003, 12:17 PM   #6
drdroid
Member
 
Registered: Oct 2003
Location: Here
Distribution: Redhat 9.0
Posts: 124

Original Poster
Rep: Reputation: 15
i tried reinstalling using just source code, i tried some of the different linking things... none of them worked... same error
 
Old 12-07-2003, 12:22 PM   #7
drdroid
Member
 
Registered: Oct 2003
Location: Here
Distribution: Redhat 9.0
Posts: 124

Original Poster
Rep: Reputation: 15
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?
 
Old 12-07-2003, 01:22 PM   #8
drdroid
Member
 
Registered: Oct 2003
Location: Here
Distribution: Redhat 9.0
Posts: 124

Original Poster
Rep: Reputation: 15
yeup, i've tried everything there...

how should I link it? where to?

Last edited by drdroid; 12-07-2003 at 01:37 PM.
 
Old 12-08-2003, 06:36 AM   #9
memory_leak
LQ Newbie
 
Registered: Dec 2003
Posts: 24

Rep: Reputation: 15
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenGL under linux? mugwump84 Linux - Newbie 1 04-28-2005 11:43 PM
Overwrite Mesa OpenGL with ATI OpenGL Carl-Fredrik Slackware 12 10-01-2004 03:33 PM
OpenGL in linux deveraux83 Programming 12 05-13-2004 09:35 AM
Changing from MESA OpenGL to ATI OpenGL tillyoubreakit Linux - Hardware 19 10-07-2003 07:32 PM
Can i use openGL in Linux? apit Programming 1 03-06-2003 07:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration