Compiling errors (linux)

Compiling errors (linux)

Postby greaserpirate » 25 Oct 2011, 23:49

I finally got up the guts to plunge into the source, and I find that it can actually be readable. I made some changes to "src/game/defendmode.h" involving putting a limit on the health you can gain from standing near a flag, but when I went typed "cd ~/Desktop/redeclipse/src" and "make" to try it out I got this:

make -C enet/ all
make[1]: Entering directory `/home/mkalt/Desktop/redeclipse/src/enet'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mkalt/Desktop/redeclipse/src/enet'
g++ -O3 -fomit-frame-pointer -Wall -fsigned-char -fno-exceptions -fno-rtti -DINTERFACE -DIRC -Ishared -Iengine -Igame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags` -o shared/cube.h.gch.tmp shared/cube.h
/bin/sh: sdl-config: not found
shared/cube.h:44:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [shared/cube.h.gch] Error 1
Build complete, please try running the script again.

it didn't make a "bin" file.


I tried moving stuff around, because there were a couple of other files that fit the descriptions, but I got stuck on a couple, namely "shared/GL/gl.h" and "shared/tools.h", but I figured since I'd just copied and pasted them from elsewhere they were probably missing files, not just misplaced, and moving files when you have no idea about the contents is not the best idea.

I've been having a massive amount of ideas about modifications to the source lately, but I don't want to just ask for people to do them because they will just be a burden on the community and I probably won't get any of the features anyway since anyone who can code already has their hands full at the moment.

Are there any compilers or packages that I can download that can help me with this? I already have libSDL, libstdc++6, libstdc++6.45-dev, and zlib1g, if that helps (and those programs are at all related- I don't really know what I need to compile)

Friendship is Magic Voice Chat Mod
(Map) Trespass
(Map) Suspended
Find out more about >DOOM< here: www.redoomclan.tk
User avatar
greaserpirate
 
Posts: 350
Joined: 22 Jun 2011, 18:23

Re: Compiling errors (linux)

Postby orbitaldecay » 26 Oct 2011, 02:46

You'll need some SDL dev packages. Not sure which ones off hand, I usually just install them all. Depending on your distro they're usually called something like libsdl1.2-dev, libsdl-image1.2-dev libsdl-mixer1.2-dev, etc. If you're on Ubuntu just bring up Aptitude, search for SDL, and install everything starting with libsdl and ending in -dev :)
[ Wazu Clan ][ irc.wazuclan.com #wazuclan ][ http://www.orbitaldecay.com ]
User avatar
orbitaldecay
 
Posts: 180
Joined: 12 May 2011, 00:32
Location: Baltimore, MD, US

Re: Compiling errors (linux)

Postby sireus » 26 Oct 2011, 14:36

Yeah, make sure you actually have the -dev versions of all that stuff. sdl, sdl_image, sdl_mixer, zlib, opengl, and that should be all.

PS: You're right, moving when you have no idea about the contents is really not a good idea :P
sireus
 
Posts: 109
Joined: 24 May 2011, 20:10

Re: Compiling errors (linux)

Postby arand » 26 Oct 2011, 16:41

On Debian-like systems, the build dependencies are:
build-essential libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
And possibly, although these should be pulled in via dependencies, as far as I know:
libx11-dev, libgl1-mesa-dev, zlib1g-dev

Do you have all of these present?
Which distribution are you using?
User avatar
arand
 
Posts: 211
Joined: 26 Mar 2011, 21:42

Re: Compiling errors (linux)

Postby greaserpirate » 27 Oct 2011, 01:11

YES! It worked! I was expecting it to be something involving missing files, but I just downloaded everything you said and it compiles perfectly! This is probably the first time any serious problem on Linux has been solved so straightforwardly!

(Funny thing is that the SVN version plays slightly differently from the executable in the package. There are multiple crosshairs and all of them are huge, the sounds are different, and pressing SHIFT while jumping makes you plummet, etc. I kinda miss the old way of powersliding too)

Friendship is Magic Voice Chat Mod
(Map) Trespass
(Map) Suspended
Find out more about >DOOM< here: www.redoomclan.tk
User avatar
greaserpirate
 
Posts: 350
Joined: 22 Jun 2011, 18:23

Who is online

Users browsing this forum: No registered users and 1 guest