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 11-29-2009, 09:23 AM   #1
TobsterUK
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
Fedora 11 - Where are the OpenGL headers?


Hi all.
I'm trying to set a C++ IDE up for developing OpenGL & SDL applications on Fedora 11.

I've successfully installed and got SDL working with the built in package manager.

But I can't for the life of me find where the OpenGL headers are (GL.h etc).

usr/include/GL contains a bunch of stuff but not what I need.
The package manager finds loads of different utility libraries but not just 'bog standard' OpenGL itself.

Where can I find, ideally as a .rpm, the completely bog-standard OpenGL header files for Linux development? I don't want glut or any other extension libraries, just gl.h, glx.h, and that.

This has spoiled my afternoon and made me rant a lot.

Thanks.
 
Old 11-29-2009, 10:42 AM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
did you try looking in
/usr/include
/usr/share/include
/usr/share/include/GL
/home/~/include
/home/~/include/GL
it could be one of those
 
0 members found this post helpful.
Old 11-29-2009, 11:37 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum install \
mesa-libGL-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libOSMesa-devel
.. to get it all.

Find the headers : rpm -ql mesa-libGL-devel | grep include
.. displaying /usr/include/GL/gl.h , etc. etc.

.....
 
Old 11-29-2009, 12:47 PM   #4
TobsterUK
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Problem fixed, onto the next...

It can't seem to find ANY shared libraries (either libGL or libSDL).
This is the GCC C++ linker, using Eclipse.

/usr/lib is the search path and the libraries are named as 'libGL' and 'libSDL' without any extensions. I can confirm the files ARE in /usr/lib also.

Error message is:
g++ -L/usr/lib -o"VeOS" ./src/VeOS.o -llibGL
/usr/bin/ld: cannot find -llibGL

Any ideas?

[Edit] Solved the problem by changing the library names to GL and SDL. That's not what their files are called, but meh; it works.

Last edited by TobsterUK; 11-29-2009 at 04:35 PM. Reason: Problem solved
 
Old 11-29-2009, 05:06 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Library / linker conventions :


http://linux.die.net/man/3/library

http://tldp.org/HOWTO/Program-Librar...libraries.html

http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
.....
 
  


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 libraries/headers missing sycamorex Linux - Software 2 11-09-2008 03:27 PM
Where can i get OpenGL Headers? iro_number1 Mandriva 18 09-26-2008 03:41 AM
configure: WARNING: OpenGL development headers not found nickster22 Linux - Software 6 07-24-2008 11:17 AM
Getting the fedora srcs and version headers short circut Fedora 2 06-27-2007 04:53 PM
Fedora 5 is missing headers????? chargerone Linux - Software 6 06-17-2006 04:50 PM

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

All times are GMT -5. The time now is 03:21 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