Open syntroniks opened 3 years ago
As a workaround, I've been experimenting in Visual Studio CMake projects.
Choosing an Existing Cache for CMakeSettings.json
that pulls from a .bat file (that uses CMakePresets.json
) things are workable until MS upgrade VS and VScode.
Looking forward to getting started with distortos.
Previously it was selecting clang (until I uninstalled it).
Have you deleted the build
folder after all previous failed attempts and tried with an empty one? This is very important! CMake is pretty stupid in this regard - if there is ANY error during the initial "folder configuration" run, then the whole directory is completely unrecoverable, it MUST be deleted and you have to start with an empty one.
One VERY important thing. distortos is meant to be built with a "bleeding-edge-toolchain", not the toolchain provided by ARM. Even if it will build, there are ZERO guarantees that it will work correctly when using that "official" toolchain from ARM. Even if it will work, it WILL use much more RAM in all possible cases!
https://github.com/FreddieChopin/bleeding-edge-toolchain
You can download Windows builds of this toolchain from here: https://freddiechopin.info/en/download/category/11-bleeding-edge-toolchain
If the problem still persists, please attach all the *log
files that you can find in the build folder (especially build/CMakeFiles/CMakeError.log
and build/CMakeFiles/CMakeOutput.log
).
As a side note, please also try your command with forward slashes (in -DCMAKE_TOOLCHAIN_FILE=
, maybe there's some typical Linux/Windows-slash-related issue hidden somewhere...
=>
Previously it was selecting clang (until I uninstalled it).
It looks as if the toolchain file isn't being ran, but when I mis-spell it, CMake complains about 'can't find file'. That said, adding
message(...)
calls in the toolchain file doesn't result in output.This works fine in wsl.