alexh-name / bsec_bme680_linux

Read the BME680 sensor with the BSEC library on Linux (e.g. Raspberry Pi)
Other
87 stars 48 forks source link

1.4.7.2 no compiling 'incompatible lalgobsec' #16

Closed bsimmo closed 5 years ago

bsimmo commented 5 years ago

I'm trying to compile this with the current 1.4.7.2 update. I altered the address to new folder name. Altered the I2C address and the print output to a JSON and added the new CO2 equivalent to the print output also. Normal changes. The last version I used was 1.4.6.#

I have set for Armv6 PiZero as I'm using 32bit RaspbianOS, SECONDARY I2C I'm compiling this on RaspberryPi Desktop for x86, but that shouldn't be a problem, it'll then be moved over once compiled. It fails with

pi@PiLaptop:~/Desktop/BSEC Compile Zero/bsec_bme680_linux $ ./make.sh Compiling... /usr/bin/ld: skipping incompatible ./src/BSEC_1.4.7.2_Generic_Release_20190122/algo/bin/Normal_version/RaspberryPI/PiZero_ArmV6-32bits/libalgobsec.a when searching for -lalgobsec /usr/bin/ld: cannot find -lalgobsec collect2: error: ld returned 1 exit status

alexh-name commented 5 years ago

I'm compiling this on RaspberryPi Desktop for x86, but that shouldn't be a problem, it'll then be moved over once compiled.

/usr/bin/ld: skipping incompatible

Your linker is looking for libraries that match your architecture (x86) and fails because you point it to arm libraries. If you want to cross-compile for arm you need to set up your tool chain accordingly, it's not an issue with this project.

bsimmo commented 5 years ago

But I asked it to compile to RaspberryPi v6, does it not take care of itself.

Anyway, there is a new version of bsec out to update too ;-) And add the CO2 equivalents etc.

I guess I must have compiled it on the pi last time.

On Sun, 17 Feb 2019, 2:59 pm Alex H. <notifications@github.com wrote:

I'm compiling this on RaspberryPi Desktop for x86, but that shouldn't be a problem, it'll then be moved over once compiled.

/usr/bin/ld: skipping incompatible

Your linker is looking for libraries that match your architecture (x86) and fails because you point it to arm libraries. If you want to cross-compile for arm you need to set up your tool chain accordingly, it's not an issue with this project.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexh-name/bsec_bme680_linux/issues/16#issuecomment-464467272, or mute the thread https://github.com/notifications/unsubscribe-auth/ALALt2jMH0m3DvavS8e9_nS001ONBQzlks5vOW5HgaJpZM4a_B5M .