svkaiser / strife-ve

Strife Veteran Edition GPL Source Release
GNU General Public License v2.0
133 stars 37 forks source link

Problem compiling under Linux #2

Open throgh opened 9 years ago

throgh commented 9 years ago

Hello!

I've got some problems compiling the source code under elementaryOS (Ubuntu Linux 12.04 derivate). There are errors about a missing header-file "config.h" within the projects, SDL is missing even if everything is installed and some definitions like PACKAGE_TARNAME or PACKAGE_NAME are not found. Is it possible to have some advice for these errors? I must also admit to be a simple newbie in compiling under Linux. Thanks!

Best regards, throgh.

ryan-sg commented 8 years ago

You might need to make sure all the required dev packages are installed for SDL and such: SDL, SDL_net, SDL_mixer, ffmpeg, libpng and zlib.

I haven't used debian-derived linuxes for quite some time (which ubuntu comes from and thus elementary :D) but iirc the package for sdl might be libsdl-dev, for example.

You will want to install cmake as well, then try something like this from inside the strive-ve-src directory:

$ mkdir build
$ cd build
$ cmake ..
 [output should scroll here detecting compiler, dependencies, etc]
$ make

Those basic steps should give you a strife-ve binary at least. If you get errors after running the "cmake .." command, they will likely be regarding missing dependencies, see which one it is, and make sure you have it plus its -dev package installed.

I hope this helps, long time has passed since you first posted this!