This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMake script for add eternal libaray ( BSEC ) to test Bosch sensor raeding?

hello,

i have downloaded    ( BSEC )    library from https://www.bosch-sensortec.com/software-tools/software/bsec/  for read sensor data . now want to test the code by build and flashing it with VS code for thingy 91 borad.

CMamke  file have 

FILE(GLOB bsec_integration src/*.c)

target_sources(app PRIVATE src/bsec_integration.c)
target_sources(app PRIVATE src/bme680.c)

i have add c file and header file in scr folder .

on build shows error 

FATAL ERROR: command exited with status 1: 'c:\Users\mohit\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Users\mohit\ncs\v1.9.1\toolchain\opt\bin\python.exe' '-Be:\Nordic_Acadmey\bsec_integration\build_1' '-Se:\Nordic_Acadmey\bsec_integration' -GNinja -DBOARD=thingy91_nrf9160 -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE.

please suggest

Parents Reply
  • Hello,

    When I try to build your application, it says:

    Do you also get this if you unzip and try to compile the project that you sent? Did you send the correct project?

    Can you send the project that you used to get the error that you mentioned below?

    Best regards,

    Edvin

Children
  • than you sir for prompt reply , As I already explained i con't create same error , I have shared all file i am working on . 

    my goal is clear i want to build my project file as share as zip , i am ready to do modification in all file as you want but i don't want to change main.c file .

    my question is same 

    "CMake script for add eternal libaray ( BSEC ) to test Bosch sensor raeding?"

    i already shared BSEC file Library download link and downloaded zip file as well .

    you can ignore all file except main.c file . 

    1. Bme860 and adxl362 both sensor are supported by nordic ,

    if you resolve my one problem rest problem resolve automatically .

    2. i learn how to add any header file for any project , but this is not sufficient for achieve my goal ,if you have download bsec_1-4-8-0_generic_release_updated_v3.zip  file as i share in previous post you can see there was 

    a folder "config"  which contain c file and header files , i don't know how to provide path to tis folder 

    3. i want to make a project file by which i can compile main.c file (as shared in zip name"bsec").

      

Related