Re: Can't perform "cmake -GNinja -DBOARD=bbc_microbit .."


Kai Ren
 

Hello Carles,

 

This sample is just created by myself, I git clone from my private repo, not Zephyr public repo.

 

Just solved this problem that:

  • Install gnu arm embedded to c:\gnuarmemb

·        set ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb

·        set GNUARMEMB_TOOLCHAIN_PATH=c:\gnuarmemb

  • switch the source code to latest commit.

 

Thanks for the help!

 

Regards,

Kai

 

From: Cufi, Carles <Carles.Cufi@...>
Sent: Wednesday, August 15, 2018 5:12 PM
To: Kai Ren <kren@...>; zephyr-devel@...
Cc: vikrant8051 <vikrant8051@...>; Johan Hedberg <johan.hedberg@...>
Subject: RE: Can't perform "cmake -GNinja -DBOARD=bbc_microbit .."

 

Hi Kai,

 

I don’t think that sample exists: samples/microbit/generic_onoff_svr.

Maybe you have updated your Zephyr tree and that sample has been moved or renamed? Unless of course this is your own sample that is not part of Zephyr.

 

Furthermore, please follow the instructions in this email to switch to the new naming conventions for GNU Arm Embedded:

https://lists.zephyrproject.org/g/users/topic/gcc_arm_embedded_is_now_gnu/24238396

 

I just tested building the hello_world  and bluetooth/mesh_demo samples for bbc_microbit on Windows 10 with the latest master had no issues.

 

Regards,

 

Carles

 

 

 

From: devel@... <devel@...> On Behalf Of Kai Ren
Sent: 15 August 2018 10:40
To: zephyr-devel@...
Subject: [Zephyr-devel] Can't perform "cmake -GNinja -DBOARD=bbc_microbit .."

 

Hello,

I had set the dev environment up on my Windows computer by “Option 1: Windows Command Prompt”, but suddenly, it can NOT work, below is the error log, when I type cmake -GNinja -DBOARD=bbc_microbit .. , there are some errors, how can I solve this problem?

 

 

C:\Users\xxxxxx\zephyr\samples\microbit\generic_onoff_svr\build>cmake -GNinja -DBOARD=bbc_microbit ..

CMake Deprecation Warning at C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:38 (cmake_policy):

  The OLD behavior for policy CMP0000 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):

  CMakeLists.txt:3 (include)

 

 

-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")

-- Selected BOARD bbc_microbit

Zephyr version: 1.12.0

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:33: warning: BT (defined at subsys/bluetooth/Kconfig:10) set more than once. Old value: "y", new value: "y".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:46: warning: BT_CTLR_LE_PING (defined at subsys/bluetooth/controller/Kconfig:150) set more than once. Old value: "n", new value: "n".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:47: warning: BT_CTLR_DATA_LENGTH (defined at subsys/bluetooth/controller/Kconfig:182) set more than once. Old value: "n", new value: "n".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:48: warning: BT_CTLR_PHY (defined at subsys/bluetooth/controller/Kconfig:199) set more than once. Old value: "n", new value: "n".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:49: warning: BT_CTLR_CHAN_SEL_2 (defined at subsys/bluetooth/controller/Kconfig:208) set more than once. Old value: "n"Parsing Kconfig tree in C:/Users/xxxxxx/zephyr//Kconfig

Using C:/Users/xxxxxx/zephyr/boards/arm/bbc_microbit/bbc_microbit_defconfig as base

Merging C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf

, new value: "n".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:50: warning: BT_CTLR_MIN_USED_CHAN (defined at subsys/bluetooth/controller/Kconfig:215) set more than once. Old value: "n", new value: "n".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:51: warning: BT_CTLR_ADV_EXT (defined at subsys/bluetooth/controller/Kconfig:222) set more than once. Old value: "n", new value: "n".

C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:52: warning: BT_CTLR_PRIVACY (defined at subsys/bluetooth/controller/Kconfig:156) set more than once. Old value: "n", new value: "n".

warning: MICROBIT_DISPLAY (defined at drivers/display/Kconfig.microbit:9) was assigned the value "y" but got the value "n" -- check dependencies

warning: BT_L2CAP_RX_MTU (defined at subsys/bluetooth/host/Kconfig:163) was assigned the value "69" but got the value "" -- check dependencies

warning: BT_CTLR_LE_ENC (defined at subsys/bluetooth/controller/Kconfig:136) was assigned the value "n" but got the value "y" -- check dependencies

warning: BT_CTLR_DATA_LENGTH_MAX (defined at subsys/bluetooth/controller/Kconfig:189) was assigned the value "27" but got the value "" -- check dependencies

CMake Error at C:/Users/xxxxxx/zephyr/cmake/toolchain.cmake:35 (include):

  include could not find load file:

 

    C:/Users/xxxxxx/zephyr//cmake/toolchain/gnuarmemb.cmake

Call Stack (most recent call first):

  C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:242 (include)

  CMakeLists.txt:3 (include)

 

 

CMake Error at C:/Users/xxxxxx/zephyr/cmake/toolchain.cmake:53 (file):

  file MD5 requires a file name and output variable

Call Stack (most recent call first):

  C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:242 (include)

  CMakeLists.txt:3 (include)

 

 

fatal: No names found, cannot describe anything.

-- Generating zephyr/include/generated/generated_dts_board.h

CMake Error at C:/Users/xxxxxx/zephyr/cmake/dts.cmake:69 (message):

  command failed with return code: The system cannot find the file specified

Call Stack (most recent call first):

  C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:268 (include)

  CMakeLists.txt:3 (include)

 

 

-- Configuring incomplete, errors occurred!

 

 

Regards,

Kai

 

Join devel@lists.zephyrproject.org to automatically receive all group messages.