LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 07-08-2004, 01:46 PM   #1
PhoenixOne
LQ Newbie
 
Registered: Jul 2004
Distribution: MDK 10.0
Posts: 9

Rep: Reputation: 0
Errors compiling Doomsday Engine 1.8.0 under Mandrake Linux 10


Mandrake Club doesn't help me whatsoever (and to think I got a subscription) and I've heard a lot of good things about LinuxQuestions, so let's hope this forum is a little better.

I am running Mandrake Linux 10 under the original Kernel (2.6.3?) that came with the first official retail CDs (I bought my copy - Discovery), and have not yet had reason or time to update and recompile the kernel. I am something of a noob, but I have so far caught on pretty fast.

The Doomsday engine is an OpenGL/Direct3D port of Doom for Win32, Mac, and Linux/FreeBSD. It's pretty fun with MD2 models and such, and I have had a lot of trouble lately compiling it into a binary.

I can run ./configure (you need to have your SDL developer packages installed correctly and in the right dirs) and create a makefile, but when running "make" I get this output/error:

[root@localhost deng-1.8.0]# make
make all-recursive
make[1]: Entering directory `/var/tmp/deng-1.8.0'
Making all in libltdl
make[2]: Entering directory `/var/tmp/deng-1.8.0/libltdl'
make all-am
make[3]: Entering directory `/var/tmp/deng-1.8.0/libltdl'
make[3]: Leaving directory `/var/tmp/deng-1.8.0/libltdl'
make[2]: Leaving directory `/var/tmp/deng-1.8.0/libltdl'
Making all in Src
make[2]: Entering directory `/var/tmp/deng-1.8.0/Src'
Making all in drOpenGL
make[3]: Entering directory `/var/tmp/deng-1.8.0/Src/drOpenGL'LibGLU not found when compilng Doomsday Engin
/bin/sh ../../libtool --mode=link gcc -Wunused-variable -Wunused-function -g -O2 -o libdropengl.la -rpath /usr/local/lib -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -module -version-info 0:0:0 -lGL -lGLU libdropengl_la-main.lo libdropengl_la-draw.lo libdropengl_la-ext.lo libdropengl_la-common.lo libdropengl_la-texture.lo
gcc -shared .libs/libdropengl_la-main.o .libs/libdropengl_la-draw.o .libs/libdropengl_la-ext.o .libs/libdropengl_la-common.o .libs/libdropengl_la-texture.o -L/usr/lib /usr/lib/libSDL.so -lpthread /usr/lib/libGL.so -lGLU -Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,libdropengl.so.0 -o .libs/libdropengl.so.0.0.0
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make[3]: *** [libdropengl.la] Error 1
make[3]: Leaving directory `/var/tmp/deng-1.8.0/Src/drOpenGL'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/deng-1.8.0/Src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/deng-1.8.0'
make: *** [all] Error 2

I am unsure as to exactly what this means, but I know it has to do with the OpenGL libraries which are installed, so can somebody tell me how I may remedy this?

Also, I am sure there will be more errors along the way, so I will report all of the ones I have corrected through trial-and-error should anyone else encounter similar errata:
SDL_Net developer package header / SDL_Net.h; move your SDL libraries to usr/local/include/SDL -- please note you need ALL SDL PACKAGES including the developers packages. ALL of them.

GCC - Make sure the latest version of GCC is installed under Linux (this can happen to anyone).
 
Old 07-09-2004, 05:13 PM   #2
Tormented
Member
 
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92

Rep: Reputation: 15
Re: Errors compiling Doomsday Engine 1.8.0 under Mandrake Linux 10

Looks like you need to install libMesaGLU1 and libMesaGLU1-devel from the Mandrake CDs.
 
Old 07-10-2004, 12:45 AM   #3
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Hey if you remidy this problem (I don't think I know how... maybe try a "locate libGLU.so" and see if you even have it, if so then update library paths) you might want to look into Vavoom www.vavoom-engine.com It is the best Hexen/Heretic/Doom port in the world!
 
Old 07-12-2004, 08:20 AM   #4
Helheim
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
Hi,
I'm running Slackware 10.0 and I had the same problem with compiling doomsday 1.8.0.
I think the only way to solve it is to modify Makefile placed in:

/usr/local/src/deng-1.8.0/Build/Src/drOpenGL

find the line:

libdropengl_la_LDFLAGS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -module -version-info 0:0:0 -lGL -lGLU

and place -L/usr/X11R6/lib befole -lGL -lGLU:

libdropengl_la_LDFLAGS = -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -module -version-info 0:0:0 -L/usr/X11R6/lib -lGL -lGLU

Though path /usr/X11R6/lib exists in ld.so.conf it conforms to shared libs only.

After that doomsday will compile mostly to the end and there is another error for me and some other people:

doomsday-lzss.o(.text+0x1188): In function `lzOpenChunk':
Unix/lzss.c:1019: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `deflate'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `inflate'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `deflateInit2_'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `deflateReset'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libpng.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
rm -f .libs/doomsdayS.o
make[3]: *** [doomsday] Error 1
make[3]: Leaving directory `/GuntherDW/src/deng-1.8.0/Src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/GuntherDW/src/deng-1.8.0/Src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/GuntherDW/src/deng-1.8.0'
make: *** [all] Error 2

The official response for that error is:
"hmm, i fixed it, remind to use GOOGLE next time"

But in google I've found nothing
 
Old 07-12-2004, 08:59 AM   #5
Helheim
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
For the second error export LIBS=-lz before running configure.
Now it compiles.
 
  


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
besides xine engine, what else engine can be used in kaffeine? bravehao Linux - Newbie 1 06-04-2005 07:34 AM
xine engine and mandrake 10.1 ronss Mandriva 2 10-18-2004 06:24 AM
Doomsday/jDoom Makaelin Linux - Software 2 08-27-2004 05:53 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
trouble compiling a theme engine the mirror Linux - Newbie 1 05-21-2002 11:57 AM


All times are GMT -5. The time now is 09:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration