Master might be broken on Windows. I've tried multiple configs and still wasn't able to compile. Some notes for reference in the future:
- Fist error was not detecting clang. Just install using
chocolatey.
- You have to change the default compiler. Go to Tools > Options > Kits. Then click on the one you're using and choose the C and C++ compiler.
- Chocolatey doesn't seem to create PATH Env to clang binaries. You have to add manually.
- Second error: float.h is not up-to-date in MinGW binary release (it seems). I replaced it using
this version and it worked. The path to the original is something like "C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include"
- Third error: the debugger failed. Don't know if it was specific to my machine. I tried directly linking lldb instead on the 'Kit'. The path to it is "C:\Program Files\LLVM\bin\lldb.exe"
- Some people pointed to use the mkspec called "win32-clang-g++". Just update on the 'Kit'.
- After all that, still multiple errors while compiling. Before I got angry and gave up, I tried to read some of the debug messages. Tried to change from clang.exe to clang-cl.exe (which seems to have better compatibility for some reason). No success. The issues seemed to be related to the linker, because way too many libs were not recognized. So I tried to find to find a way to use
LLVMs own linker (lld), but I couldn't find a way to make qtcreator use it (or cmake, I dunno).
Windows is such a piece of shit for developing. QtCreator is bloated and buggy. Such a nightmare. I miss when software used to just be easy to compile as writing "sudo make".