compiling problems with java/zip

compiling problems with java/zip

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

Moderator: Moderators

Post Reply
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

compiling problems with java/zip

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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?
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Post 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.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

Maybe http://spring.clan-sy.com/phpbb/viewtopic.php?t=11167 would help ? (from the third post ...)
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Post 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.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post 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.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Post 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"]:
Post Reply

Return to “Linux”