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

Using own application repo

Hi!

I am trying to use my own repo like described in the tutorial https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial

Everything works fine if I compile stuff that is in the "samples" folder inside the ncs/nrf

I tried to copy one of the sample applications (for example the mqtt_simple" to ncs/applications_test/mqtt_simple and tried to compile with west 

Fullscreen
1
west build -b nrf9160_pca10090ns
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The build process stops with an error (without any hint what went wrong):

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CMake Warning at C:/nrf91/ncs/zephyr/CMakeLists.txt:28 (message):
ZEPHYR_BASE doesn't match CMAKE_CURRENT_SOURCE_DIR
ZEPHYR_BASE = c:/nrf91/ncs/zephyr
PWD = c:/nrf91/ncs/applications_test/mqtt_simple
CMAKE_CURRENT_SOURCE_DIR = C:/nrf91/ncs/zephyr
You may be using a mix of symbolic links and real paths which causes subtle
and hard to debug CMake issues.
-- Configuring incomplete, errors occurred!
See also "C:/nrf91/ncs/applications_test/mqtt_simple/build/CMakeFiles/CMakeOutput.log".
See also "C:/nrf91/ncs/applications_test/mqtt_simple/build/CMakeFiles/CMakeError.log".
ERROR: command exited with status 1: 'c:\Program Files\CMake\bin\cmake.EXE' '-Bc:\nrf91\ncs\applications_test\mqtt_simple\build' '-Sc:\nrf91\ncs\applications_test\mqtt_simple' -GNinja -DBOARD=nrf9160_pca10090
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Can you give me a hint what I need to do or configure to have applications outside the ncs repo?