This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ZEPHYR_BASE for building 9160 application

Using EmbeddedStudio_ARM_Nordic_v452_macos_x64

I am trying to build a sample for 9160-DK

I get

CMake Error at CMakeLists.txt:20 (find_package):
Could not find a package configuration file provided by "Zephyr" with any
of the following names:

ZephyrConfig.cmake
zephyr-config.cmake

Add the installation prefix of "Zephyr" to CMAKE_PREFIX_PATH or set
"Zephyr_DIR" to a directory containing one of the above files. If "Zephyr"
provides a separate development package or SDK, be sure it has been
installed.

The referenced line 20 is: 

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

I think the problem may be the lack of a definition for ZEPHYR_BASE

I guess that would be ~/src/ncs/zephyr?  Where should that be set?

Thx.

Parents Reply
  • It is strange that you cant see the nRF Connect tab. Do you perhaps have multiple versions of Segger Embedded Studio installed? The next time you open SES, could you please double check that you actually open "Segger Embedded Studio for ARM (Nordic Edition) V4.52"?

    If things are correctly installed you should be able to find the nRF Connect tab under Tools>Options. You should also find File>Open nRF Connect SDK Project.

Children
Related