04-30-2020 12:40 PM - edited 04-30-2020 12:43 PM
Hi,
for an innovative smart-home project, I am trying to use the BME680 connected to a carrier board using the Nvidia TX2 SoM (ARM A57 CPU)
Unfortunately I'm unable to use the compiled binaries provided by the BSEC library, because I cannot find a suitable version for my CPU/compiler.
I'm using GCC 5.4.1 on 64-bit Ubuntu with Linux Kernel 4.4.38.
I tried to link my executable against both gcc/ARMv8/libalgobsec.a and RaspberryPI/PiThree_ArmV8-a-64bits/libalgobsec.a, but the binary format is not recognized by the linker.
Using objdump I noticed that both libraries are compiled with elf32-littlearm fileformat (may be because Raspberry Pi 3 uses 32 bit Debian even if it uses a 64bit CPU).
It's quite troublesome having an embedded library that cannot be used on modern ARM 64bit Linux OS.
Is there a plan to release a BSEC binary version with elf64-littleaarch64 file format?
Regards
Luigi Rodorigo
06-04-2020 11:10 AM
I'm looking for this library as well.
I currently try to compile my code with the following command (generated through Yocto):
aarch64-nobios-linux-gcc -march=armv8-a+crc --sysroot=/home/niels/dev/nobi/nobios/build/tmp/work/aarch64-nobios-linux/bme680/1.0-r0/recipe-sysroot -Wall -Wno-unused-but-set-variable -Wno-unused-variable -static -std=c99 -pedantic -iquote./src/BSEC_1.4.7.4_Generic_Release/API -iquote./src/BSEC_1.4.7.4_Generic_Release/algo/normal_version/bin/RaspberryPI/PiThree_ArmV8-a-64bits/ -iquote./src/BSEC_1.4.7.4_Generic_Release/examples ./src/BSEC_1.4.7.4_Generic_Release/API/bme680.c ./src/BSEC_1.4.7.4_Generic_Release/examples/bsec_integration.c ./bsec_bme680.c -L./src/BSEC_1.4.7.4_Generic_Release/algo/normal_version/bin/RaspberryPI/PiThree_ArmV8-a-64bits/ -lalgobsec -lm -lrt -o bsec_bme680
Would it be possible to provide a library for the aarch64 architecture? The link you shared is for intel CPUs and thus won't work on the arm based cortex A57.
Thanks!
Niels
06-16-2020 02:04 PM - edited 06-22-2020 04:12 PM
We would like to share a new BSEC release in elf64-little format. Unfortunately due to a temporary issue on this platform I am not able to attach the release to this post.
EDIT: attachments are now working again, therefore attached is the requested release. Please let us know your feedback.
04-24-2022 11:27 PM
The attachment here is a little bit outdated.
Are there any news about providing an official version of raspberry pi 64 bits library?