Errors ocurr when build configruation

I have no idea what happened cause it is my first time doing this. I suspect my environment has some problems but I am not sure whether it lead to these errors. I would be grateful if someone can help me with this, thanks, everyone!

Building IMSE_SmartMask_Firmware-master
C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build c:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master --pristine --board smartmask_nrf52840 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE:STRING="c:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/prj.conf" -DBOARD_ROOT:STRING="c:/users/jaspe/desktop/imse_smartmask_firmware-master""

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: smartmask_nrf52840
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/boards/arm/smartmask_nrf52840/smartmask_nrf52840.dts
-- Found devicetree overlay: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/smartmask_nrf52840.overlay
'label' is marked as deprecated in 'properties:' in C:/ncs/v2.4.0/zephyr/dts/bindings\sensor\bosch,bme680-i2c.yaml for node /soc/i2c@40003000/bme680_0@76.
'label' is marked as deprecated in 'properties:' in C:/ncs/v2.4.0/zephyr/dts/bindings\sensor\bosch,bme680-i2c.yaml for node /soc/i2c@40003000/bme680_1@77.
'label' is marked as deprecated in 'properties:' in C:/ncs/v2.4.0/zephyr/dts/bindings\sensor\bosch,bmi160-i2c.yaml for node /soc/i2c@40003000/bmi160@68.
'label' is marked as deprecated in 'properties:' in C:/ncs/v2.4.0/zephyr/dts/bindings\serial\zephyr,cdc-acm-uart.yaml for node /soc/usbd@40027000/cdc_acm_uart0.
-- Generated zephyr.dts: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/zephyr/dts.cmake
Parsing C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/Kconfig
Loaded configuration 'C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/boards/arm/smartmask_nrf52840/smartmask_nrf52840_defconfig'
Merged configuration 'c:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/prj.conf'
Merged configuration 'C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/zephyr/.config'
Kconfig header saved to 'C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/ncs/v2.4.0/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
CONFIG_USB_DEVICE_VID has default value 0x2FE3.

This value is only for testing and MUST be configured for USB products.


CMake Warning at C:/ncs/v2.4.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
CONFIG_USB_DEVICE_PID has default value 0x100.

This value is only for testing and MUST be configured for USB products.


CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
No SOURCES given to Zephyr library: lib__libc__common

Excluding target from build.


Config BSEC
BSEC Lib: C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/src/ext_sensors/../../lib/bsec/algo/normal_version/bin/gcc/Cortex_M4F
CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/extensions.cmake:2161 (message):
Assertion failed: Could not find BSEC library. Minimum version is
1.4.8.0_Generic_Release
Call Stack (most recent call first):
src/ext_sensors/CMakeLists.txt:24 (assert)


-- Configuring incomplete, errors occurred!
See also "C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' '-DWEST_PYTHON=C:\ncs\toolchains\31f4403e35\opt\bin\python.exe' '-Bc:\Users\jaspe\Desktop\IMSE_SmartMask_Firmware-master\build' -GNinja -DBOARD=smartmask_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE:STRING=c:/Users/jaspe/Desktop/IMSE_SmartMask_Firmware-master/prj.conf -DBOARD_ROOT:STRING=c:/users/jaspe/desktop/imse_smartmask_firmware-master '-Sc:\Users\jaspe\Desktop\IMSE_SmartMask_Firmware-master'

Parents Reply Children
  • Could not find BSEC library

    It looks like this is your main build issue.

    Is your friend able to build this?

    Was the project originally written for the same setup that you are using? (NCS 2.4 / nRF52840)

    Could you share your project's CMakeLists.txt file?

    I suspect my environment has some problems

    What type of problems are you referring to here? Why do you suspect this?

    Jasper said:
    I change the BOARD_ROOT path cause it is not correct

    What changes have you made exactly? Did it work for your friend without these changes?

    -Einar

  • Thank you Einarh,

    My friend is not able to help me currently and I'm not sure when he is available.

    Is project is using on the same board but the lower version of NCS, because it was created last year.

    And here is my CMakeLists.txt file:

    # SPDX-License-Identifier: Apache-2.0

    cmake_minimum_required(VERSION 3.20.0)
    set(BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
    set(BOARD smartmask_nrf52840)
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(smartmask)
    target_sources(app PRIVATE src/main.c src/bluetooth.c src/smartmask.c)
    target_include_directories(app PRIVATE src)
    target_include_directories(app PRIVATE lib/bsec)
    add_subdirectory(src/ext_sensors)
     
    I suspect the environment has problems because there used to have other errors, but disappear after I reinstall nRF connect for Desktop and J-Link.
    And the change that I made is changing the BOARD_ROOT path to the path on my computer since the path used to be the path on his computer. I changed from '/home/jeff/Documents/imse/IMSE_SmartMask_Firmware' to 
    'C:/users/jaspe/desktop/imse_smartmask_firmware-master' and he told me to do so
    --Jasper
  • It looks like your friend Jeff worked on a Linux system while you are working on a Windows system?

    It's likely that your error comes from the compiler not being able to locate parts of your project, specifically these:

    No SOURCES given to Zephyr library: lib__libc__common

    Could not find BSEC library

    This could perhaps be caused by differences in your file systems, but I suspect you might have more luck discussing this with your friend Jeff since he will know more about his own project.

    You might be interested to have a look at this ticket for a few pointers:

     RE: No SOURCES given to Zephyr library 

    -Einar

  • Thank you for your information  Einarh! And yes my friend work on Linux, I will try to use Linux then. Thank you very much!

    —Jasper

Related