[AArch64] JNA Native Error

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Divvi
Posts: 4
Joined: 22 Sep 2015, 05:03

[AArch64] JNA Native Error

Post by Divvi »

Trying to get Filebot to install on a Pine64 Arm8. I have tried both the armhf.deb and the portable package. Below is the output of the portable package after using this guide: viewtopic.php?f=4&t=4650&p=26195&hilit= ... .so#p26195

Code: Select all

divvi@pine64:/usr/share/filebot$ $PWD/filebot.sh -script fn:sysinfo
FileBot 4.7.9 (r4982)
JNA Native: java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-aarch64/libjnidispatch.so) not found in resource path ([file:/usr/share/filebot/FileBot.jar])
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load aarch64 (64-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: 1.2.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-03-24 (r490)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 443 MB Max Memory / 30 MB Used Memory
OS: Linux (aarch64)
Package: PORTABLE
Data: /usr/share/filebot/data
uname: Linux pine64 3.10.102-2-pine64-longsleep #66 SMP PREEMPT Sat Jul 16 10:53:13 CEST 2016 aarch64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Contents of /usr/bin/filebot:

Code: Select all

drwxr-xr-x   5 divvi divvi     4096 Apr  3 05:02 data
-rw-r--r--   1 divvi divvi 26776604 Feb 20 19:47 FileBot_4.7.8-portable.tar.xz
-rw-r--r--   1 divvi divvi      583 Feb  9 19:57 filebot.cmd
-rw-r--r--   1 divvi divvi 83644236 Apr  3 04:49 FileBot.jar
-rw-r--r--   1 divvi divvi 18604588 Apr  3 04:49 FileBot.jar.xz
-rw-r--r--   1 divvi divvi    53696 Jan  3 09:22 filebot.portable.launcher.exe
-rw-r--r--   1 divvi divvi      921 Jan  3 09:22 filebot.portable.launcher.l4j.ini
-rwxr-xr-x   1 divvi divvi     1824 Apr  3 05:01 filebot.sh
-rw-r--r--   1 divvi divvi  5157056 Apr  3 04:44 fpcalc
drwxr-xr-x   6 divvi divvi     4096 Apr  3 04:44 lib
-rw-r--r--   1 divvi divvi  2745145 Apr  3 04:44 lib7-Zip-JBinding.so
-rw-r--r--   1 divvi divvi   111408 Apr  3 04:44 libjnidispatch.so
-rw-r--r--   1 divvi divvi  7065248 Apr  3 04:45 libmediainfo.so
-rw-r--r--   1 divvi divvi   308352 Apr  3 04:45 libzen.so
-rwxr-xr-x   1 divvi divvi     1408 Nov 14 16:41 update-filebot.sh
Any help is appreciated. Thanks
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: JNA Native Error

Post by rednoah »

armhf refers to 32-bit ARMv7 CPUs. I don't have binaries for aarch64 but you could try running things with a 32-bit JDK in 32-bit compatibility mode and see if that works.

:?: Does uname -m not return armv8? In that case, I'll need to update the portable filebot.sh script.
:idea: Please read the FAQ and How to Request Help.
Divvi
Posts: 4
Joined: 22 Sep 2015, 05:03

Re: JNA Native Error

Post by Divvi »

rednoah wrote::?: Does uname -m not return armv8? In that case, I'll need to update the portable filebot.sh script.
uname -m returns 'aarch64':

Code: Select all

divvi@pine64:~$ uname -m
aarch64
Last edited by Divvi on 03 Apr 2017, 17:24, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AArch64] JNA Native Error

Post by rednoah »

Thanks for checking. The latest release should take that into account, but for libmediainfo I just don't have any aarch64 binaries.
:idea: Please read the FAQ and How to Request Help.
Divvi
Posts: 4
Joined: 22 Sep 2015, 05:03

Re: [AArch64] JNA Native Error

Post by Divvi »

I installed Java 32bit, and that seems to be a valid workaround:

Code: Select all

divvi@pine64:~$ filebot -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.73
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-04-03 (r494)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 4 Core / 247 MB Max Memory / 11 MB Used Memory
OS: Linux (arm)
Package: DEB
Data: /home/divvi/.filebot
uname: Linux pine64 3.10.102-2-pine64-longsleep #66 SMP PREEMPT Sat Jul 16 10:53:13 CEST 2016 aarch64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AArch64] JNA Native Error

Post by rednoah »

Hello again! Can you try the latest FileBot 4.8.9 (portable) with 64-bit Java (aarch64) please?

You can install the latest portable into the current working directory with this command:

Code: Select all

sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/portable.sh)"
At least JNA should be working now, and with JNA working, you might be able to get libmediainfo working as well if there is a package (e.g. apt-get install mediainfo).
:idea: Please read the FAQ and How to Request Help.
Post Reply