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

cmake failed

I have downloaded the nrf connect sdk 1.7.1 and want to use the newset version of nordic official sdk. However, I have tried so many times to delete and redownload the sdk, when I build the direction_finding_connectionless_rx or direction_finding_connectionless_tx, it always turns out cmake error.  By the way, I have chosen the right board, which is nrf52833dk-52833, and even the simplest project blinky_pwm wasn't working good. The error seemed the same. 

error: Aborting due to Kconfig warnings

CMake Error at C:/Users/Marcous/ncs/v1.7.1/zephyr/cmake/kconfig.cmake:268 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/Users/Marcous/ncs/v1.7.1/zephyr/cmake/app/boilerplate.cmake:554 (include)
C:/Users/Marcous/ncs/v1.7.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/Marcous/ncs/v1.7.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:4 (find_package)

error: cmake failed
create_nordic_project.py failed (1)

Parents
  • Hi,

    Please try the fixes in this guide and see if any of them solves your issue: Common fixes for nRF Connect SDK build problems.

    If you are still getting this error after going through the guide, please let me know.

    Best regards,

    Marte

  • Hi Marte,

    I must say sorry that, try as I might, I could not find a solution to the problem.

    I have changed the download path to C/ncs disk and E/ncs to avoid a long path, but after trying to redownload the nrf connect SDK v1.7.1  and delete, it still did not work well.

    Most of the time, in a clean folder without anything about nrf connect, after downloading the SDK for the first time, the result is like this:

    And I try to do update SDK and update the toolchain, it goes well with SDK, like what I have downloaded of version v1.6.0:

    But in v1.7.1, as the same problem I mentioned in the main ticket, it could not build a single demo with any board successfully.  

    Best regards,

    Marcous

  • Hi,

    I have been trying to reproduce your issue, but so far I have not been able to do so.

    Have you made any changes to any of the files in the SDK? Are you using VPN when downloading the SDK and/or the toolchain through Toolchain Manager?

    Another option is to try to install the SDK manually, by following this guide: Installing manually.

    Best regards,

    Marte

  • Hello again,

    I tried to install the SDK without a VPN and anti-virus software. The process of building any single demo sample always failed. I found the file path \modules\hal\nordic is empty, and I guess my situation is similar to the problem https://devzone.nordicsemi.com/f/nordic-q-a/79767/reply-button-not-found. and https://devzone.nordicsemi.com/f/nordic-q-a/79614/error-cmake-failed-andcreate_nordic_project-py-failed-1 That is, my log information with building the sample and information on the command line after typing west update are almost the same

    Since I am in China, I need a VPN to get the access to github, but you mentioned somehow a VPN could affect the downloading. Maybe I should change a VPN? 

  • Updates:

    By using VPN and some other command, I can get access to github and using the command "west update", I successfully downloaded the latest SDK of version v1.8.0. I will give the detailed solution in the following days for those who have encoutered the same problem with me. 

  • Hi,

    I am happy to hear that you managed to download the SDK! We have seen some issues with downloading it in China and when using VPN, so it is good to hear that you found a solution to it.

    Best regards,

    Marte

  • Hi, here I give the solution to the installation of SDK in the region of China.

    1. Firstly, you need a VPN and open it while downloading the SDK, recommended path is C:\Users\{user}\ncs, which is the default path.

    2. Re-try downloading till you get the picture like this:

    Note that there is a chance that the result only contains the "First Steps" and "Open VS Code".

    In this case, remove the downloaded file, for example, \ncs\v1.8.0, and retry till getting the result above.

    3. Go to the path C:\Users\{user}ncs\v1.8.0\modules\hal\nordic, if this file is empty, then a CMake error will occur when building any single demo. To cover this,  Press the down arrow next to Open Segger Embedded Studio and select Open bash. In the command line, enter "west update", if the update process goes without error, then go back to the \v1.8.0\modules\hal\nordic, the file should be like this:   

    Then it can build a demo successfully. 

    4. If the "west update " does not go well. For me, even though I opened a VPN, I got two problems:

    - OpenSSL SSL_read: Connection was reset, errno 10054

    - Failed to connect to github.com port 443:connection timed out

    To tackle this, I use the following command:

    $ git config --global http.proxy http://127.0.0.1:xxxx
    $ git config --global http.sslVerify "false"
    $ west update 

    where in the first line, the last "xxxx" should be replaced by the port number while opening the VPN (my case is 11000). To see this value, search Internet Options -> Connection -> Lan Settings -> port, like this:

    Hopefully, the above process will help those with trouble downloading SDK and building demo.

Reply
  • Hi, here I give the solution to the installation of SDK in the region of China.

    1. Firstly, you need a VPN and open it while downloading the SDK, recommended path is C:\Users\{user}\ncs, which is the default path.

    2. Re-try downloading till you get the picture like this:

    Note that there is a chance that the result only contains the "First Steps" and "Open VS Code".

    In this case, remove the downloaded file, for example, \ncs\v1.8.0, and retry till getting the result above.

    3. Go to the path C:\Users\{user}ncs\v1.8.0\modules\hal\nordic, if this file is empty, then a CMake error will occur when building any single demo. To cover this,  Press the down arrow next to Open Segger Embedded Studio and select Open bash. In the command line, enter "west update", if the update process goes without error, then go back to the \v1.8.0\modules\hal\nordic, the file should be like this:   

    Then it can build a demo successfully. 

    4. If the "west update " does not go well. For me, even though I opened a VPN, I got two problems:

    - OpenSSL SSL_read: Connection was reset, errno 10054

    - Failed to connect to github.com port 443:connection timed out

    To tackle this, I use the following command:

    $ git config --global http.proxy http://127.0.0.1:xxxx
    $ git config --global http.sslVerify "false"
    $ west update 

    where in the first line, the last "xxxx" should be replaced by the port number while opening the VPN (my case is 11000). To see this value, search Internet Options -> Connection -> Lan Settings -> port, like this:

    Hopefully, the above process will help those with trouble downloading SDK and building demo.

Children
No Data
Related