How to link precompiled BME688 I2C library in ESP-IDF (VS Code)

I'm working with ESP-IDF in Visual Studio Code and trying to interface the BME688 sensor via I2C using a precompiled library
I have the precompiled binary and the corresponding header files, but I’m getting a "undefined reference" error when building the project.

I would like to know:

  1. How to correctly link a precompiled library (libalgobsec.afile) in ESP-IDF (CMake)

  2. What folder structure should I follow?

  3. How should I modify CMakeLists.txt and component.mk
    4.I am using ESP32 esp-idf v5.4 and bsec2-6-1-0_generic_release

8 replies