Re: Building error on linux. #west

Carles Cufi

Hi there,


This means that you don’t have a full zephyr environment.


Please follow the Getting Started Guide from scratch and you should be able to get this working:




From: users@... <users@...> On Behalf Of wbasser via
Sent: 09 March 2021 22:01
To: users@...
Subject: [Zephyr-users] Building error on linux. #west


I created this project on windows and built it successfully.  Migrated to Linux as this is our normal build environment.  Checked the file out of git and upon attempting to build I get the following error.

wbasser@ubuntu:~/strongarmtech/git/fuse-zephyr$ dir

CMakeLists.txt prj.conf  src

wbasser@ubuntu:~/strongarmtech/git/fuse-zephyr$ west build -p auto -b nrf52dk_nrf52832

usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...

west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

If I go to zephyprojects/zephyr and execute the following command, I get the following:

<pre><font color="#4E9A06"><b>wbasser@ubuntu</b></font>:<font color="#3465A4"><b>~/zephyrproject/zephyr</b></font>$ west build -p auto -b nrf52dk_nrf52832 ~/strongarmtech/git/fuse-zephyr

<font color="#8AE234">-- west build: generating a build system</font>

CMake Error: The source &quot;/home/wbasser/strongarmtech/git/fuse-zephyr/CMakeLists.txt&quot; does not match the source &quot;/home/wbasser/zephyrproject/zephyr/CMakeLists.txt&quot; used to generate cache.  Re-run cmake with a different source directory.

<font color="#EF2929">FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/wbasser/zephyrproject/zephyr/build -S/home/wbasser/strongarmtech/git/fuse-zephyr -GNinja -DBOARD=nrf52dk_nrf52832</font>

<font color="#4E9A06"><b>wbasser@ubuntu</b></font>:<font color="#3465A4"><b>~/zephyrproject/zephyr</b></font>$ 


Any ideas

Join to automatically receive all group messages.