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

Unable to build blinky project outside SDK folder

Hello,

I am unable to build basic blinky project outside the NRF Connect sdk.

Board - Thingy 91 - nRF9160

SDK version - 1.7.0

builiding through command line tools - CMake and Ninja (windows)

I have provided build variables in the Cmakelists.txt as below.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
set(ZEPHYR_TOOLCHAIN_VARIANT gnuarmemb)
set(GNUARMEMB_TOOLCHAIN_PATH C:/coresensing/toolchain/gnuarmemb)
set(ZEPHYR_BASE C:/coresensing/toolchain/ncs/zephyr)
set(BOARD_ROOT C:/coresensing/toolchain/ncs/nrf)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(blinky)
target_sources(app PRIVATE src/main.c)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

My application directory is as follows,

- Workspace

   - Blinky

      - src

         - main.c

      -CMakelists.txt

      -prj.conf

This is the Cmake error I am getting

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PS C:\Users\Suhas\eclipse-workspace\blinky> cmake -B build -GNinja -DBOARD=thingy91_nRF9160_ns
Including boilerplate (Zephyr base (cached)): C:/coresensing/toolchain/ncs/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at C:/coresensing/toolchain/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
The OLD behavior for policy CMP0079 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
C:/coresensing/toolchain/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/coresensing/toolchain/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
CMakeLists.txt:25 (find_package)
-- Application: C:/Users/Suhas/eclipse-workspace/blinky
-- Zephyr version: 2.6.99 (C:/coresensing/toolchain/ncs/zephyr), build: v2.6.99-ncs1
-- Found Python3: C:/coresensing/toolchain/python/python.exe (found suitable exact version "3.9.7") found components: Interpreter
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: thingy91_nRF9160_ns
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Please let me know what I can do to fix this error.

Thank you.

 - Suhas