Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    ESP32 WROOM DevKitC v4 with BSEC-lib compiliation issues in Arduino IDE

    JA67
    New Poster

    ESP32 WROOM DevKitC v4 with BSEC-lib compiliation issues in Arduino IDE

    Hello there,

    I am currently working with the ESP32 WROOM DevKitC v4  and got issues with compiling File>Examples>Bsec software library>Basic from the examples.

    I got the following setup:

    Arduino IDE 2.0.0-beta.10 (as well tested with version 1.8.18)

    MC: ESP32 WROOM DevKitC v4

    BSEC-Library installed via Library-Manager as well as zip installation from current master branch (https://github.com/BoschSensortec/BSEC-Arduino-library)

    The plattform.txt file was changed according to the manual on Github.

    Following Error occurs: (see long_log in attachment)

     

    Spoiler
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec11beginCommonEv+0x4): undefined reference to `bsec_init'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec11beginCommonEv+0x8): undefined reference to `bsec_get_version'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec8setStateEPh+0x10): undefined reference to `bsec_set_state'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0x14): undefined reference to `bsec_do_steps'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec3runEx+0x0): undefined reference to `bsec_sensor_control'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o):(.literal._ZN4Bsec3runEx+0x4): undefined reference to `bsec_get_state'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o): In function `Bsec::beginCommon()':
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:476: undefined reference to `bsec_init'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o): In function `Bsec::getVersion()':
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:476: undefined reference to `bsec_get_version'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o): In function `Bsec::updateSubscription(bsec_virtual_sensor_t*, unsigned char, float)':
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:476: undefined reference to `bsec_update_subscription'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o): In function `Bsec::setState(unsigned char*)':
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:476: undefined reference to `bsec_set_state'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o): In function `Bsec::readProcessData(long long, bsec_bme_settings_t)':
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:385: undefined reference to `bsec_do_steps'
    C:\Users\jonas\AppData\Local\Temp\arduino-sketch-1637E99D06118CEA2DDFA0CCD3C525D3\libraries\BSEC-Arduino-library-master\BSEC-Arduino-library-master.a(bsec.cpp.o): In function `Bsec::run(long long)':
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:200: undefined reference to `bsec_init'
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:210: undefined reference to `bsec_update_subscription'
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:210: undefined reference to `bsec_sensor_control'
    e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master\src/bsec.cpp:246: undefined reference to `bsec_get_state'
    collect2.exe: error: ld returned 1 exit status
    Using library BSEC-Arduino-library-master at version 1.6.1480 in folder: e:\Daten\Dokumente\Arduino\libraries\BSEC-Arduino-library-master
    Using library Wire at version 1.0.1 in folder: C:\Users\jonas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire
    Using library SPI at version 1.0 in folder: C:\Users\jonas\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\SPI
    Compilation error: Error: 2 UNKNOWN: exit status 1

    If you need anything, pls let me know.

    Thank you in advance.

    Sincerely,

    Jonas

     

     

     

     

     

    1 REPLY 1
    Minhwan
    Community Moderator

    Re: ESP32 WROOM DevKitC v4 with BSEC-lib compiliation issues in Arduino IDE

    Hello JA67, 

     

    Please check my attached files. 

    I just summarized for ESP32 WROOM32. 

    Thank you. 

    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