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-10-2021 04:04 AM
Hello jedimaster64,
Where is BSEC software you used for Arduino?
11-10-2021 07:01 AM
I'm not sure I understood the question. I installed BSEC library directly from Arduino library manager. This worked well across Arduino ESP32 1.04, 1.05, 1.06 versions. But now suddenly with the update to 2.01 (from Arduino Board Manager), something seems to be broken, Compilation starts with the normal 'BSEC uses pre-compiled library' but after a few seconds I get pages full of linking and definition errors. Besides the BSEC library, I have no problems with other libraries.
Did anyone else already update to Arduino ESP32 2.01?
11-11-2021 06:42 AM
There was BSEC example code for Arduino project, you could download it from here: https://www.bosch-sensortec.com/software-tools/software/bme688-software/
11-11-2021 06:51 AM
Oh, I am sorry, maybe I was not clear. I was not talking about BSEC 2.0 software but about ESP32 MCU 2.0 Arduino framework libraries.