EmuNewz Network
r1512 Use Media Engine issue running on Eclipse - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: svn trunk discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=56)
+---- Thread: r1512 Use Media Engine issue running on Eclipse (/showthread.php?tid=1117)



r1512 Use Media Engine issue running on Eclipse - BlackDaemon - 05-16-2010

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



RE: r1512 Use Media Engine issue running on Eclipse - theball - 05-16-2010

If you start it with eclipse, you must copy all the directory x86 at the base of the project to eclipse use it correctly


RE: r1512 Use Media Engine issue running on Eclipse - BlackDaemon - 05-16-2010

theball,

Hmm, could you write an example path? Thanks.
My current paths:
Eclipse - D:\Eclipse
Workspace - D:\Eclipse\workspace
JPCSP - D:\Eclipse\workspace\Jpcsp


RE: r1512 Use Media Engine issue running on Eclipse - theball - 05-16-2010

\workspace\jpcsp\*.dll

I do like this and it's work fine.


RE: r1512 Use Media Engine issue running on Eclipse - Orphis - 05-16-2010

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...


RE: r1512 Use Media Engine issue running on Eclipse - BlackDaemon - 05-16-2010

Orphis,

Could you show (screenshot) how properly do it? Thanks.


RE: r1512 Use Media Engine issue running on Eclipse - Orphis - 05-16-2010

Google how to edit the PATH environment variable for your OS, as it depends on your OS version. That's easy enough to find !


RE: r1512 Use Media Engine issue running on Eclipse - hyakki - 05-17-2010

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


RE: r1512 Use Media Engine issue running on Eclipse - BlackDaemon - 05-17-2010

Or do this in Eclipse. Tongue