11-09-2021 08:17 PM
Recently, the ESP32 Arduino 2.01 has been released. I used to use the BSEC library successfully in Arduino with ESP32 Arduino 1.06. But the update seems to have broken things. When compiling I get pages full of errors, like:
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec11beginCommonEv+0x4): undefined reference to `bsec_init'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec11beginCommonEv+0x8): undefined reference to `bsec_get_version'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec8getStateEPh+0x0): undefined reference to `bsec_get_state'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec8setStateEPh+0x10): undefined reference to `bsec_set_state'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec9setConfigEPKh+0x0): undefined reference to `bsec_set_configuration'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0xc): undefined reference to `bsec_do_steps'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec3runEx+0x0): undefined reference to `bsec_sensor_control'
/private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o): In function `Bsec::beginCommon()':
Is this a known problem and/or how can I fix this?
11-11-2021 07:11 AM
Hello jedimaster64,
I mean you could refer the existing Arduino project under BSEC 2.x package.
11-11-2021 07:19 AM - edited 11-11-2021 07:20 AM
I'm actually still using the BSEC 1.4.8 library (https://github.com/BoschSensortec/BSEC-Arduino-library). Is this maybe the problem and I should move to BSEC 2.0 (https://github.com/BoschSensortec/Bosch-BSEC2-Library)? This folder on GitHub seems to be empty....
But as mentioned, my code runs fine under ESP32 1.04,1.05, 1.06. It's just when I moved to ESP32 2.0 that the problems started.
11-25-2021 08:48 PM
No one being able to help me out here? I have been browsing through the forum and my problem sounds a lot like what persons have observed in going from ESP32 1.04 -> 1.05 -> 1.06. Somehow the linking with the compiler seems to become faulty. The suggestion is to modify the platform.txt but this has changed dramatically in format since 2.0.
12-13-2021 08:38 AM
Hello jedimaster64,
As you used BSEC 1.4.8, you could refer BSEC arduino code in github for your platform. This code based on BSEC1.
https://github.com/BoschSensortec/BSEC-Arduino-library
12-15-2021 09:27 PM