-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable full compilation and linking #1
base: master
Are you sure you want to change the base?
Conversation
Sorry for taking a while to respond, I will be more responsive from now on.
And then it prints the following over and over again in an endless loop:
Might be because I'm working on a Mac. What system are you on? |
Hello, I'm using Linux and the problem seems to be that it's using the
wrong toolchain, I switched to a script for converting Makefiles to
individual CMakeFiles.txt instead of the whole SDK. I can commit it too if
you want, but first I need to fix this issue that it's not working on
Windows either. I will select the toolchain from the makefile instead.
There are a couple of variables loaded from one of the included Makefiles
in the sdk that tells which is the right path and name of the compiler.
On Nov 9, 2017 08:27, "Dan Shemesh" <notifications@github.com> wrote:
Sorry for taking a while to respond, I will be more responsive from now on.
I tried but it is not working for me, I get the following output when CLion
is loading the CMake project:
/Applications/CLion.app/Contents/bin/cmake/bin/cmake
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles"
/Users/dansheme/Downloads/nRF5_SDK_14.1.0_1dda907
-- The C compiler identification is AppleClang 9.0.0.9000038
-- The CXX compiler identification is AppleClang 9.0.0.9000038
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at
/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/CMakeForceCompiler.cmake:69
(message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
examples/peripheral/blinky/pca10040/blank/armgcc/CMakeLists.txt:53
(CMAKE_FORCE_C_COMPILER)
CMake Deprecation Warning at
/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/CMakeForceCompiler.cmake:83
(message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
examples/peripheral/blinky/pca10040/blank/armgcc/CMakeLists.txt:54
(CMAKE_FORCE_CXX_COMPILER)
And then it prints the following over and over again in an endless loop:
…-- The ASM compiler identification is GNU
-- Found assembler:
/opt/gcc-arm-none-eabi-6-2017-q2-update//bin/arm-none-eabi-gcc
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER=
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
CMAKE_CXX_COMPILER=
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- The C compiler identification is AppleClang 9.0.0.9000038
-- The CXX compiler identification is AppleClang 9.0.0.9000038
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at
/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/CMakeForceCompiler.cmake:69
(message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
examples/peripheral/blinky/pca10040/blank/armgcc/CMakeLists.txt:53
(CMAKE_FORCE_C_COMPILER)
CMake Deprecation Warning at
/Applications/CLion.app/Contents/bin/cmake/share/cmake-3.8/Modules/CMakeForceCompiler.cmake:83
(message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
examples/peripheral/blinky/pca10040/blank/armgcc/CMakeLists.txt:54
(CMAKE_FORCE_CXX_COMPILER)
Might be because I'm working on a Mac. What system are you on?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL6NMSIMJrY6RDQ8RXQp43Ec5M8c-Jo0ks5s0qlpgaJpZM4P6xbs>
.
|
I commited new changes, it should work now, at least on Linux is working |
I tried both on Linux and MacOS but there are two issues.
And so on for every example in the SDK |
nrf5-sdk-to-clion goes back to be an independent script
I updated the files to fix the problem with the CMakeLists-generator.mk generated file, and I merge the content of the nrf5-make2cmake.sh into nrf5-sdk-to-clion.sh, now it's independent again |
Added flash target
corrected name TOOLCHAIN_PATH by TOOLCHAIN_PREFIX
This will allow to open each project CMakeLists.txt and be able to compile and link as the makefile does