LinuxQuestions.org
Help answer threads with 0 replies.
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 11-07-2007, 08:34 PM   #1
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Rep: Reputation: 30
error compiling dosbox with "/usr/X11R6/include/GL/glu"


Hi,

On Mandriva 2006.1, I am installing dosbox 0.72. My problem is when after completing ./configure fine - the make errors out on a missing header file (glu.h) - I detail the error below.

Just to confirm what library reqs are and what I installed prior to dosbox:
I read the INSTALL requirements for dosbox and installed
SDL source (SDL-1.2.12.tar.gz)
SDL_sound-1.0.1.tar.gz
curses is installed
libpng is installed
zlib
SDL_NET (optional) - left this out
ALSA_Headers - left this one out

Anyway, here is the core of the problem:

Here is the key lines in the make error output for dosbox:
In file included from sdlmain.cpp:52:
/usr/local/include/SDL/SDL_opengl.h:45:58: error: GL/glu.h: No such file or directory
make[3]: *** [sdlmain.o] Error 1

Checked the /usr/X11R6/include/GL/ directory...
I have gl.h and glx.h and so on but no glu.h. I suspect this is the reason the compile failed. What package or gl source could I be missing here?
I think dosbox make is looking for /usr/X11R6/include/GL/glu.h
Not sure what source I should be looking for. Anyone know where I could get this. Thanks.
 
Old 11-08-2007, 03:04 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,630

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
glu.h is part of the Mesa openGL library and it's probably under /usr/include/GL. Make sure it's installed in your system.
 
Old 11-08-2007, 08:11 AM   #3
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Thank bathory,

I got a hold of the mesaLib source. I'll try compiling and installing. Hopefully it won't have any more dependecies. yep, dosbox is looking it in the /usr/X11R6/include/GL/ when compiling. Just to add that I have nvidia video card driver installed and glxgears working going back a few months.
 
Old 11-08-2007, 06:09 PM   #4
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by hamster View Post
Thank bathory,

I got a hold of the mesaLib source. I'll try compiling and installing. Hopefully it won't have any more dependecies. yep, dosbox is looking it in the /usr/X11R6/include/GL/ when compiling. Just to add that I have nvidia video card driver installed and glxgears working going back a few months.
Just to update anyone who is interested - I installed Mesa and the glu.h header c file is there in /usr/X11R6/include/GL/. Compiled dosbox again and it was fine.
One thing I notice is that the dosbox installer leaves the binary in the src directory where I extracted the tar to compile in the first place. eg. /home/jryan/Download/dosbox-0.72/src

Would it better to move it into /usr/local/bin or some more formal directory?
 
Old 11-08-2007, 06:23 PM   #5
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Actually, apologies, after running the executable dosbox once in the /src after the make - I now notice the dosbox executable in /usr/local/bin.
 
  


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
error while compiling program:/usr/include/fts.h cannot be used with -D_FILE_OFFSET_B varun_shrivastava Linux - General 0 06-21-2007 10:44 AM
/usr/include/stdio.h", line 346: syntax error at token '__s' casady Linux - Software 4 04-28-2006 01:51 AM
repeated message (tty1): ASSERT: "i <= nodes" in /usr/lib/qt-3.1.2/include/qvaluelist megahard Linux - General 4 01-17-2006 11:59 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM
Clarifiacation on header file "/usr/include/a.out.h" swathisat Linux - Software 0 09-05-2003 01:12 AM

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

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