[QNAP] Having Java library issues with portable filebot
Posted: 13 Sep 2017, 18:22
I think the only filebot solution for me on a QNAP application is portable filebot, which is why I'm using it.
when running:
my output is:
It seems like it's trying to load a 64bit library file in the first error. My OS claims to be i386 in this output. filebot.sh loads the libraries based on the output of "uname -m" which reports that my system is x86_64, so a 64 bit system. For fun, I replaced that line with: since there is no i386 libraries
and now when I run the sysinfo command, that first error goes away:
But for whatever reason, it doesn't want to load libjnidispatch.so from that directory. So, I copied the i686 file into /usr/local/jre/lib/i386 (hoping on a prayer) and it still doesn't work. At this point, I feel like I've twisted my wires a bit and would like someone else's perspective as to what I might be doing wrong.
when running:
Code: Select all
filebot -script fn:sysinfo
Code: Select all
FileBot 4.7.9 (r4984)
Java HotSpot(TM) Embedded Client VM warning: You have loaded library /share/CACHEDEV1_DATA/Download/Filebot/lib/x86_64/libjnidispatch.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86/libjnidispatch.so) not found in resource path ([file:/share/CACHEDEV1_DATA/Download/Filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load i386 (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-05-15 (r500)
Groovy: 2.4.10
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_65
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 2 Core / 214 MB Max Memory / 8 MB Used Memory
OS: Linux (i386)
Package: PORTABLE
Code: Select all
PACKAGE_LIBRARY_PATH="$APP_ROOT/lib/i686"
and now when I run the sysinfo command, that first error goes away:
Code: Select all
[/share/CACHEDEV1_DATA/Download/Filebot] # filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86/libjnidispatch.so) not found in resource path ([file:/share/CACHEDEV1_DATA/Download/Filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load i386 (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-05-15 (r500)
Groovy: 2.4.10
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_65
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 2 Core / 214 MB Max Memory / 8 MB Used Memory
OS: Linux (i386)
Package: PORTABLE
uname: Linux NASty 3.12.6 #1 SMP Mon Mar 13 01:11:46 CST 2017 x86_64 unknown
Done ヾ(@⌒ー⌒@)ノ