Compiling sorce on Debian Lenny AMD64

Compiling sorce on Debian Lenny AMD64

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
umarzuki
Posts: 25
Joined: 25 Jan 2009, 03:03

Compiling sorce on Debian Lenny AMD64

Post by umarzuki »

can someone tell me what does this means?
on 64-bit be sure to build against devIl 1.6.8-rc2 or higher, 1.6.7 has a bug in the PNG loading code that causes issues
BTW, I'm referring to http://spring.clan-sy.com/wiki/Build_from_source#Debian

Other thing, when I'm ran scons configure, it seems jni.h is missing
scons: Configure: Checking for C++ header file jni.h...
build/sconf_temp/conftest_38.cpp <-
|
|#include "jni.h"
|
|
g++ -o build/sconf_temp/conftest_38.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=sse -msse -DUSE_PRECOMPILED_HEADER -pthread -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=sse -msse -DUSE_PRECOMPILED_HEADER -pthread -D_SZ_ONE_DIRECTORY -D_GNU_SOURCE=1 -D_REENTRANT -Irts -Irts/System -Irts/lib/luabind -Irts/lib/lua/include -Irts/lib/streflop -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include/python2.5 -I/usr/include/python2.4 -I/usr/include/java build/sconf_temp/conftest_38.cpp
build/sconf_temp/conftest_38.cpp:2:17: error: jni.h: No such file or directory
scons: Configure: no
How do i get it? Is it supposed to be in the arball or do I need to install a package?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling sorce on Debian Lenny AMD64

Post by imbaczek »

jni should be a part of java sdk.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling sorce on Debian Lenny AMD64

Post by Auswaschbar »

You could also use cmake, which has java-bindings optional.
umarzuki
Posts: 25
Joined: 25 Jan 2009, 03:03

Re: Compiling sorce on Debian Lenny AMD64

Post by umarzuki »

So, basically, aside from scons

Code: Select all

scons configure
scons
scons install
I could also use cmake as alternative?

Code: Select all

cmake .
make
make install
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling sorce on Debian Lenny AMD64

Post by Auswaschbar »

umarzuki wrote:So, basically, aside from scons

Code: Select all

scons configure
scons
scons install
I could also use cmake as alternative?

Code: Select all

cmake .
make
make install
Yes. Except that cmake usually works alot better 8)
umarzuki
Posts: 25
Joined: 25 Jan 2009, 03:03

Re: Compiling sorce on Debian Lenny AMD64

Post by umarzuki »

Thanks to all, I got it compiled. Now I just need to find maps and mods.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling sorce on Debian Lenny AMD64

Post by imbaczek »

get springlobby now.
umarzuki
Posts: 25
Joined: 25 Jan 2009, 03:03

Re: Compiling sorce on Debian Lenny AMD64

Post by umarzuki »

Ok, even after ran ./installer/springlobby_download.sh and copied Gundam_RTS_111f5.sdz into both ~/.sping/maps and ~/.spring/mods, I still got
Image

Code: Select all

Warning: Cannot convert string "vlines2" to type Pixmap
Perhaps I had missed something
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling sorce on Debian Lenny AMD64

Post by Auswaschbar »

Code: Select all

./installer/springlobby_download.sh
This only downloads the windows version :lol:
umarzuki
Posts: 25
Joined: 25 Jan 2009, 03:03

Re: Compiling sorce on Debian Lenny AMD64

Post by umarzuki »

So, what next? Is there any howto on this?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling sorce on Debian Lenny AMD64

Post by Auswaschbar »

Download latest springlobby tarball from http://www.springlobby.info/tarballs/?C=N;O=D and compile+install it.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling sorce on Debian Lenny AMD64

Post by imbaczek »

google springlobby, click on first link - springlobby.info, follow intructions

ps got ninja'd
pss twice!
Post Reply

Return to “Linux”