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
  • Thx Håkon.

    The problem was just a confusion of versions in my Mac Apps folder.  From previous tests I had versions named SEGGER...etc - these are now deleted.

    When I repeated the download I saw that it does not do a conventional package installation.  So I copied the folder into the place it should be.  The problem was that the download is named arm_segger_embedded_studio_v452_macos_x64_nordic.

    Now that I renamed it segger_embedded_studio_v452_macos_x64_arm_nordic I will not get confused.

    And it *does* have the nRF Connect options.

    Regards, Paul

Children
Related