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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
r1512 Use Media Engine issue running on Eclipse
#1
When i'm trying to run JPCSP with "Use Media Engine" compatibily option from Eclipse i got
Code:
39704 [main] INFO  misc - 2010-05-16 13:34:31,140 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-xuggler; version: 3: absolute path: D:\eclipse\workspace\Jpcsp\lib\windows-x86\libxuggle-xuggler-3.dll; error: java.lang.UnsatisfiedLinkError: D:\eclipse\workspace\Jpcsp\lib\windows-x86\libxuggle-xuggler-3.dll: Can't find dependent libraries
39717 [main] INFO  misc - 2010-05-16 13:34:31,169 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle-xuggler; version: 3; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no xuggle-xuggler in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.xuggle.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:265)
    at com.xuggle.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:168)
    at com.xuggle.xuggler.XugglerJNI.<clinit>(XugglerJNI.java:19)
    at com.xuggle.xuggler.IContainer.<clinit>(IContainer.java:1457)
    at jpcsp.media.MediaEngine.init(MediaEngine.java:124)
    at jpcsp.HLE.modules150.sceMpeg.sceMpegAvcDecode(sceMpeg.java:1155)
    at jpcsp.HLE.modules150.sceMpeg$22.execute(sceMpeg.java:2157)
    at jpcsp.HLE.modules.HLEModuleManager.handleSyscall(HLEModuleManager.java:320)
    at jpcsp.HLE.SyscallHandler.syscall(SyscallHandler.java:1098)
    at jpcsp.Allegrex.compiler.RuntimeContext.syscall(RuntimeContext.java:567)
    at _S1_2_8ACCAF8.s(_S1_2_8ACCAF8.java:4)
    at _S1_2_8A97F80.s(_S1_2_8A97F80.java:160)
    at _S1_2_8A97E94.s(_S1_2_8A97E94.java:80)
    at _S1_2_8A97E94.exec(_S1_2_8A97E94.java)
    at jpcsp.Allegrex.compiler.RuntimeContext.jumpCall(RuntimeContext.java:117)
    at jpcsp.Allegrex.compiler.RuntimeContext.call(RuntimeContext.java:137)
    at _S1_2_8A96248.s(_S1_2_8A96248.java:264)
    at _S1_2_890BFBC.s(_S1_2_890BFBC.java:48)
    at _S1_2_890C2D4.s(_S1_2_890C2D4.java:32)
    at _S1_2_8903F34.s(_S1_2_8903F34.java:608)
    at _S1_2_89046DC.s(_S1_2_89046DC.java:16)
    at _S1_2_89046DC.exec(_S1_2_89046DC.java)
    at jpcsp.Allegrex.compiler.RuntimeContext.jumpCall(RuntimeContext.java:117)
    at jpcsp.Allegrex.compiler.RuntimeContext.jump(RuntimeContext.java:130)
    at _S1_2_89044D4.s(_S1_2_89044D4.java:64)
    at _S1_2_8904DF0.s(_S1_2_8904DF0.java:484)
    at _S1_2_8904DF0.exec(_S1_2_8904DF0.java)
    at jpcsp.Allegrex.compiler.RuntimeContext.jumpCall(RuntimeContext.java:117)
    at jpcsp.Allegrex.compiler.RuntimeContext.jump(RuntimeContext.java:130)
    at _S1_2_8904BE8.s(_S1_2_8904BE8.java:52)
    at _S1_2_8800648.s(_S1_2_8800648.java:820)
    at _S1_2_8800AB8.s(_S1_2_8800AB8.java:84)
    at _S1_2_8800AB8.exec(_S1_2_8800AB8.java)
    at jpcsp.Allegrex.compiler.RuntimeContext.runThread(RuntimeContext.java:596)
    at jpcsp.Allegrex.compiler.RuntimeThread.run(RuntimeThread.java:45)
But i already unpack all dll's from ffmpeg-natives archive. If i put already compiled jpcsp.jar to bin folder and run it from bat - it works ok... Huh
VM arguments used:
Code:
-Xmx512m -Xss10m -Djava.library.path=lib/windows-x86
Reply
#2
If you start it with eclipse, you must copy all the directory x86 at the base of the project to eclipse use it correctly
Reply
#3
theball,

Hmm, could you write an example path? Thanks.
My current paths:
Eclipse - D:\Eclipse
Workspace - D:\Eclipse\workspace
JPCSP - D:\Eclipse\workspace\Jpcsp
Reply
#4
\workspace\jpcsp\*.dll

I do like this and it's work fine.
Reply
#5
You just need to edit the environment and point the PATH variable to the folder with the xuggler libraries actually. No need to pollute the Eclipse directory...
Reply
#6
Orphis,

Could you show (screenshot) how properly do it? Thanks.
Reply
#7
Google how to edit the PATH environment variable for your OS, as it depends on your OS version. That's easy enough to find !
Reply
#8
control panel - system - Advanced settings (left of screen) - Environmental variables

find PATH in "system variables"
append the path, add the full path to jpcsp\lib\windows-x86 (or where you extracted the ffmpeg archive to)
make sure you don't delete any other paths in there since the system needs them.

the reason i suggested the path in the bat file was because of this , its to much to add it to the global system path for most users where in the bat file it just for that session only, so adding the path to global system would be the only way for eclipse to find, OR start eclipse from a bat file with the path set. like in the jpcsp bat file.

for example make a bat file in the eclipse root dir except change the path to match your path i used c:\jpcsp as an example

put this in it
@echo off
set PATH=%PATH%;C:\jpcsp\lib\windows-x86\
eclipse.exe


Attached Files Thumbnail(s)
   
Reply
#9
Or do this in Eclipse. Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)