LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-02-2012, 04:09 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
opengl problem on ATI card


Hi All,
I have some opengl code that runs great, when I compile it on my laptop or works PC it compiles great. However on my new PC it reports a single opengl error. My new PC has ATI cataylst drivers, which according to manufacturer are correct. However when I run it I get the following error
Code:
/usr/bin/ld: /tmp/ccxGyjOs.o: undefined reference to symbol 'glNormal3f'
/usr/bin/ld: note: 'glNormal3f' is defined in DSO /usr/lib/libGL.so.1 so try adding it to the linker command line
/usr/lib/libGL.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [all] Error 1
As I said the code compiles on my laptop and desktop (both nvdia) but not my new PC (ati) so is there n issue with the ati driver, does anyone know a way round this?

Should add I do include in my libs GAME_LIBS = -lpthread `sdl-config --cflags --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lGLEW

Thanks

Last edited by knobby67; 05-02-2012 at 04:11 AM.
 
Old 05-02-2012, 04:32 AM   #2
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
You're not linking against the GL library, and you clearly should be. Does /usr/lib/libGL.so exist? If not, link /usr/lib/libGL.so.1 to /usr/lib/libGL.so and "-lGL" to GAME_LIBS.

Adam
 
Old 05-03-2012, 12:57 AM   #3
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
Hi thanks, just got that before you posted. But don't understand how lgl is not needed on the nvidia systems? Anyway it made no differnce to running as that gives a segmentation fault everytime its ran, then when I went to reboot my system it boots in text mode :s
 
  


Reply



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 problem with ATI Drivers Crube Linux - Software 5 08-21-2005 02:42 PM
Opengl/ati driver problem (not sure where to put this) mdkusr Linux - Software 0 08-18-2005 06:06 PM
opengl problem on xorg 6.7 with ati radeon 8500 olkku486 Linux - Hardware 3 12-15-2004 03:33 PM
ATI Radeon 9000 OpenGL problem darth_linux Linux - Software 0 01-31-2004 04:11 AM
OpenGL with ATI Rage card neomage Linux - Hardware 1 12-31-2003 07:45 AM

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

All times are GMT -5. The time now is 08:49 PM.

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