dan2097 / jna-inchi

Wrapper to access InChI from Java
GNU Lesser General Public License v2.1
7 stars 6 forks source link

Add armv7l InChI 1.06 library #13

Closed mjw99 closed 3 years ago

mjw99 commented 3 years ago

Needless to say, with this addition, all the unit tests pass on a RPI.

The following protocol was used:

Preamble

$ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

$ uname -a Linux rpi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

$ dmesg | grep fdt [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1

$ sudo apt install gcc git

Actual

git clone git clone https://github.com/dan2097/jna-inchi.git cd jna-inchi

wget https://www.inchi-trust.org/download/106/INCHI-1-SRC.zip unzip INCHI-1-SRC.zip cd INCHI-1-SRC/INCHI_API/libinchi/gcc/ make cd -

$ file ./INCHI-1-SRC/INCHI_API/bin/Linux/libinchi.so.1.06.00 ./INCHI-1-SRC/INCHI_API/bin/Linux/libinchi.so.1.06.00: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=e8bd8aa5658a8418b86702f840c3691e6ae05f5e, not stripped

mkdir ./jna-inchi-core/src/main/resources/linux-arm cp ./INCHI-1-SRC/INCHI_API/bin/Linux/libinchi.so.1.06.00 ./jna-inchi-core/src/main/resources/linux-arm/libjnainchi.so chmod -x ./jna-inchi-core/src/main/resources/linux-arm/libjnainchi.so