Page 1 of 1

Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 03:06
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?

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 10:42
by imbaczek
jni should be a part of java sdk.

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 11:10
by Auswaschbar
You could also use cmake, which has java-bindings optional.

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 13:50
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

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 13:58
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)

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 14:16
by umarzuki
Thanks to all, I got it compiled. Now I just need to find maps and mods.

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 14:19
by imbaczek
get springlobby now.

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 14:55
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

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 15:10
by Auswaschbar

Code: Select all

./installer/springlobby_download.sh
This only downloads the windows version :lol:

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 15:29
by umarzuki
So, what next? Is there any howto on this?

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 15:30
by koshi

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 15:30
by Auswaschbar
Download latest springlobby tarball from http://www.springlobby.info/tarballs/?C=N;O=D and compile+install it.

Re: Compiling sorce on Debian Lenny AMD64

Posted: 25 Jan 2009, 15:30
by imbaczek
google springlobby, click on first link - springlobby.info, follow intructions

ps got ninja'd
pss twice!