I'm encountering an issue with Zephyr SDK

Hi everyone, I'm encountering an issue with Zephyr SDK this is the error CMake Error at C:/Users/CLIENT/source/repos/zephir/zephyrproject/zephyr/cmake/modules/FindHostTools.cmake:104 (include): include could not find requested file: C:/Users/CLIENT/source/repos/zephir/zephyrproject/zephyr/cmake/toolchain/gnu/generic.cmake CMake Error at C:/Users/CLIENT/source/repos/zephir/zephyrproject/zephyr/cmake/modules/extensions.cmake:4519 (message): dt_preprocess() missing required argument: CPP
32 Replies
melta101
melta1012mo ago
Could you tell me what all did you do to lead to this?
wafa_ath
wafa_ath2mo ago
That is the process i go through -I created a project directory in Zephyr and added necessary files, including CMakeLists.txt. - I installed the Zephyr SDK and configured the paths correctly to ensure the toolchain and necessary files are accessible. - I installed and configured the ESP-IDF toolchain for the ESP32 platform (ESP-CAM) and set the necessary environment paths to integrate with Zephyr. -I also installed the Device Tree Compiler (DTC) to avoid errors related to device tree preprocessing. - i think am missing something or i did something wrong i can't figured it out
melta101
melta1012mo ago
how about using the application repo from zephyr instead of making your own Cmakelist.txt
melta101
melta1012mo ago
also what is the path of your app? in tree or OOT?
wafa_ath
wafa_ath2mo ago
it's OOT ,Emm can you please guide me about using the application repo from zephyr ...
wafa_ath
wafa_ath2mo ago
oh yes that is exactly what i did , i went through all those steps in orde, i will chek again maybe am missing something
wafa_ath
wafa_ath2mo ago
attachment 0
melta101
melta1012mo ago
by any chances do you have zephyr in zephyr?
wafa_ath
wafa_ath2mo ago
How to check that?!
melta101
melta1012mo ago
i see that there is a folder zephyr but all the content present in zephyr is also there outside that folder
wafa_ath
wafa_ath2mo ago
Ow yes , is that make a problem! Should i delete it!
melta101
melta1012mo ago
not sure but better delete why create more variables
wafa_ath
wafa_ath2mo ago
Okay i will try
ZacckOsiemo
ZacckOsiemo2mo ago
i tried this and i failed horribly
melta101
melta1012mo ago
what happened?
melta101
melta1012mo ago
which style did you try?
ZacckOsiemo
ZacckOsiemo2mo ago
could never get the app to build
ZacckOsiemo
ZacckOsiemo2mo ago
I tried making a standalone app out of the repo
melta101
melta1012mo ago
i used to have that prob alot Path prob are a pain
melta101
melta1012mo ago
GitHub
GitHub - zephyrproject-rtos/example-application: Example out-of-tre...
Example out-of-tree application that is also a module - zephyrproject-rtos/example-application
ZacckOsiemo
ZacckOsiemo2mo ago
Yep I followed that very closesly
ZacckOsiemo
ZacckOsiemo2mo ago
and then twister doesnt want to run out of the repo
ZacckOsiemo
ZacckOsiemo2mo ago
but new app in repo boom, just works. I'll try it in a little while again.
melta101
melta1012mo ago
yea that works like a charm
melta101
melta1012mo ago
i have been facing with my zephyr trouble
melta101
melta1012mo ago
when i try to build, it just stops there
melta101
melta1012mo ago
but when i try to build on a identical way on another dir it works as intended
melta101
melta1012mo ago
okay wow it just gets stuck at vscode not a normal terminal
melta101
melta1012mo ago
successfully wasted a day
melta101
melta1012mo ago
was planning to create a new tool for west flash

Did you find this page helpful?