Page 1 of 1
compiling problems with java/zip
Posted: 19 Jul 2007, 15:11
by Agon
I have some problems compiling Spring new version.
Scons configure says that no zip and no java was found. Crazy. Java is installed: java 1.5/6 + jdk 1.7 + source + devel package. Zip what zip library? zlib? Or the programm zip? Or maybe zziplib?
http://pastebin.com/m25c195ea
I make a folder link from /usr/include/java to my latest java version. Doesn´t work.
Posted: 19 Jul 2007, 16:39
by AF
1.7?
jdk 1.7 is the OpenJava stuff thats still work in progress.
How did you install your jdk and what OS?
Posted: 19 Jul 2007, 16:58
by Agon
sry 1.6 Update 2. I installed it via smart with a rpm and from sun with the install script. All under Linux openSuse 10.2 x86_64.
Posted: 22 Jul 2007, 04:03
by malric
Posted: 22 Jul 2007, 22:42
by Agon
I uploaded the spring 0.75b2 to opensuse build service. x86 build works. But x64 requires jni.h. But opensuse build service is installing the required packages. Means the jni.h file should be installed. But scons does not found java and the jni.h.
Posted: 23 Jul 2007, 02:45
by malric
So, I rewrite I wrote in the other thread:
The check for java is done in rts/build/scons/config.py after line 181.
There it searches for java in : "/usr/local/lib/jvm", "/usr/lib/jvm".
On a Fedora Core 5, /usr/lib/jvm contained the necessary stuff.
So, if you do not have java installed in at least one of the two above directories it will not work. Please check that.
Posted: 23 Jul 2007, 15:01
by Agon
My java is installed in: /usr/java
"/usr/local/lib/jvm", does not exist.
"/usr/lib/jvm". does exist but where are only two files: liquidlnf.jar ; swing.properties
config.py from line 171 to 184
Code: Select all
def check_openal(env, conf):
print "Checking for OpenAL..."
# put this here for crosscompiling
if env['platform'] == 'windows':
guess_include_path(env, conf, 'OpenAL', 'AL')
return
print " Checking for openal-config...",
openalcfg = env.WhereIs("openal-config")
if openalcfg:
print openalcfg
env.ParseConfig(openalcfg+" --cflags --libs")
else:
print "not found"
guess_include_path(env, conf, 'OpenAL', 'AL')
Check for java is done at line 196.
I edited the line 206:
Code: Select all
for root in ["/usr/local/lib/jvm", "/usr/lib/jvm"]:
From to:
Code: Select all
for root in ["/usr/local/lib/jvm", "/usr/java", "/usr/lib/jvm"]:
Maybe someone with svn access should edit this line.
After edit it works.
Edit:
I found out that I installed two versions of jre and jdk.
java-1.6.0-sun and java-1.6.0-sun-devel from opensuse requires:
"/usr/lib64/jvm", "/usr/lib/jvm"
and the rpms from sun requires:
"/usr/java/"
Means the line 206 in config.py should be the following:
Code: Select all
for root in ["/usr/local/lib/jvm", "/usr/java", "/usr/lib64/jvm", "/usr/lib/jvm"]: