This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[need help] ubuntu jpcsp
#21
Sorry for the dumb question but how should I do that? Thanks in advance?
Reply
#22
I had the same problem, seem that jpcsp don't work with java 7 (both oracle and openjdk) on ubuntu,
if you uninstall it and try with java 6 openjdk or with java 6 sun (with jdk package) everything will work
Reply
#23
(06-05-2012, 04:18 PM)wingnux Wrote: Sorry for the dumb question but how should I do that? Thanks in advance?
Edit the 2nd line of start-linux-amd64.sh with
Code:
java -Xmx1024m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/linux-amd64 "-Dorg.lwjgl.librarypath=$0/../lib/linux-amd64" -jar bin/jpcsp.jar
(this will only work inside the script, not directly on the command line)
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#24
Same error:

Code:
wingnux@wingnux-desktop:~/jogos/jpcsp-linux-amd64$ sh start-linux-amd64.sh
Exception in thread "GUI" java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: start-linux-amd64.sh/../lib/linux-amd64/liblwjgl.so
        at java.lang.Runtime.load0(Runtime.java:789)
        at java.lang.System.load(System.java:1059)
        at org.lwjgl.Sys$1.run(Sys.java:70)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:82)
        at org.lwjgl.Sys.<clinit>(Sys.java:99)
        at org.lwjgl.opengl.AWTGLCanvas.<clinit>(AWTGLCanvas.java:85)
        at jpcsp.HLE.Modules.<clinit>(Modules.java:150)
        at jpcsp.MainGUI.<init>(MainGUI.java:167)
        at jpcsp.MainGUI$56.run(MainGUI.java:2093)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
        at java.awt.EventQueue.access$000(EventQueue.java:102)
        at java.awt.EventQueue$3.run(EventQueue.java:662)
        at java.awt.EventQueue$3.run(EventQueue.java:660)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)                                      
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)                                                  
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)                                                  
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)                                                          
^C                                                                                                                                
wingnux@wingnux-desktop:~/jogos/jpcsp-linux-amd64$ cat start-linux-amd64.sh                                                        
#!/bin/sh\n                                                                                                                        
#java -Xmx1024m -XX:MaxPermSize=64m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/amd-64 -jar bin/jpcsp.jar                
java -Xmx1024m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/linux-amd64 "-Dorg.lwjgl.librarypath=$0/../lib/linux-amd64" -jar bin/jpcsp.jar

Edit:
Quote:wingnux@wingnux-desktop:~$ locate liblwjgl.so
wingnux@wingnux-desktop:~$

I don't think I have this library on my system and I'd performed a "sudo updatedb" before trying to locate liblwjgl.so.
Reply
#25
(06-06-2012, 09:42 AM)wingnux Wrote: Same error:
then try to hardcode the absolute path from your system (the path you see when calling "pwd"):
Code:
java -Xmx1024m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/linux-amd64 "-Dorg.lwjgl.librarypath=/.../jogos/jpcsp-linux-amd64/lib/linux-amd64" -jar bin/jpcsp.jar
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#26
Code:
wingnux@wingnux-desktop:~/jogos/jpcsp-linux-amd64$ sh start-linux-amd64.sh
Exception in thread "GUI" java.lang.UnsatisfiedLinkError: Can't load library: /home/wingnux/jogos/jpcsp-linux-amd64/lib/linux-amd64/liblwjgl.so
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828)
        at java.lang.Runtime.load0(Runtime.java:792)
        at java.lang.System.load(System.java:1059)
        at org.lwjgl.Sys$1.run(Sys.java:70)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:82)
        at org.lwjgl.Sys.<clinit>(Sys.java:99)
        at org.lwjgl.opengl.AWTGLCanvas.<clinit>(AWTGLCanvas.java:85)
        at jpcsp.HLE.Modules.<clinit>(Modules.java:150)
        at jpcsp.MainGUI.<init>(MainGUI.java:167)
        at jpcsp.MainGUI$56.run(MainGUI.java:2093)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
        at java.awt.EventQueue.access$000(EventQueue.java:102)
        at java.awt.EventQueue$3.run(EventQueue.java:662)
        at java.awt.EventQueue$3.run(EventQueue.java:660)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

These are the libs on the jpcsp directory:

Quote:wingnux@wingnux-desktop:~/jogos/jpcsp-linux-amd64$ ls ~/jogos/jpcsp-linux-amd64/lib/linux-amd64/
libjinput-linux64.so liblwjgl64.so libopenal64.so

Tried copying liblwjgl64.so to liblwjgl.so and it didn't work either.
Reply
#27
have you checked permissions ?
ls -al /jogos/jpcsp-linux-amd64/lib/linux-amd64/

make sure its readable by your user/group if not then

chmod 755 -R /jogos/jpcsp-linux-amd64/lib/*

if it still fails try
ldd /jogos/jpcsp-linux-amd64/lib/linux-amd64/liblwjgl.so
see if you are missing anything it needs.
Reply
#28
Permissions are ok and even after applying chmod -R 755 it still crashes.

Here's the ldd output of liblwjgl64.so:

Quote:wingnux@wingnux-desktop:~/jogos/jpcsp-linux-amd64/lib/linux-amd64$ ldd liblwjgl64.so
linux-vdso.so.1 => (0x00007fff93ecc000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007faa87457000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007faa87123000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007faa86f11000)
libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007faa86d07000)
libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007faa86afe000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007faa868f8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007faa866db000)
libjawt.so => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faa8631d000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007faa860ff000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007faa85efb000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007faa85cf0000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007faa85aea000)
/lib64/ld-linux-x86-64.so.2 (0x00007faa879ec000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007faa858e7000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007faa856e0000)

As said before, there's no liblwjgl.so on the lib directory, only liblwjgl64.so.
Reply
#29
hm not sure if it will help maybe try making a symbolic link to both filenames (you might need to use full paths)
ln -s liblwjgl64.so liblwjgl.so


you could also try to set the global path
export PATH=$PATH:/jogos/jpcsp-linux-amd64/lib:/jogos/jpcsp-linux-amd64/lib/linux-amd64
Reply
#30
From the source code, LWJGL is trying to load liblwjgl64.so and if it fails, it is trying with liblwjgl.so. If that one fails again, it is displaying the error message about liblwjgl.so.
Despite of the error message, the main issue is however that liblwjgl64.so cannot be loaded... at least, this is what I understood from their source code...
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)