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?
12-21-2021 09:51 AM
Hello jedimaster64,
I mean github example code "https://github.com/BoschSensortec/BSEC-Arduino-library" based on BSEC1, and you also used BSEC1, then you could refer readme to do migration on your environment.