[英]How I can use Xuggler with Play! Framework
I was trying to use Xuggler ( http://www.xuggle.com/ ) with play! 我试图在玩游戏时使用Xuggler( http://www.xuggle.com/ )! framework. 框架。 I'm using Mac OSX and also created the ~/.MacOSX/environment.plist
file with xuggler path. 我使用的是Mac OSX,还创建了具有xuggler路径的~/.MacOSX/environment.plist
文件。 I also set these in my ~/.bashrc
我也将这些设置在我的~/.bashrc
export XUGGLE_HOME=/usr/local/xuggler
export LD_LIBRARY_PATH=$XUGGLE_HOME/lib
I put all the jars in the /lib
folder of my play! 我把所有的罐子放到我的游戏的/lib
文件夹中! application and updated the dependencies.yml
like the following - 应用程序,并更新了dependencies.yml
,如下所示:
require:
- play
- provided -> xuggle-xuggler
repositories:
- provided:
type: local
artifact: "${application.path}/lib/xuggle-xuggler.jar"
contains:
- provided -> *
BTW, I also ran play dependencies
and it is still giving this error - 顺便说一句,我也跑了play dependencies
,它仍然给这个错误-
UnsatisfiedLinkError occured : no xuggle-xuggler in java.library.path
How can I fix this? 我怎样才能解决这个问题?
This error points to a problem with linking to a DLL file, so I checked the Xuggler docs for installation, and it had a section specifically to deal with this type of error. 此错误指向链接到DLL文件的问题,因此我检查了Xuggler文档以进行安装,并且其中有一个专门用于处理此类错误的部分。
http://wiki.xuggle.com/Frequently_Asked_Questions#Installation_Questions http://wiki.xuggle.com/Frequently_Asked_Questions#Installation_Questions
It has the following, as a set of instructions you should follow to solve the error. 它具有以下内容,作为解决错误应遵循的一组说明。
What's up with java.lang.UnsatisfiedLinkError? java.lang.UnsatisfiedLinkError怎么了?
It means that Java can't find the Xuggler native library. 这意味着Java找不到Xuggler本机库。 Check the following: 检查以下内容:
- Did you install the Xuggler? 您安装了Xuggler吗?
- Is the environment variable XUGGLE_HOME defined and pointing to your Xuggler install directory (usually C:\\Program Files\\Xuggle on Windows or /usr/local on Linux/Mac)? 是否已定义环境变量XUGGLE_HOME并指向您的Xuggler安装目录(在Windows上通常为C:\\ Program Files \\ Xuggle,在Linux / Mac上通常为/ usr / local)?
- If you installed on Windows, did you reboot after you installed? 如果您是在Windows上安装的,安装后是否重新启动了?
- Does your PATH environment variable include %XUGGLE_HOME%\\bin on Windows or $XUGGLE_HOME/bin on Linux/Mac? 您的PATH环境变量是否在Windows上包含%XUGGLE_HOME%\\ bin或在Linux / Mac上包含$ XUGGLE_HOME / bin?
- Does your PATH environment variable include %XUGGLE_HOME%\\lib on Windows? 您的PATH环境变量在Windows上是否包含%XUGGLE_HOME%\\ lib?
- Does your LD_LIBRARY_PATH environment variable include $XUGGLE_HOME/lib on Linux? 在Linux上,您的LD_LIBRARY_PATH环境变量是否包含$ XUGGLE_HOME / lib?
- Does your DYLD_LIBRARY_PATH environmentvariable include $XUGGLE_HOME/lib on Mac OS-X? 在Mac OS-X上,您的DYLD_LIBRARY_PATH环境变量是否包含$ XUGGLE_HOME / lib?
- Are you using a 32-bit Java JVM, but a 64-bit version of Xuggler? 您是否正在使用32位Java JVM,但使用64位版本的Xuggler? Or a 64-bit version of the Java JVM but a 32-bit version of Xuggler? 还是Java JVM的64位版本但Xuggler的32位版本? Unfortunately that won't work. 不幸的是,这行不通。 You need to make sure that you match the "bitness" of each release. 您需要确保与每个版本的“位数”匹配。 Sorry. 抱歉。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.