What is GLU?

For those having trouble installing/running the game or to report a bug

Moderator: Staff

User avatar
Jastiv
Newbie
Posts: 14
Joined: Thu Sep 01, 2005 10:06 am
Contact:

What is GLU?

Postby Jastiv » Tue Jul 03, 2007 8:48 am

This is on Fedora Core 5 btw



./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable -O3 compiler optimization... yes
checking whether to enable debugging... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to enable usage of map editor... no
checking for XCreateWindow in -lX11... yes
checking for glGetString in -lGL... yes
checking for gluGetString in -lGLU... no
configure: error: GLU not found
User avatar
MindFlayer
Developer
Posts: 688
Joined: Fri Jan 06, 2006 12:55 pm
Location: Kuopio / Tampere, Finland
Contact:

Postby MindFlayer » Tue Jul 03, 2007 9:32 am

It's the OpenGL utility library (GLU). You have to download it somewhere, don't know anything about Fedora, sorry! :)
Linds
Developer
Posts: 145
Joined: Tue Jan 09, 2007 9:21 am
Location: Sydney, Australia

Postby Linds » Tue Jul 03, 2007 11:10 am

The package name you want is mesa-libGLU-devel. If you have yum going you can

yum install mesa-libGLU-devel

as superuser.

Or you can just get it from ftp://mirror.optus.net.au/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/mesa-libGLU-devel-6.4.2-6.i386.rpm.
User avatar
Jastiv
Newbie
Posts: 14
Joined: Thu Sep 01, 2005 10:06 am
Contact:

Postby Jastiv » Wed Jul 04, 2007 1:36 am

I wish that the simple advice of

yum install mesa-libGLU-devel

really fixed the error message, unfortunately, it does not.

According to the package manager, it is installed now (it was not before) so, I don't know why Allacrost is not finding it. I've been looking at the config files trying to figure out what is going on, however, I am new to autoconf so I don't really know how to fix it yet.
User avatar
Roots
Dictator
Posts: 8666
Joined: Wed Jun 16, 2004 6:07 pm
Location: Austin TX
Contact:

Postby Roots » Wed Jul 04, 2007 1:55 am

Don't you only want/need the mesa libs if you don't have hardware-accelerated video? If you have an nvidia card, see if there's a package named something like "nvidia-glx-dev". When I didn't have that package installed in Debian, Allacrost wouldn't compile either and I think it gave me the same error message.
Image
User avatar
MindFlayer
Developer
Posts: 688
Joined: Fri Jan 06, 2006 12:55 pm
Location: Kuopio / Tampere, Finland
Contact:

Postby MindFlayer » Wed Jul 04, 2007 8:46 am

Roots wrote:nvidia-glx-dev

Don't remind me of it. :axe:
User avatar
Jastiv
Newbie
Posts: 14
Joined: Thu Sep 01, 2005 10:06 am
Contact:

Postby Jastiv » Wed Jul 04, 2007 11:07 am

No, I don't have an nvidia on that computer, I have an ATI Radeon 9800, and never did get the evil proprietary drivers working, so they are like half installed or something.

When I got the computer, I was still buying proprietary games. I really thought at the time that
GNU/Linux was just another OS, and ideology had nothing to do with it. Then I found out that no one would have even got the OS together if it was not for the GPL..

I know you may not have even considered this back when you started your project (what ? three years ago), but maybe using OpenGL is not a good idea if that is just encouraging usage of proprietary drivers for video cards. It is important to put pressure on the manufacturers of video cards, and games are an effective way to do that, especially 2D games such as Hero of Allacrost.

At one time, I thought proprietary video card drivers were acceptable. but during the first GPL3 conference, Richard Stallman explained to us that it is technically a violation of the GPL, but that the Linux developers allowed it to continue.
Linds
Developer
Posts: 145
Joined: Tue Jan 09, 2007 9:21 am
Location: Sydney, Australia

Postby Linds » Wed Jul 04, 2007 11:37 am

Hi Jastiv,

The Radeon 9800 is 3d accelerated under the open source 'radeon' driver. I had an X800 and used to use these. I don't know, however, if the version of the Xorg drivers included in FC5 are new enough to be optimal.

Regardless, the presense of mesa-libGLU-devel should be enough to compile and link libGLU code. All thats required is <GL/glu.h> and libGLU.so, which are in that package.

I've just checked through the configure code actually and it doesn't even include the glu.h header file. It just tries to link the gluGetString() function. This failing might actually have something to do with the half installed fglrx drivers you mentioned. ATI/NVIDIA proprietary drivers tend to make symlinks over the GL libraries, /usr/lib/libGLU.so included. You might want to check if that file is a symlink, it may even be a broken symlink. If thats so, try removing that symlink and reinstalling the mesa-libGLU-devel package. Else try fully removing or installing the fglrx drivers :).

If you have futher problems, could you post the end of config.log when configure fails? It has more detailed output as to the fail point.
User avatar
Jastiv
Newbie
Posts: 14
Joined: Thu Sep 01, 2005 10:06 am
Contact:

Postby Jastiv » Wed Jul 18, 2007 8:52 am

Just to let you know, I didn't give up yet. I went and fixed that error by upgrading to the latest version of gcc, but now I get the same Luabind error that was mention in the thread about "fc5 and Lua." in technical issues.

Also, luabind is not installed, because boost segfaults during install.
I am using fc5, gcc 2.4, binutils 2.1.6, and glibc2.4. Someone told me that gcc doesn't work well with old glibc, but I have compiled other programs besides boost
User avatar
gorzuate
Developer
Posts: 2575
Joined: Thu Jun 17, 2004 3:03 am
Location: Hermosa Beach, CA
Contact:

Postby gorzuate » Wed Jul 18, 2007 5:39 pm

Jastiv wrote:Just to let you know, I didn't give up yet. I went and fixed that error by upgrading to the latest version of gcc, but now I get the same Luabind error that was mention in the thread about "fc5 and Lua." in technical issues.

Also, luabind is not installed, because boost segfaults during install.
I am using fc5, gcc 2.4, binutils 2.1.6, and glibc2.4. Someone told me that gcc doesn't work well with old glibc, but I have compiled other programs besides boost


Do you mean gcc 4.x and not 2.4?
Image
User avatar
Jastiv
Newbie
Posts: 14
Joined: Thu Sep 01, 2005 10:06 am
Contact:

Postby Jastiv » Sun Jul 22, 2007 8:06 am

It is gcc 4.2.0

Return to “Technical Issues”

Who is online

Users browsing this forum: No registered users and 0 guests