Game Development Community

COmpiling on Linux

by Chris "DiGi" Timberlake · in Torque Game Engine · 11/25/2003 (3:45 pm) · 38 replies

COmpiling on Mandrake 9.1, using KDEvelope and GCC2 i get this error
Quote: platformX86UNIX/x86UNIXGL.cc:13:21: SDL/SDL.h: No such file or directory
platformX86UNIX/x86UNIXGL.cc: In function 'bool bindFunction(void*&, const char*)':
platformX86UNIX/x86UNIXGL.cc:54: 'SDL_GL_GetProcAddress' undeclared (first use this function)
platformX86UNIX/x86UNIXGL.cc:54: (Each undeclared identifier is reported only once for each function it appears in.)
platformX86UNIX/x86UNIXGL.cc: In function 'bool GLLoader::OpenGLDLLInit()':
platformX86UNIX/x86UNIXGL.cc:107: 'SDL_GL_LoadLibrary' undeclared (first use this function)
platformX86UNIX/x86UNIXGL.cc:110: 'SDL_GetError' undeclared (first use this function)
make[1]: *** [out.GCC2.DEBUG/platformX86UNIX/x86UNIXGL.obj] Error 1
make: *** [default] Error 2
Yes, i even went with a brand new right off teh CVS version
Page«First 1 2 Next»
#21
12/03/2003 (9:42 pm)
True, that is annoying. However, its not nearly as bad as "oh, I need this RPM to install that RPM but it needs these other three which need two more." It was getting to the point where it took longer to figure out what I needed to download then it does waiting for it to compile. ;-)
#22
12/04/2003 (5:41 am)
@Gary: Exactly, that's why I recommend Debian in the first place. apt-get install gnome and it gets everything you need automagically.
#23
12/05/2003 (3:40 pm)
Took your advice, and plus a few "Kernal Failures" turned me back to mandrake, anyway i still get the same error and i double checked all of it
#24
12/05/2003 (3:51 pm)
Xavier: on a side note i had to install debian sid at work for a client project, but for the life of me couldn't figure out which of the cd's had kernel 2.4 on it so i decided to dl them all since google was no help as was the debian site :( guess i find out on monday since as i left my system was downloading cd's 10 through 12 :)

Chris: Ouch, its really odd that you have the above issues as i am a mandrake fan :) have both 9.1 and 9.2 install on two systems and haven't encountered the issue. One last thing to check is to make sure that ld.so.conf in /etc has the path listed for /usr/X11R6/lib :(
#25
12/05/2003 (4:08 pm)
Yep :( it does, i'm so pissed i'm about to cry, i really don't wanan go back to XP :(
#26
12/05/2003 (4:10 pm)
Oh, and Benoit on a side note, do you know how to set up GDM as my login manager, KDE's is awfull!
Edit: And Benoit, do you have a messenger, i have a cookie, emssed up idea! THAT JUST MAY WORK!
#27
12/05/2003 (5:55 pm)
Normally you can switch login manager by changing it from the login session manager by changing the wm for the session.

To for your desktop to gnome create a file in your home directory called .desktop and add the following:

DESKTOP=GNOME

Addendum: I also forgot to mention that creating a file called desktop in /etc/sysconfig with the word GNOME or KDE will switch it also from one to the other. Also note the file may not exist originally.
#28
12/05/2003 (6:12 pm)
In case the file is bad here is a link to the one i use.

members.fortunecity.com/torktools/Misc/libglu.tar.gz
#29
12/05/2003 (6:27 pm)
Hey benoit, its in the Control Panel, the main one, under hardware, then Display Manager ;)
#30
12/05/2003 (6:57 pm)
Hey man, thnx that lib did teh trick! my new hero
#31
12/05/2003 (9:59 pm)
Benoit: CD1 should have the 2.4 kernel on it, even the minimal boot cd for ftp install should still have it. Did you specify bf24 at the very beginning of setup?
#32
12/06/2003 (5:10 am)
John: yeah i did but it tells me that the kernel cannot be found, the only one that starts is the standard linux one. Kinda sucks because when i come to choose the keyboard it dies with a segfault and if i try to continue the install anyways two options later the damned thing locks up the system. At which point i have to reboot.

Chris: So the file worked, good news. :)
#33
12/06/2003 (11:10 am)
Weird Benoit. The woody images come with the 2.4 kernel. I have a mini iso that's 10 mbs that uses the 2.4 kernel and does a net install for the base system. Also, you said Debian sid... but there aren't any official sid cds... what are you downloading?
#34
12/06/2003 (11:28 am)
I went here www.debian.org/CD/http-ftp/ and found ftp.acc.umu.se/pub/cd-images/debian-unofficial/sid/ from the unstable list of mirrors and started downloading :)

My problem is that the client i am dealing with is using a custom version they cooked up, but mentioned that sid was the closest thing to what they had. I just assumed i could DL some cd's and get going ... guess thats not the case. My problem is can't easily use any web/ftp installers because of an overly restrictive proxy/net policies, bleah!!!
#35
12/07/2003 (7:46 am)
Xavier: any hints on what i else i could try to get it installed?
#36
12/07/2003 (11:21 am)
The net install can be done via ftp or http normal ports, is that restricted in your proxy too?! The way I always install sid is to use the woody mini-cd, install it, change apt to get sid packages and run apt-get update && apt-get dist-upgrade.
You can use the unofficial sid cds, but I think they use the sarge installer and It doesn't always work, I haven't tested it in months but It didnt work for me before.
#37
12/07/2003 (1:12 pm)
Ok thanks, i will give it a try, though last time i tried a net install was with gentoo and it kept failing because of the proxy :(
#38
08/10/2004 (9:12 pm)
I know this thread is dead. But it doesn't seem that this guy found any other option other than switch distros. I ran into the same problem, and I think it might be that the .mk files were just written for a different distro. But i found one simple change that fixed this compile error for me.

In the latest stable release 1_1_2 and probably in the CVS too you can change lines 69 and 71 in the mk/conf.UNIX.mk file to read

LINK.LIBS.GENERAL = $(LINK.LIBS.VORBIS) -Wl,-static -Wl,-dy -L/usr/X11R6/lib -Wl,-lGLU -lSDL -lpthread -ldl # -lefence

LINK.LIBS.TOOLS = $(LINK.LIBS.VORBIS) -Wl,-static -Wl,-dy -L/usr/X11R6/lib -Wl,-lGLU -lSDL -lpthread -ldl # -lefence

The change is slight, and subtle but what it does is indicate the additional places to look for libraries _before_ including libGLU. In mdk 10, it is installed in /usr/X11R6/lib, but it seems that the linker isn't using the ld cache properly. It _should_ have worked, but didn't. With those two changes, it will compile.
Page«First 1 2 Next»