LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2004, 08:56 AM   #1
adhara
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
mesa glut libraries


Hello,

I am running Mandrake 9.1.
I have installed mesa 5.0 installed.

I need to know whether any further installations are required in order to compile opengl.

I do have a copy of the glut-3.7 src file but I am having difficulty with the make file. It complains that it can't find glu.h glut.h and gl.h in the locations where the files DO exist in the src file location.

Anyway - I don't understand whether it is necessary to install glut 3.7 if I already have mesa installed.

At the moment, I cannot compile opengl (g++ ) because it cannot find glu.h no such file or directory.

#include <GL/glut.h>


Question: If glu.h gl.h and glut.h are the same thing why is it stating an error regarding glu.h and not glut.h?

I am a bit lost.

Help sincerely appreciated.


Adhara.
 
Old 05-05-2004, 09:03 AM   #2
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
glu.h gl.h and glut.h are not the same thing. What is the location of the header files? Try including
#include <GL/glu.h>
#include <GL/gl.h>
 
Old 05-05-2004, 08:30 PM   #3
adhara
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 41

Original Poster
Rep: Reputation: 15
Hi dopefish,

i dont have glu.h (dont know why)

I just tried installing freeglut - make failed because it couldnt find glu.h

I'm now trying to work out where to get glu.h from.

Any ideas?

Adhara
 
Old 05-05-2004, 08:36 PM   #4
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
if youre using mandrake 9.1, you should be able to find that in your rpm database. search for mesa, and youll find a package that is named something like MesaGLU.
 
Old 05-05-2004, 09:08 PM   #5
adhara
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 41

Original Poster
Rep: Reputation: 15
I have mesa installed inc libMesaGL libMesaGLU and libMesaGLUT

I think the missing ingredient is the libMesa-devel package (not showing up on my disks and not already installed.)

Hopefully this will solve it as it contains the header files I need.

Please tell me if I'm missing something.

Adhara
 
Old 05-05-2004, 09:50 PM   #6
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
Yes you need the libmesa development package
 
Old 05-08-2004, 04:45 AM   #7
adhara
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks dopefish,

I installed mesa-devel, followed by freeglut and I can now compile opengl.



Thanks for your support.


Adhara
 
  


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
Mesa-Glut compilation problem tethysgods Linux - Software 1 09-16-2004 12:33 PM
mesa, glut and compiling opengl adhara Programming 3 05-08-2004 05:14 AM
GLUT libraries FlatZ28 Programming 1 09-26-2003 10:53 AM
Compiling a simple Mesa/GLUT program Bojdom Linux - Software 2 02-02-2003 04:19 PM
glut/mesa/openGL gurra Programming 1 10-10-2001 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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