我最近在系统中构建并安装了llvm,期望这是构建qtcreator所必需的:https://paste.ubuntu.com/p/23GCCS5xxS/
根据我在那里看到的内容,我设置了变量如下:
然而,在配置Qt6.2时,它仍然会给出以下信息。
我了解到,在构建 LLVM 时,我没有同时构建 Clang。根据 https://clang.llvm.org/get_started.html 提供的信息,它给出了以下行:
➜ qt6.2 git:(6.2) ✗ echo $LLVM_INSTALL_DIR
/usr/local/lib/cmake/llvm/
然而,在配置Qt6.2时,它仍然会给出以下信息。
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.
我了解到,在构建 LLVM 时,我没有同时构建 Clang。根据 https://clang.llvm.org/get_started.html 提供的信息,它给出了以下行:
cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm
make
#This builds both LLVM and Clang for debug mode.
这很令人沮丧,因为现在我必须重新构建它,这需要很长时间。 我只想要一个从llvm构建和安装所有内容的命令,这样我就不必一直回到这些东西了。这可能吗?
/home/anon/Library/llvm-project/libc/utils/HdrGen/PrototypeTestGen/PrototypeTestGen.cpp:9:10: fatal error: 'utils/LibcTableGenUtil/APIIndexer.h' file not found
,它基本上就是字面意思。在utils文件夹中没有名为HdrGen的子文件夹。 - Anon