LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-15-2006, 03:18 AM   #1
jaakkop
Member
 
Registered: Aug 2004
Posts: 433

Rep: Reputation: 30
Error while compiling PrBoom Slackware.


Hello,

I tried to compile PrBoom 2.4.6 on Slackware, but it keeps giving me error when I do make:
Code:
gcc  -g -O2 -Wall -Wno-unused -Wno-switch -march=i686 -Wextra -Winline -Wwrite-strings
-Wundef -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement
-ffast-math -O2 -fomit-frame-pointer -I../src -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT   -o prboom  mmus2mid.o am_map.o g_game.o
p_mobj.o r_demo.o r_segs.o hu_lib.o lprintf.o p_plats.o r_sky.o d_deh.o
hu_stuff.o m_argv.o p_pspr.o m_bbox.o p_saveg.o r_things.o d_items.o m_cheat.o
p_setup.o s_sound.o d_main.o p_sight.o sounds.o m_menu.o p_spec.o info.o
st_lib.o m_misc.o p_switch.o p_telept.o st_stuff.o m_random.o p_tick.o
tables.o p_user.o p_ceilng.o v_video.o doomdef.o p_doors.o p_enemy.o r_bsp.o
version.o doomstat.o p_floor.o r_data.o w_wad.o p_genlin.o dstrings.o
p_inter.o wi_stuff.o r_draw.o f_finale.o p_lights.o z_bmalloc.o p_map.o
r_main.o f_wipe.o z_zone.o p_maputl.o r_plane.o md5.o p_checksum.o r_patch.o
r_fps.o r_filter.o d_client.o gl_main.o gl_texture.o w_mmap.o
SDL/libsdldoom.a  -lSDL_mixer -lSDL_net -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL -lGLU  -lm
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make[3]: *** [prboom] Error 1
make[3]: Leaving directory `/usr/src/prboom-2.4.6/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/prboom-2.4.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/prboom-2.4.6'
make: *** [all] Error 2
Anyone had this error? How can I fix this?

Last edited by jaakkop; 10-15-2006 at 03:22 AM.
 
Old 10-16-2006, 01:16 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
It can't find the GLU libraries
Code:
cannot find -lGLU
Tell it where to find the GLU libraries if you have them. Otherwise install them. GLU is the OpenGL Utility Library and is provided by packages like Mesa and nVidia's driver. Execute
Code:
./configure --help
to see if there is a way to tell the configure script where libGLU is in case it's in a non-standard location.

Last edited by weibullguy; 10-16-2006 at 01:17 PM.
 
Old 10-16-2006, 02:50 PM   #3
jaakkop
Member
 
Registered: Aug 2004
Posts: 433

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Arow
It can't find the GLU libraries
Code:
cannot find -lGLU
Tell it where to find the GLU libraries if you have them. Otherwise install them. GLU is the OpenGL Utility Library and is provided by packages like Mesa and nVidia's driver. Execute
Code:
./configure --help
to see if there is a way to tell the configure script where libGLU is in case it's in a non-standard location.
I'm using nvidia's drivers and there seems not to be any option for specifying where libGLU is located.
 
Old 10-16-2006, 06:39 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Do you have libGLU? Where is it installed? Is the path to libGLU in /etc/ld.so.conf? If so, run ldconfig and try prboom again. If not, add the path to /etc/ld.so.conf, run ldconfig, and try prboom again.
 
Old 10-17-2006, 02:46 AM   #5
jaakkop
Member
 
Registered: Aug 2004
Posts: 433

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Arow
Do you have libGLU? Where is it installed? Is the path to libGLU in /etc/ld.so.conf? If so, run ldconfig and try prboom again. If not, add the path to /etc/ld.so.conf, run ldconfig, and try prboom again.
libGLU is in /usr/X11R6/lib/ and the path is specified in /etc/ld.so.conf. I did ldconfig and tried to compile but it gave me the same error again.
 
Old 10-17-2006, 06:46 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Is there a hardcoded path for libGLU in the configure script and makefile?
 
Old 10-17-2006, 02:44 PM   #7
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
/etc/ld.so.conf is irrelevant here. It is used by the dynamic linker at runtime, not when compiling. The problem is that gcc does not look in /usr/X11R6/lib by default, so just add -L/usr/X11R6/lib to the relevant rule in the Makefile and it should be OK. (This looks like a bug in the configure script.)
 
Old 10-18-2006, 03:04 AM   #8
jaakkop
Member
 
Registered: Aug 2004
Posts: 433

Original Poster
Rep: Reputation: 30
Ok, got it compiled now. I managed to add /usr/X11R6/lib to the Makefile.

Thank you Arow and soggycornflake

<edit>
It seems that there is a prboom package on linuxpackages.net, which I can use, so there is no need for me to compile it anymore :P. Atleast now I know what to do if I get a similar error on a different app.
</edit>

Last edited by jaakkop; 10-18-2006 at 09:17 AM.
 
Old 10-18-2006, 07:59 AM   #9
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
You're welcome and I apologize for starting to head you down the wrong path. Too many things going on at once. Thanks, soggycornflake, for poking me in the eye and straightening things out.
 
Old 02-05-2007, 05:52 PM   #10
fixxxer0101
LQ Newbie
 
Registered: Aug 2003
Location: Wyoming
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
Where do I edit the makefile?

I am running into the same problem compiling prboom. I understand why I need to edit the makefile and where the libraries are. I just don't understand where at IN the makefile I need to make the change. I don't really understand the way makefiles are put together yet.
 
Old 02-10-2007, 04:35 PM   #11
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Doomsday is much better than prboom I had no problems compiling that. It has nice md2 models too.
 
Old 02-11-2007, 01:41 AM   #12
jaakkop
Member
 
Registered: Aug 2004
Posts: 433

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Boow
Doomsday is much better than prboom I had no problems compiling that. It has nice md2 models too.
I like PrBoom better. No big changes made in the engine, so you can play the original Doom with modern engine,. There is no need to hassle with snowberry either. I haven't got any errors during compiling anymore either.
 
Old 02-15-2007, 07:31 PM   #13
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Ok, If you must have prboom it looks like it can't find libGlU. that file is on my system I run slackware. I have it in /usr/X11R6/lib. You might try symlinking it in /usr/lib.
 
Old 02-16-2007, 06:49 AM   #14
jaakkop
Member
 
Registered: Aug 2004
Posts: 433

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Boow
Ok, If you must have prboom it looks like it can't find libGlU. that file is on my system I run slackware. I have it in /usr/X11R6/lib. You might try symlinking it in /usr/lib.
Or manually edit the Makefile.
 
  


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
error compiling gnofract4d on slackware Axion Linux - Software 1 05-29-2006 11:54 PM
Slackware 10 error compiling kernel 2.6.7 nirvanix Slackware 3 05-29-2006 11:52 PM
error compiling alsa driver 1.0.9b on slackware 10.2 salviadud Slackware 9 11-14-2005 04:36 AM
PRBOOM - prboom.wad error ise Linux - Games 2 09-17-2004 01:57 PM
Can't configure prboom Madrinator Linux - Newbie 1 07-12-2004 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

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

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