View Full Version : Install on linux ppc?
ubuntubrian
02-05-2007, 10:49 PM
Here's my question on this forum. Saw it after I posted on the Technical Support Forum.
I seethat WW2D can be installed on linux ppc, sort of. From the website http://ww2d.org/download.php
"Other Platforms
Download WW2D-0.99.88RC1-any.tar.bz2 (5.7 Mb) and unpack it somewhere. You'll need to find native JOGL, LWJGL and LWJGL-DevIL and DevIL (should be (re)named libIL.so) libraries for your platform and put them into lib folder inside your WW2D installation."
The first part is easy but the DevIL packages are only available, as far as I can find, as RPMs and I, using Ubuntu, need deb packages. I converted the RPMs to debs and randpkg to install them but I can't really "put them into lib folder inside your WW2D installation." They install somewhere by default.
Does anyone know how to make this work? I also have some of the package dependencies in my repositories but that doesn't really help as they are also installed elsewhere by default.
Currently, here is what is in my home/WW2D folder and the /lib folder inside it:
~/ww2d-0.99.88rc1$ ls
Earth Global lib LICENSE.txt README.txt ww2d ww2d-icon.png WW2D.jar
@ubuntu:~/ww2d-0.99.88rc1$ cd lib
@ubuntu:~/ww2d-0.99.88rc1/lib$ ls
bsh-2.0b4.jar jogl.jar lwjgl_devil.jar tinylaf.jar
idw-gpl.jar l2fprod-common-all.jar lwjgl.jar
jcalendar.jar lwjgl-1.0 swing-layout-1.0.jar
Many thanks!
ubuntubrian
02-06-2007, 12:34 AM
I tried running WW2D after copying libIl.so.1.0.0 into the lib directory and get this:
java WW2D.jar
WW2D 0.99.88 by Vitaliy Pronkin <pronvit@gmail.com> starting...
TinyLaF v1.3.04
'Default.theme' not found - using YQ default theme.
Exception in thread "main" java.lang.Error: Do not use javax.swing.JDialog.add() use javax.swing.JDialog.getContentPane().add () instead
at javax.swing.JDialog.createRootPaneExcept ion(JDialog.java:573)
at javax.swing.JDialog.addImpl(JDialog.java :599)
at java.awt.Container.add(Container.java:34 3)
at org.ww2d.core.Main.showSplash(Main.java: 292)
at org.ww2d.core.Main.main(Main.java:366)
I don't know how to change javax.swing.... as the error message indicates.
Any ideas?
Chade
02-06-2007, 12:50 AM
Which java runtime version do you have? Because I wonder if that's a deprecated method from 1.3 (newest version is 1.6, and a few changes have been made in 1.5 from 1.4.2)...
ubuntubrian
02-06-2007, 01:06 AM
Java is version 1.5. As I am using Ubuntu ppc upgrading is not so easy! However, I changed the name of "libIl.so.1.0.0" to libIl.so" and that error is no longer a problem. Now I get:
java -jar WW2D.jar
WW2D 0.99.88 by Vitaliy Pronkin <pronvit@gmail.com> starting...
TinyLaF v1.3.04
'Default.theme' not found - using YQ default theme.
JVMDG217: Dump Handler is Processing Signal 11 - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to /home/brianokeefe/ww2d-0.99.88rc1/javacore.20070205.174411.7211.txt
JVMDG215: Dump Handler has Processed Exception Signal 11.
Segmentation fault
Any ideas?
Thanks again.
ubuntubrian
02-06-2007, 01:18 AM
I also did this as suggested here-http://forum.ww2d.org/viewtopic.php?pid=155:
"try attached WW2D.jar
it seems that some JRE versions show this error and some not.
Attached Files
Attachment Icon WW2D.jar, Size: 630,339 bytes, Downloads: 128"
this seemed to help. Link also had the suggestion:
"100% working solution is to install libdevil, find libIL.so[.??] in /usr/lib and copy it (renaming it to libIL.so if needed) to lib folder inside WW2D installation"
ubuntubrian
02-06-2007, 01:37 AM
Sorry about all the posts but I figure these things out a bit at a time. I was wrong about Java version.
Javacore.txt has the dump info and has:
J2RE 1.4.2 IBM build cxppc32142-20050929
here's what is in /usr/bin:
j2re1.5-ibm
j2sdk1.4-ibm
j2sdk1.5-ibm
I could use 1.5 if someone can show me how to point java at that version.
Thanks again
ubuntubrian
02-06-2007, 01:59 AM
here are my notes in trying to get WW2D to use java1.5-
Changed /usr/lib/jsdk1.4-ibm to jsdk1.4-ibm.old
Changed in /usr/bin/java 'exec /usr/lib/j2sdk1.4-ibm/bin/java ${1+"$@"}' to 'exec /usr/lib/j2sdk1.5-ibm/bin/java ${1+"$@"}' not including the ' at begin and end.
result-hangs at:
java -jar WW2D.jar
WW2D 0.99.88 by Vitaliy Pronkin <pronvit@gmail.com> starting...
TinyLaF v1.3.04
'Default.theme' not found - using YQ default theme.
Exception in thread "main" java.lang.UnsatisfiedLinkError: jogl_drihack (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPat h(ClassLoader.java:870)
at java.lang.ClassLoader.loadLibraryWithCla ssLoader(ClassLoader.java:839)
at java.lang.System.loadLibrary(System.java :445)
at com.sun.opengl.impl.NativeLibLoader$Defa ultAction.loadLibrary(NativeLibLoader.ja va:78)
at com.sun.opengl.impl.NativeLibLoader.load Library(NativeLibLoader.java:101)
at com.sun.opengl.impl.NativeLibLoader.acce ss$100(NativeLibLoader.java:47)
at com.sun.opengl.impl.NativeLibLoader$3.ru n(NativeLibLoader.java:141)
at java.security.AccessController.doPrivile ged(AccessController.java:197)
at com.sun.opengl.impl.NativeLibLoader.load DRIHack(NativeLibLoader.java:139)
at com.sun.opengl.impl.x11.DRIHack.begin(DR IHack.java:105)
at com.sun.opengl.impl.x11.X11GLDrawableFac tory.<clinit>(X11GLDrawableFactory.java:66)
at java.lang.J9VMInternals.initializeImpl(N ative Method)
at java.lang.J9VMInternals.initialize(J9VMI nternals.java:148)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:131)
at javax.media.opengl.GLDrawableFactory.get Factory(GLDrawableFactory.java:111)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:82)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:75)
at org.ww2d.core.GLCanvasEx.<init>(GLCanvasEx.java:11)
at org.ww2d.core.MapCanvas.<init>(MapCanvas.java:80)
at org.ww2d.core.Main.<init>(Main.java:98)
at org.ww2d.core.Main.main(Main.java:373)
Nice to see someone trying to get this running on a ppc, I'm stuck with windows mobile 5 unfortunately, maybe one day I'll get to see WW on my axim.
vBulletin® v3.7.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.