我正在嘗試使用CMake
構建一個Qt Quick Controls
應用程序。我用下面的文檔:CMake未找到Qt5QuickCompiler
http://doc.qt.io/QtQuickCompiler/qquickcompiler-building-with-cmake.html
當運行CMake
,我得到這個錯誤:
By not providing "FindQt5QuickCompiler.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5QuickCompiler", but CMake did not find one.
Could not find a package configuration file provided by "Qt5QuickCompiler"
with any of the following names:
Qt5QuickCompilerConfig.cmake
qt5quickcompiler-config.cmake
在這一行:
FIND_PACKAGE(Qt5QuickCompiler)
顯然CMake
未找到Qt5QuickCompiler
。我檢查了我的Qt
文件夾(C:\ Qt),但它不在那裏。但我可以運行這個應用程序QMake
。
我需要設置什麼才能找到Qt5QuickCompiler
?
請不要張貼的截圖再次,它不回答你的問題。你沒有下載Qt Quick編譯器,對吧? (1)寫一個答案,你沒有下載它,但它是必要的。 (2)接受一個給定的答案,因爲他們可能會幫助你。在答案中添加評論,表明您錯過了下載。這歸功於這些人的幫助。 (3)如果你認爲這個問題對其他人沒有意義,那就刪除它。 – usr1234567