I am able to run all samples from this folder /ncs/v1.2.0/zephyr/samples/ and see the output on the LTE Link Monitor.
However, when I try to run the GPS sample from /ncs/v1.2.0/nrf/samples/nrf9160/gps I get a cmake error. I have attached a picture of my nRF connect options.
.
CMakeOutput:
The target system is: Generic - 2.1.99 - arm The host system is: Windows - 6.1.7601 - AMD64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: -c The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o" The C compiler identification is GNU, found in "C:/Users/esimons/ncs/v1.2.0/nrf/samples/nrf9160/gps/build_nrf9160_pca10090ns/CMakeFiles/3.14.5/CompilerIdC/CMakeCCompilerId.o" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: -c The output was: 0 Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o" The CXX compiler identification is GNU, found in "C:/Users/esimons/ncs/v1.2.0/nrf/samples/nrf9160/gps/build_nrf9160_pca10090ns/CMakeFiles/3.14.5/CompilerIdCXX/CMakeCXXCompilerId.o" Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)": arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The target system is: Generic - 2.1.99 - arm The host system is: Windows - 6.1.7601 - AMD64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: -c The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o" The C compiler identification is GNU, found in "C:/Users/esimons/ncs/v1.2.0/nrf/samples/nrf9160/gps/build_nrf9160_pca10090ns/CMakeFiles/3.14.5/CompilerIdC/CMakeCCompilerId.o" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: -c The output was: 0 Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o" The CXX compiler identification is GNU, found in "C:/Users/esimons/ncs/v1.2.0/nrf/samples/nrf9160/gps/build_nrf9160_pca10090ns/CMakeFiles/3.14.5/CompilerIdCXX/CMakeCXXCompilerId.o" Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)": arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CMakeError:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: The output was: 1 c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x2c): undefined reference to `_exit' collect2.exe: error: ld returned 1 exit status Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: The output was: 1 c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x2c): undefined reference to `_exit' collect2.exe: error: ld returned 1 exit status Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: The output was: 1 c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x2c): undefined reference to `_exit' collect2.exe: error: ld returned 1 exit status Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:/Users/esimons/ncs/v1.2.0/toolchain/opt/bin/arm-none-eabi-gcc.exe Build flags: Id flags: The output was: 1 c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/esimons/ncs/v1.2.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x2c): undefined reference to `_exit' collect2.exe: error: ld returned 1 exit status