I recently built and installed llvm to my system with the expectation that this would be what is neccessary to build qtcreator: https://paste.ubuntu.com/p/23GCCS5xxS/
Based on what I saw there, I set the variable as such:
➜ qt6.2 git:(6.2) ✗ echo $LLVM_INSTALL_DIR
/usr/local/lib/cmake/llvm/
However when configuring Qt6.2, it still gives
WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
And from what I understand, when I built llvm, I didn't build Clang with it. Based on https://clang.llvm.org/get_started.html it gives the following line:
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
make
#This builds both LLVM and Clang for debug mode.
Which is frustrating because I now have to build it again, which takes forever. I'd just like the command that builds and installs everything from llvm, so I don't have to keep going back to these things. Is that possible?