Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Java/Azureus/PPC woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Kabal13
n00b
n00b


Joined: 09 Jun 2004
Posts: 6

PostPosted: Wed Jun 09, 2004 6:46 am    Post subject: Java/Azureus/PPC woes Reply with quote

Hey

I've installed gentoo on a rev C (I think.. im a mac newbie :P) 266MHz iMac. Its been mostly painless so far except for getting java/Azureus to work. I didn't have to do anything special to get it working in gentoo on my x86 box so thats why im posting it in this forum :)

when i did emerge azureus-bin it installed the ibm 1.4.1 jdk okay but the java configuration seems to be a bit wonky. The JDK home doesn't seem to be set correct properly because when compiling systray4j it complained about not finding jni.h so I did export JDK_HOME=/opt/ibm blah blah/ (What is the proper way to set this?) and that stopped that error but now I get:

Code:
/usr/qt/3/include/qptrlist.h: In member function `void
   QPtrList<type>::deleteItem(void*) [with type = MenuBase]':
/usr/qt/3/include/qstringlist.h:62:   instantiated from here
/usr/qt/3/include/qptrlist.h:150: invalid use of undefined type `struct
   MenuBase'
systraymanager.h:29: forward declaration of `struct MenuBase'
make: *** [systraymanager.moc.o] Error 1
make: *** Waiting for unfinished jobs....


Anyway, i can live without system tray support for now so I did
USE="-kde" emerge azureus-bin and it installs fine.

Then I go to run Azureus and It cant find java.. so i edit profile and add /opt/ibm-java-blah/bin to my path (again.. whats the proper way to do this? :)) and now when i run Azureus I get this:

Code:
kabal@agentorange kabal $ azureus
Attempting to start Azureus...
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/azureus/libswt-pi-gtk-3052.so: /usr/lib/azureus/libswt-pi-gtk-3052.so: ELF file data encoding not big-endian
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2014)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1892)



Soo I'm stuck now. Any help would be greatly appreciated :)
Back to top
View user's profile Send private message
Kabal13
n00b
n00b


Joined: 09 Jun 2004
Posts: 6

PostPosted: Wed Jun 09, 2004 7:18 am    Post subject: Reply with quote

Oh i've just realised that the azureus binary comes with a few libraries that are obviously not compiled for ppc and thats whats going wrong :)
Back to top
View user's profile Send private message
Kabal13
n00b
n00b


Joined: 09 Jun 2004
Posts: 6

PostPosted: Fri Jun 11, 2004 10:15 am    Post subject: Reply with quote

Just another post to say I got azureus working on my iMac ;)

I compiled just the swt libs from eclipse using these instructions:
http://lists.debian.org/debian-powerpc/2003/04/msg00442.html

Note: you need eclipse 3.0 source (I used 3.0RC1)

And all my java config woes were sorted with java-config --set-system-vm :)
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Fri Apr 22, 2005 2:38 pm    Post subject: Reply with quote

I've had the same problem, but with g2gui:
Code:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/share/g2gui/lib/libswt-pi-gtk-3044.so: /usr/share/g2gui/lib/libswt-pi-gtk-3044.so: ELF file data encoding not big-endian
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2120)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1998)
        at java.lang.Runtime.loadLibrary0(Runtime.java:824)
        at java.lang.System.loadLibrary(System.java:908)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:112)
        at net.mldonkey.g2gui.view.G2Gui.main(G2Gui.java:115)
G2gui terminated.


When i have more time i'll try what you did kabal13. But isn't there a bigger issue here? Stuff that is compiled on ppc, with all the correct compiler settings (which i know i have), should work on ppc! The libs should have big-endian encoding, shouldn't they? I'm not saying i'm definitely right. If anyone would like to correct me, i'd love to know why the libs have been built with little-endian encoding!
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Apr 23, 2005 6:46 am    Post subject: Reply with quote

why don't you try "emerge azureus"? (currently ~ppc)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum