LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-29-2003, 03:40 PM   #1
dominik81
Member
 
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 7.10
Posts: 54

Rep: Reputation: 15
Compiling code that requires gl.h... Missing gl.h?


I'm trying to do some OpenGL (C++) programming in Linux. But my main problem seems: Where is the "gl.h" header? I've installed a couple of Mesa-dev packages (Mandrake 9.1) and even though I found glu.h and glut.h in /usr/X11R6/include/GL, I can't seem to find gl.h. And shouldn't all these headers be in /usr/include/GL anyway?

 
Old 10-29-2003, 04:22 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
gcc -Idirectoryname ...

OpenGL used to have example makefiles. Look for the "-I" in the make file, that will tell you the directory where it expects to find header files -- other than /usr/include.
 
Old 10-30-2003, 02:14 AM   #3
dominik81
Member
 
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 7.10
Posts: 54

Original Poster
Rep: Reputation: 15
And where can I expect to find those example makefiles?
 
Old 10-30-2003, 02:20 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
have you tried installing glut and glut-devel instead of using mesa's?
 
Old 05-05-2004, 09:15 AM   #5
adhara
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
same problem

Hi dominik81

I am having EXACTLY the same problem.

Did you find the makefiles and/or an alternative solution?

Did you try installing glut and glut-devel?

I am going try installing freeglut.

I cannot seem to locate the glut-devel libs at this stage.

Any help appreciated.


Adhara
 
  


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
compiling C code vose Programming 29 10-08-2004 07:28 AM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 07:06 PM
suse 9.1 personal source code missing edgefield Linux - Newbie 5 08-28-2004 05:46 AM
Compiling Kernel Code vbhatia_81 Programming 1 06-21-2004 06:53 AM
compiling code ripmaster Linux - Software 2 03-06-2004 09:07 PM

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

All times are GMT -5. The time now is 01:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration