ninja guiconfig fail #gettingstartedguide
hotkernel@...
Hi, after I building the example: samples/bluetooth/hci_uart, under the directory "build",
I can run "ninja menuconfig" command successfully, but run "ninja guiconfig" failed. I have searched the zephyr online document for help, but did not find the answer. Can some one tell me how to launch the command "ninja guiconfig". Thanks in advance.
|
|
Carles Cufi
Hi there,
Can you please let us know what error you get? Also, can you give us more details including which Zephyr version (master, 1.14, etc), what Host OS (Linux, Windows, macOS) and which toolchain configuration? (ZEPHYR_TOOLCHAIN_VARIANT)
Carles
From: devel@... <devel@...>
On Behalf Of hotkernel via Lists.Zephyrproject.Org
Sent: 12 June 2019 02:39 To: devel@... Cc: devel@... Subject: [Zephyr-devel] ninja guiconfig fail #gettingstartedguide
Hi, after I building the example: samples/bluetooth/hci_uart, under the directory "build",
|
|
hotkernel@...
Hi Carles,
Here is my detail steps to reproduce this fail: OS version: Ubuntu 18.04.2 LTS 64 bits install zephyr development environment: 1. sudo apt-get update 2. sudo apt-get upgrade 3. sudo apt-get install --no-install-recommends git cmake ninja-build gperf \ ccache dfu-util device-tree-compiler wget \ python3-pip python3-setuptools python3-wheel xz-utils file make gcc \ gcc-multilib 4. pip3 install --user cmake zephyr sdk: 1. version: zephyr-sdk-0.10.0-setup.run 2. install path: ~/zephyr/sdk get zephyr source code: cd ~/zephyr pip3 install --user west west --version west init source cd source west update the version was 1.14.99, source path: ~/zephyr/source install python packages: cd ~/zephyr/source pip3 install --user -r zephyr/scripts/requirements.txt sudo apt-get install python3-tk export variant: cd ~/zephyr/source/zephyr export ZEPHYR_TOOLCHAIN_VARIANT=zephyr export ZEPHYR_SDK_INSTALL_DIR=~/zephyr/sdk source zephyr-env.sh build sample: cd samples/bluetooth/hci_uart/ mkdir build && cd build cmake -GNinja -DBOARD=nrf52_pca10040 .. output: Zephyr version: 1.14.99 -- Selected BOARD nrf52_pca10040 -- Found west: /home/jeremy/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6") -- Loading /home/jeremy/zephyr/source/zephyr/boards/arm/nrf52_pca10040/nrf52_pca10040.dts as base -- Overlaying /home/jeremy/zephyr/source/zephyr/dts/common/common.dts -- Overlaying /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/nrf52_pca10040.overlay Parsing Kconfig tree in /home/jeremy/zephyr/source/zephyr/Kconfig Loading /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config as base Configuration written to '/home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config' -- Cache files will be written to: /home/jeremy/.cache/zephyr Including module: tinycbor in path: /home/jeremy/zephyr/source/modules/lib/tinycbor Including module: qmsi in path: /home/jeremy/zephyr/source/modules/hal/qmsi -- Configuring done -- Generating done -- Build files have been written to: /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build ninja output: [137/142] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 73191 B 512 KB 13.96% SRAM: 18908 B 64 KB 28.85% IDT_LIST: 136 B 2 KB 6.64% [142/142] Linking C executable zephyr/zephyr.elf jeremy@jeremy:~/zephyr/source/zephyr/samples/bluetooth/hci_uart/build$ ninja menuconfig [0/1] cd /home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/...urce/zephyr/scripts/kconfig/menuconfig.py /home/jeremy/zephyr/source/zephyr/Kconfig Using existing configuration '/home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config' as base No changes to save (for '/home/jeremy/zephyr/source/zephyr/samples/bluetooth/hci_uart/build/zephyr/.config') jeremy@jeremy:~/zephyr/source/zephyr/samples/bluetooth/hci_uart/build$ ninja guiconfig ninja: error: unknown target 'guiconfig'
|
|
Carles Cufi
Hi there,
I can’t explain it unless you are not on the current master. guiconfig was introduced after the release of Zephyr 1.14, so if you are on 1.14 you won’t be able to use it.
Carles
From: devel@... <devel@...>
On Behalf Of hotkernel via Lists.Zephyrproject.Org
Sent: 13 June 2019 16:39 To: devel@... Cc: devel@... Subject: Re: [Zephyr-devel] ninja guiconfig fail #gettingstartedguide
Hi Carles,
|
|
hotkernel@...
Hi Carles,
Thank you for reminding me that the guiconfig was introduced after the release of Zephyr 1.14 at master. So if use the git clone to get the source code not by the west tool (git clone https://github.com/zephyrproject-rtos/zephyr.git source2) then I can launch "ninia guiconfig" under the build directory.
|
|
Bolivar, Marti
Hi,
"hotkernel via Lists.Zephyrproject.Org" <hotkernel=163.com@lists.zephyrproject.org> writes: Hi Carles,It doesn't matter how you get the source code; west will work too. The important thing is that you need something more recent than LTS for this new feature. If you run plain "west init" it will pull the latest zephyr master -- you would actually have to specify additional arguments not to get the latest, as in "west init --mr v1.14.0". If you previously cloned zephyr v1.14 and want to update to a later version, you can use "git pull". Just make sure to run "west update" after each git pull to update your modules. As has been discussed on other threads in this list, new modules are being added often right now as zephyr/ext is cleared out, and your build will break if you don't keep the up to date. Thanks, Marti
|
|
hotkernel@...
Hi,
I get it, thanks for your patience explain.
|
|