Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BSEC Arduino Library v1.4.7.3 compile error ESP32

    Highlighted
    New Poster

    BSEC Arduino Library v1.4.7.3 compile error ESP32

    When I compile the basic.ino example I get the folowing errors
    IDE Version 1.8.9
    ESP version v1.0.3-rc1

    libraries\BSEC-Arduino-library-master\bsec.cpp.o:(.literal._ZN4Bsec11beginCommonEv+0x0): undefined reference to `bsec_init'
    libraries\BSEC-Arduino-library-master\bsec.cpp.o:(.literal._ZN4Bsec11beginCommonEv+0x4): undefined reference to `bsec_get_version'
    libraries\BSEC-Arduino-library-master\bsec.cpp.o:(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
    libraries\BSEC-Arduino-library-master\bsec.cpp.o:(.literal._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0x8): undefined reference to `bsec_do_steps'
    libraries\BSEC-Arduino-library-master\bsec.cpp.o:(.literal._ZN4Bsec3runEv+0x0): undefined reference to `bsec_sensor_control'

    Any idea

    /Torben

     

    3 REPLIES 3
    Highlighted
    Community Moderator

    Re: BSEC Arduino Library v1.4.7.3 compile error ESP32

    Could you please confirm that you have followed the BSEC Arduino Library installation instructions, especially the changes to the platform.txt file?

    It seems like the compiler cannot find the library, therefore it could be useful to enable the compilation verbose (in the Preferences settings of the Arduino IDE). If still facing this issue, you could share/attach a log the compilation verbose here.

    Occasional Contributor

    Re: BSEC Arduino Library v1.4.7.3 compile error ESP32

    Please check whether libalgobsec.a   linked in the setting.

    And go to Sensor tech website download page,find guide information inside:

    https://www.bosch-sensortec.com/bst/support_tools/downloads/overview_downloads

     

     

     

    Highlighted
    Occasional Visitor

    Re: BSEC Arduino Library v1.4.7.3 compile error ESP32

    Linking everything together...
    "D:\\Documenti\\ArduinoData\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-gcc" -nostdlib "-LD:\\Documenti\\ArduinoData\\packages\\esp32\\hardware\\esp32\\1.0.4/tools/sdk/lib" "-LD:\\Documenti\\ArduinoData\\packages\\esp32\\hardware\\esp32\\1.0.4/tools/sdk/ld" -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\sketch\\BMELora_3.ino.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_Unified_Sensor\\Adafruit_Sensor.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_BME680_Library\\bme680.c.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_BME680_Library\\Adafruit_BME680.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_BME280_Library\\Adafruit_BME280.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Heltec_ESP32_Dev-Boards\\heltec.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Heltec_ESP32_Dev-Boards\\lora\\LoRa.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Heltec_ESP32_Dev-Boards\\oled\\OLEDDisplay.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Heltec_ESP32_Dev-Boards\\oled\\OLEDDisplayUi.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_VEML6075_Library\\Adafruit_VEML6075.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_BusIO\\Adafruit_BusIO_Register.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_BusIO\\Adafruit_I2CDevice.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859\\libraries\\Adafruit_BusIO\\Adafruit_SPIDevice.cpp.o" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_cache_433198\\core\\core_8c9d0aa2c2c256db948d4589ce0b6317.a" -lgcc -lesp32 -lphy -lesp_http_client -lmbedtls -lrtc -lesp_http_server -lbtdm_app -lspiffs -lbootloader_support -lmdns -lnvs_flash -lfatfs -lpp -lnet80211 -ljsmn -lface_detection -llibsodium -lvfs -ldl_lib -llog -lfreertos -lcxx -lsmartconfig_ack -lxtensa-debug-module -lheap -ltcpip_adapter -lmqtt -lulp -lfd -lfb_gfx -lnghttp -lprotocomm -lsmartconfig -lm -lethernet -limage_util -lc_nano -lsoc -ltcp_transport -lc -lmicro-ecc -lface_recognition -ljson -lwpa_supplicant -lmesh -lesp_https_ota -lwpa2 -lexpat -llwip -lwear_levelling -lapp_update -ldriver -lbt -lespnow -lcoap -lasio -lnewlib -lconsole -lapp_trace -lesp32-camera -lhal -lprotobuf-c -lsdmmc -lcore -lpthread -lcoexist -lfreemodbus -lspi_flash -lesp-tls -lwpa -lwifi_provisioning -lwps -lesp_adc_cal -lesp_event -lopenssl -lesp_ringbuf -lfr -lstdc++ -Wl,--end-group -Wl,-EL -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_595859/BMELora_3.ino.elf"
    C:\Users\User\AppData\Local\Temp\arduino_build_595859\sketch\BMELora_3.ino.cpp.o:(.literal.startup._GLOBAL__sub_I_transmissiontime+0x14): undefined reference to `Bsec::Bsec()'

    C:\Users\User\AppData\Local\Temp\arduino_build_595859\sketch\BMELora_3.ino.cpp.o: In function `_GLOBAL__sub_I_transmissiontime':

    D:\Documenti\Arduino\BMELora_3/BMELora_3.ino:20: undefined reference to `Bsec::Bsec()'

    collect2.exe: error: ld returned 1 exit status

    Uso la libreria Wire alla versione 1.0.1 nella cartella: D:\Documenti\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\Wire
    Uso la libreria SPI alla versione 1.0 nella cartella: D:\Documenti\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\SPI
    Uso la libreria Adafruit_Unified_Sensor alla versione 1.1.2 nella cartella: D:\Documenti\Arduino\libraries\Adafruit_Unified_Sensor
    Uso la libreria Adafruit_BME680_Library alla versione 1.0.7 nella cartella: D:\Documenti\Arduino\libraries\Adafruit_BME680_Library
    Uso la libreria Adafruit_BME280_Library alla versione 2.0.1 nella cartella: D:\Documenti\Arduino\libraries\Adafruit_BME280_Library
    Uso la libreria BSEC_Software_Library alla versione 1.5.1474 nella cartella: D:\Documenti\Arduino\libraries\BSEC_Software_Library
    Uso la libreria Heltec_ESP32_Dev-Boards alla versione 1.0.9 nella cartella: D:\Documenti\Arduino\libraries\Heltec_ESP32_Dev-Boards
    Uso la libreria Adafruit_VEML6075_Library alla versione 2.0.0 nella cartella: D:\Documenti\Arduino\libraries\Adafruit_VEML6075_Library
    Uso la libreria Adafruit_BusIO alla versione 1.2.1 nella cartella: D:\Documenti\Arduino\libraries\Adafruit_BusIO
    exit status 1
    Errore durante la compilazione per la scheda Heltec WiFi LoRa 32(V2).

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist