Page 1 of 2

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

Posted: Thu Dec 16, 2010 11:49 am
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

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

Posted: Fri Dec 17, 2010 12:35 am
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

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

Posted: Fri Dec 17, 2010 1:33 am
by shenle
You need the developer glut library - in Ubuntu IIRC it's freeglut3-dev.

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

Posted: Fri Dec 17, 2010 2:21 am
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.

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

Posted: Fri Dec 17, 2010 5:28 am
by klauss
@greenfreedom: The dependency on glut might be new, but after installing freeglut3-dev I did manage to build VS in debian squeeze.

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

Posted: Fri Dec 17, 2010 10:07 am
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

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

Posted: Fri Dec 17, 2010 1:47 pm
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.

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

Posted: Fri Dec 17, 2010 3:06 pm
by www2
one tip use "make vegastrike" instate of make

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

Posted: Fri Dec 17, 2010 4:05 pm
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

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

Posted: Fri Dec 17, 2010 7:45 pm
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.

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

Posted: Fri Dec 17, 2010 9:01 pm
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.

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

Posted: Sun Dec 19, 2010 5:38 pm
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).

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

Posted: Sun Dec 19, 2010 7:47 pm
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.

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

Posted: Sun Dec 19, 2010 11:12 pm
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.

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

Posted: Mon Dec 20, 2010 12:52 am
by charlieg
If the makefile isn't supported, it should be removed, no?

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

Posted: Mon Dec 20, 2010 1:33 am
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.

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

Posted: Mon Dec 20, 2010 2:23 am
by charlieg
EDIT: wrong thread!

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

Posted: Mon Dec 20, 2010 3:33 am
by shenle
If only cmake worked in Windows! :( But my personal experience with it says that it won't.

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

Posted: Mon Dec 20, 2010 4:04 am
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 ;)

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

Posted: Mon Dec 20, 2010 5:57 am
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*

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

Posted: Mon Dec 20, 2010 6:34 am
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.

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

Posted: Mon Dec 20, 2010 10:36 pm
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?

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

Posted: Mon Dec 20, 2010 10:57 pm
by greenfreedom10

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

Posted: Mon Dec 20, 2010 11:10 pm
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.

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

Posted: Tue Dec 21, 2010 1:18 am
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)