objconv/basemaker/sprite.h:9: fatal error: glut.h

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).

objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby BreezeWater » Thu Dec 16, 2010 4:49 am

Im trying to compile via svn in ubuntu 10.10 x64 and getting this error:

In file included from objconv/basemaker/base_maker.cpp:9:
objconv/basemaker/sprite.h:9: fatal error: glut.h: No such file or directory
compilation terminated.
make[1]: *** [objconv/basemaker/base_maker.o] Error 1

Here is my config.log file.
config.log
(171.32 KiB) Downloaded 237 times
BreezeWater
Atmospheric Pilot
Atmospheric Pilot
 
Posts: 1
Topics: 1
Joined: Thu Dec 16, 2010 4:46 am

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby greenfreedom10 » Thu Dec 16, 2010 5:35 pm

Nearly identical error here, on Debian squeeze amd64, with
$ make clean
$ ./configure
$ make

Code: Select all
In file included from objconv/basemaker/base_maker.cpp:9:
objconv/basemaker/sprite.h:9:18: error: glut.h: No such file or directory
make[1]: *** [objconv/basemaker/base_maker.o] Error 1
greenfreedom10
Hunter
Hunter
 
Posts: 67
Topics: 2
Joined: Tue Sep 28, 2010 8:06 pm
Location: Lost in an adventure

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby shenle » Thu Dec 16, 2010 6:33 pm

You need the developer glut library - in Ubuntu IIRC it's freeglut3-dev.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 381
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby pheonixstorm » Thu Dec 16, 2010 7:21 pm

Basemaker was changed when I tried to make it work for windows. I split off sprite.h and sprite.cpp from inside base_maker.cpp. If you want to make it work (the way it was before my changes) uncomment the sprite.h and sprite.cpp sections in the main file and do NOT use the external files I created. Easiest way to do this is to pull revision 12977 or download the attached 12977

I do not believe that glut.h was an include for the pre-merge version. Windwos gave me an error about it though so I added it in.
Attachments
vegastrike-basemaker.tar.gz
Pre merge basemaker
(18.27 KiB) Downloaded 209 times
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby klauss » Thu Dec 16, 2010 10:28 pm

@greenfreedom: The dependency on glut might be new, but after installing freeglut3-dev I did manage to build VS in debian squeeze.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby CLoneWolf » Fri Dec 17, 2010 3:07 am

Just a tip for people compiling on Debian and Ubuntu:

whenever the compiler warns about a missing file (typically some_header.h) you can search for packages providing that file;

- go to http://packages.debian.org/ or http://packages.ubuntu.com/
- scroll down to the section "Search the contents of packages" and enter the filename
- pick your distro
- check the option you prefer (I generally use "packages that contain files whose names contain the keyword")
- click "Search"

Besides, an estabilished convention in package naming for Debian and Ubuntu is to have header files and others needed for compiling in packages named *-dev
CLoneWolf
ISO Party Member
ISO Party Member
 
Posts: 442
Topics: 9
Joined: Thu May 01, 2008 10:14 am

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby LinuxMaster9 » Fri Dec 17, 2010 6:47 am

can someone please compile a working copy of the latest svn and package a deb for ubuntu 10.10? I'm getting errors galore.
LinuxMaster9
Atmospheric Pilot
Atmospheric Pilot
 
Posts: 1
Joined: Fri Dec 17, 2010 4:56 am

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby www2 » Fri Dec 17, 2010 8:06 am

one tip use "make vegastrike" instate of make
All Your Base Are Belong To Us
User avatar
www2
Venturer
Venturer
 
Posts: 537
Topics: 53
Joined: Sat May 14, 2005 3:51 am
Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby breese » Fri Dec 17, 2010 9:05 am

BreezeWater wrote:In file included from objconv/basemaker/base_maker.cpp:9:
objconv/basemaker/sprite.h:9: fatal error: glut.h: No such file or directory

Apply attached patch with:
Code: Select all
patch -p0 < base_maker.diff
Attachments
base_maker.diff
(793 Bytes) Downloaded 224 times
breese
Bounty Hunter
Bounty Hunter
 
Posts: 152
Topics: 14
Joined: Thu Sep 02, 2010 1:00 pm

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby greenfreedom10 » Fri Dec 17, 2010 12:45 pm

klauss wrote:after installing freeglut3-dev I did manage to build VS in debian squeeze

freeglut3-dev 2.6.0-1 is installed already.

www2 wrote:one tip use "make vegastrike" instate of make

Okay, I will try that later; thanks.
greenfreedom10
Hunter
Hunter
 
Posts: 67
Topics: 2
Joined: Tue Sep 28, 2010 8:06 pm
Location: Lost in an adventure

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby shenle » Fri Dec 17, 2010 2:01 pm

LinuxMaster9 wrote:can someone please compile a working copy of the latest svn and package a deb for ubuntu 10.10? I'm getting errors galore.


Here you are, LinuxMaster9.

Compiled on ubuntu 9.10, split into 2M chunks after compression (max size allowed as attachment here). Recombine the 2 parts with cat (cat vegastrike-12983.split* > vegastrike-12983.bz2), uncompress with bunzip2 and drop the binary in the data folder, it should work.
Attachments
vegastrike-12983.split.aa.bz2
(2 MiB) Downloaded 220 times
vegastrike-12983.split.ab.bz2
(796.8 KiB) Downloaded 214 times
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 381
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby klauss » Sun Dec 19, 2010 10:38 am

greenfreedom10 wrote:
klauss wrote:after installing freeglut3-dev I did manage to build VS in debian squeeze

freeglut3-dev 2.6.0-1 is installed already.

www2 wrote:one tip use "make vegastrike" instate of make

Okay, I will try that later; thanks.


Assuming you're using cmake, after installing/uninstalling packages you have to re-configure. And that is more than just launch ccmake, you have to remove the CMakeCache inside the build/ directory (or wherever you build from).
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby pheonixstorm » Sun Dec 19, 2010 12:47 pm

Either they are trying to build basemaker of using make instead of cmake.. or something else that is trying to build basemaker as well as everything else. Cmake does NOT include basemaker. Only setup, vegaserver, and vegastrike are part of cmake.

I think the make files need to be updated to reflect the fact that basemaker is not suppose to be included in the build (as per cmake). I will look into the make files and see what its actually trying to do.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby pheonixstorm » Sun Dec 19, 2010 4:12 pm

yeah, for whatever reason basemaker is still included in the makefile. To compile vegastrike use cmake instead, there is a gui version you can get if your using ubuntu.

I don't think that basemaker is supported anymore though its possible it might be.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby charlieg » Sun Dec 19, 2010 5:52 pm

If the makefile isn't supported, it should be removed, no?
Free Gamer - free software games compendium and commentary!
FreeGameDev forum - open source game development community
User avatar
charlieg
Elite Mercenary
Elite Mercenary
 
Posts: 1328
Topics: 56
Joined: Thu Mar 27, 2003 4:51 pm
Location: Manchester, UK

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby klauss » Sun Dec 19, 2010 6:33 pm

Yep, I think it should.

cmake has been running smothly for a while now. For a time, we supported both during the transition period (when cmake didn't work 100% right), but atm I've been working exclusively with cmake with absolutely no problem whatsoever.

So I'd support the removal of all autotools stuff.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby charlieg » Sun Dec 19, 2010 7:23 pm

EDIT: wrong thread!
Last edited by charlieg on Sun Dec 19, 2010 9:13 pm, edited 1 time in total.
Free Gamer - free software games compendium and commentary!
FreeGameDev forum - open source game development community
User avatar
charlieg
Elite Mercenary
Elite Mercenary
 
Posts: 1328
Topics: 56
Joined: Thu Mar 27, 2003 4:51 pm
Location: Manchester, UK

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby shenle » Sun Dec 19, 2010 8:33 pm

If only cmake worked in Windows! :( But my personal experience with it says that it won't.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 381
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby klauss » Sun Dec 19, 2010 9:04 pm

shenle wrote:If only cmake worked in Windows! :( But my personal experience with it says that it won't.


Yeah, but autotools works even less ;)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby shenle » Sun Dec 19, 2010 10:57 pm

klauss wrote:
shenle wrote:If only cmake worked in Windows! :( But my personal experience with it says that it won't.


Yeah, but autotools works even less ;)


Except in cygwin *shudder*
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 381
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby pheonixstorm » Sun Dec 19, 2010 11:34 pm

cmake does work in windows but its a real bitch to get it running properly. For starters windows doesn't have all the libraries preinstalled or easily installed like linux so you have to download anything that is missing from the vega-vcx folder. The real show stopper lately is gtk2. It searches for this and can't find it because the win32 build is still using gtk1. I have slated in my many things to do for win32 to update to gtk2 but I keep falling behind when we get irritating bugs popping up like the planet shader/texture bug.

So, under linux use cmake not make.. and someone who know what files go with make.am make a list and I can rid the svn of them or you can update them to follow cmake and they can be updated until we can find time to be rid of them.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Mon Jan 25, 2010 7:03 pm

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby klauss » Mon Dec 20, 2010 3:36 pm

If I'm given the green light, I'll get rid of all autotools stuff.

But what about cygwin? Are we supporting it? Isn't there a cmake for cygwin?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby greenfreedom10 » Mon Dec 20, 2010 3:57 pm

greenfreedom10
Hunter
Hunter
 
Posts: 67
Topics: 2
Joined: Tue Sep 28, 2010 8:06 pm
Location: Lost in an adventure

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby klauss » Mon Dec 20, 2010 4:10 pm

Autotools should still work.

We're only talking of getting rid of it since most of the devs are using a newer, easier to work with tool called cmake, and maintaining both build systems synched is quite a chore.

But the instructions there should still be valid.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

Re: objconv/basemaker/sprite.h:9: fatal error: glut.h

Postby charlieg » Mon Dec 20, 2010 6:18 pm

klauss wrote:But what about cygwin? Are we supporting it? Isn't there a cmake for cygwin?

Apparently cmake for cygwin works fine:
http://stackoverflow.com/questions/3586 ... for-cygwin

(Interesting MATLAB gotcha described there too)
Free Gamer - free software games compendium and commentary!
FreeGameDev forum - open source game development community
User avatar
charlieg
Elite Mercenary
Elite Mercenary
 
Posts: 1328
Topics: 56
Joined: Thu Mar 27, 2003 4:51 pm
Location: Manchester, UK


Next

Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 2 guests