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).
BreezeWater
Atmospheric Pilot
Atmospheric Pilot
Posts: 1
Joined: Thu Dec 16, 2010 11:46 am

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

Post by BreezeWater »

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
You do not have the required permissions to view the files attached to this post.
greenfreedom10
Hunter
Hunter
Posts: 67
Joined: Wed Sep 29, 2010 3:06 am
Location: Lost in an adventure

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

Post by greenfreedom10 »

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
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

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

Post by shenle »

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.
pheonixstorm
Elite
Elite
Posts: 1567
Joined: Tue Jan 26, 2010 2:03 am

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

Post by pheonixstorm »

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.
You do not have the required permissions to view the files attached to this post.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post by klauss »

@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
CLoneWolf
ISO Party Member
ISO Party Member
Posts: 443
Joined: Thu May 01, 2008 5:14 pm

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

Post by CLoneWolf »

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
LinuxMaster9
Atmospheric Pilot
Atmospheric Pilot
Posts: 1
Joined: Fri Dec 17, 2010 11:56 am

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

Post by LinuxMaster9 »

can someone please compile a working copy of the latest svn and package a deb for ubuntu 10.10? I'm getting errors galore.
www2
Venturer
Venturer
Posts: 537
Joined: Sat May 14, 2005 10:51 am
Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden
Contact:

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

Post by www2 »

one tip use "make vegastrike" instate of make
All Your Base Are Belong To Us
breese
Bounty Hunter
Bounty Hunter
Posts: 152
Joined: Thu Sep 02, 2010 8:00 pm

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

Post by breese »

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
You do not have the required permissions to view the files attached to this post.
greenfreedom10
Hunter
Hunter
Posts: 67
Joined: Wed Sep 29, 2010 3:06 am
Location: Lost in an adventure

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

Post by greenfreedom10 »

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.
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

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

Post by shenle »

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.
You do not have the required permissions to view the files attached to this post.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post by klauss »

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
pheonixstorm
Elite
Elite
Posts: 1567
Joined: Tue Jan 26, 2010 2:03 am

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

Post by pheonixstorm »

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
pheonixstorm
Elite
Elite
Posts: 1567
Joined: Tue Jan 26, 2010 2:03 am

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

Post by pheonixstorm »

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
charlieg
Elite Mercenary
Elite Mercenary
Posts: 1329
Joined: Thu Mar 27, 2003 11:51 pm
Location: Manchester, UK
Contact:

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

Post by charlieg »

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
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post by klauss »

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
charlieg
Elite Mercenary
Elite Mercenary
Posts: 1329
Joined: Thu Mar 27, 2003 11:51 pm
Location: Manchester, UK
Contact:

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

Post by charlieg »

EDIT: wrong thread!
Last edited by charlieg on Mon Dec 20, 2010 4:13 am, edited 1 time in total.
Free Gamer - free software games compendium and commentary!
FreeGameDev forum - open source game development community
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

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

Post by shenle »

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.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post by klauss »

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
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

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

Post by shenle »

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.
pheonixstorm
Elite
Elite
Posts: 1567
Joined: Tue Jan 26, 2010 2:03 am

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

Post by pheonixstorm »

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
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post by klauss »

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
greenfreedom10
Hunter
Hunter
Posts: 67
Joined: Wed Sep 29, 2010 3:06 am
Location: Lost in an adventure

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

Post by greenfreedom10 »

klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post by klauss »

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
charlieg
Elite Mercenary
Elite Mercenary
Posts: 1329
Joined: Thu Mar 27, 2003 11:51 pm
Location: Manchester, UK
Contact:

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

Post by charlieg »

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
Post Reply