Cmake issues while building the developer guide examples on windows

I am trying to build the projects shown in the developer guides (
https://bristlemouth.notion.site/Bristlemouth-Dev-Kit-Guide-4-Setting-Up-Your-Firmware-Development) on windows using git bash, but am running into several issues with CMake (not being able to recognize the SRC_DIR and APP_DIR as well as issues including subdirectories in the build process).
I have tried to edit and manually correct these errors in the CMakeLists.txt files, but it is still not working.
Is there any solution/guide for windows?

Hi Gautam,

We don’t have good guides for Windows development right now. If you’re not already pretty experienced there, we recommend working on mac/linux.

That said, if you’re experienced with Windows development tools and environments and can figure some things out on your own, the best luck we’ve had has been by enabling developer mode and WSL, installing an Ubuntu image for WSL, and then just following the linux instructions from there.

Hope that helps!

Another tip — if you see errors asking about NMake (I have encountered this before), it can be helpful to explicitly set the cmake generator. When you configure a build system by running one of those long cmake commands, add -G "Unix Makefiles" to specify GNU make as the generator.

Thanks for the prompt response Zachary!

I have already tried to add the CMake generator command to resolve the nmake issue you mentioned, but it is still not working.

I will try using WSL and see if I have any luck with that. Would you recommend using any specific ubuntu version?

Sure thing! I happened to be doing this just last week and so grabbed the latest one I saw in the Microsoft store, which I think was 24.04, but it doesn’t really matter. Good luck!

1 Like

Just wanted to post an update here.

I ended up dual-booting my pc to have ubuntu running natively and that has solved the issue.
I think it is best to do development for the bm devkit on ubuntu/Mac as mentioned by @zachary

2 Likes