Best development workflow for newbie #77990
-
I want to start using the workspace application workflow for my application. I thought this one would allow encapsulate the dependencies and application code in one repository and it would easier for me start writing code on a new machine as soon as possible or would be easier for me to get someone else onboard. The Zephyr docs (although a lot) is sometimes confusing for new comers and feel incomplete at places. What am I missing here? I am using the example-application as a starting point. Below is what I did on my Ubuntu 22.04: sudo apt install --no-install-recommends git cmake ninja-build gperf ccache dfu-util device-tree-compiler wget python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/zephyr-sdk-0.16.8_linux-x86_64.tar.xz
tar xvf zephyr-sdk-0.16.8_linux-x86_64.tar.xz
cd zephyr-sdk-0.16.8/
./setup.sh
cd ~
sudo apt install python3-venv
python3 -m venv ~/my-zephyr-workspace/.venv
source ~/my-zephyr-workspace/.venv/bin/activate
pip install west
cd ~/my-zephyr-workspace
west init -m https://github.com/zephyrproject-rtos/example-application
west udpate
pip install -r zephyr/scripts/requirements.txt
cd example-application/
west build -b nucleo_f302r8 I see the following error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @wickywaka ,
Best regards |
Beta Was this translation helpful? Give feedback.
Hi @wickywaka ,
I see your
west build
command is not pointing to the correct source folder for the application. This is why the Cmake error complains of the missingproject()
command, because it is starting with the wrong CMakeLists.txt file. Notice in the example-application steps, thewest build
command includes theapp
folder as the source folder for the build. Try changing your build command to:Best regards