PDA

View Full Version : Trying to compile from source



ravaged_warrior
16th August 2007, 07:25 AM
This is a problem that I've had with pretty much every version of Linux I've used (except for one, but that only worked a couple of times). Anyway, I'm trying to compile a program from source, I but I get the error
Checking SDL...
which: no sdl-config in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/home/joey/bin)
*** Couldn't find sdl-config. (You can get libSDL at http://www.libsdl.org/)

What should I do? I've tried just downloading the programs binaries, but for some reason it refuses to open it.

daverj
16th August 2007, 07:56 AM
have you tried installing the sdl package(s)? Try


yum list | grep -i sdl

to see what they are.

davidj

LocutusOfBorg
16th August 2007, 08:00 AM
you need the SDL-devel package

mirek
14th October 2007, 10:17 PM
you need install yum -y install SDL SDL-devel SDL_mixer SDL_mixer-devel SDL_gfx SDL_gfx-devel SDL_image SDL_image-devel SDL_ttf SDL_ttf-devel
end compile g++ source.cpp -o source -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx
see http://www.gambox.pl/......

arguspanoptes
15th November 2007, 04:39 AM
I am having a problem possibly linked to this sort of thing. I wanna play AssaultCube but when I run it I get nothing and when I run it in terminal I can only get the terminal to flash momentarily not stay and give me an error or anything.

It says I need libSDL 1.2; libSDL_mixer; and something else to run the game but when I try to install SDL 1.2 it says it is already installed, however those libraries are not in the lib folder..

mirek
9th January 2008, 10:26 PM
try yum -y install SDL SDL-devel
yum locate the heder files in /usr/include
and the libraries in /usr/lib
from source you can compile with -I/usr/include and -L/usr/lib
easy compilations examples can you see an http://www.gambox.pl/

mirek
9th January 2008, 10:34 PM
try yum -y install SDL SDL-devel
yum locate the heder files in /usr/include
and the libraries in /usr/lib
the libraries libSDL.so ... are in /usr/lib ...
from source you can compile with -I/usr/include and -L/usr/lib
the examples can you see http://www.libsdl.org tutorial SDL
easy compilations examples can you see an http://www.gambox.pl/
compile
g++ example.cpp -o example -lSDL
good luck!

djscriz
29th January 2014, 07:58 PM
Hello, I'm trying to install Assault Cube Reloaded on Fedora 12. No dual boot, 32 bit, 512 RAM. I have the first one yet the server list dissapeared. Therefore I'm wondering if theres a way to install it, I have the tarball, but you know how that goes. So I figured I'd get the source and compile it to a .rpm and then install. Any ideas, comments? Please help, and thank you.