Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Compile error in linking BSEC library to ESP-IDF for BME688

    Compile error in linking BSEC library to ESP-IDF for BME688

    AmirTa
    New Poster

    Hello,

    I am using the BME688 with the ESP32-S3 in the Espressif IDE (ESP-IDF), and I want to employ the BSEC library to obtain the IAQ.

    First of all, I downloaded the BSEC version 2.5.0.2 library from Bosch Sensortec's website. However, I encountered a problem linking the BSEC library to my project. I found a potential solution on Bosch Sensortec's community forum, but I encountered several errors during the project compilation. How can I resolve these errors? Additionally, it seems that the libalgobsec.h file in the forum post is empty. Where is the libalgobsec.a file?. Could you advise me on what changes I should make in the CMake file or any other file, if necessary?

    Thank you for your assistance.

    Best regards.

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi AmirTa,

    Thank for your feedback.
    As you used BME688, ESP32-S3 and had downloaded BSEC2.5 software, you should use the library "bsec_v2-5-0-2\algo\normal_version\bin\esp\esp32_s3\libalgobsec.a", and using the header files in folder "bsec_v2-5-0-2" will be enough. libalgobsec.h is not an official file in BSEC2.5.

    tesch
    Occasional Visitor

    Hello BSTRobin, i try change the libalgosec.a from the AmirTa  but i have the same problem, actualy i use the IDF 5.2, and the problem is founded in the all archicteture from ESP32, Riscv and Xtensa.
    Can you help us?

    In attch the printscream from the error.

    Screenshot_bme_error.jpg

    Hi BSTRobin,
    Thank you for your reply.
    I finally managed to add and compile the library into the project, but the bsec_iot_loop function does not produce any output!!!
    How should I fix this?
    (The bsec_iot_init function executes well, and there are no errors in bme68x_status or bsec_status)

    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