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
melta1014w ago
Could you tell me what all did you do to lead to this?
wafa_ath
wafa_ath4w 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
melta1014w ago
how about using the application repo from zephyr instead of making your own Cmakelist.txt
melta101
melta1014w ago
also what is the path of your app? in tree or OOT?
wafa_ath
wafa_ath4w ago
it's OOT ,Emm can you please guide me about using the application repo from zephyr ...
wafa_ath
wafa_ath4w 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_ath4w ago
attachment 0
melta101
melta1014w ago
by any chances do you have zephyr in zephyr?
wafa_ath
wafa_ath4w ago
How to check that?!
melta101
melta1014w 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_ath4w ago
Ow yes , is that make a problem! Should i delete it!
melta101
melta1014w ago
not sure but better delete why create more variables
wafa_ath
wafa_ath4w ago
Okay i will try
ZacckOsiemo
ZacckOsiemo4w ago
i tried this and i failed horribly
melta101
melta1014w ago
what happened?
melta101
melta1014w ago
which style did you try?
ZacckOsiemo
ZacckOsiemo4w ago
could never get the app to build
ZacckOsiemo
ZacckOsiemo4w ago
I tried making a standalone app out of the repo
melta101
melta1014w ago
i used to have that prob alot Path prob are a pain
melta101
melta1014w 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
ZacckOsiemo4w ago
Yep I followed that very closesly
ZacckOsiemo
ZacckOsiemo4w ago
and then twister doesnt want to run out of the repo
ZacckOsiemo
ZacckOsiemo4w ago
but new app in repo boom, just works. I'll try it in a little while again.
melta101
melta1014w ago
yea that works like a charm
melta101
melta1014w ago
i have been facing with my zephyr trouble
melta101
melta1014w ago
when i try to build, it just stops there
melta101
melta1014w ago
but when i try to build on a identical way on another dir it works as intended
melta101
melta1014w ago
okay wow it just gets stuck at vscode not a normal terminal
melta101
melta1014w ago
successfully wasted a day
melta101
melta1014w ago
was planning to create a new tool for west flash

Did you find this page helpful?