在Ubuntu 20.04上构建QtQuick应用程序需要哪些开发包



我在Qt Creator中创建了一个模板QtQuick项目(用于CMake(,它在IDE中用";官方的";Qt SDK。

然而,当试图在CLI中针对Ubuntu 20.04中的系统Qt构建时,我得到了:

$ mkdir build
$ cd build
$ cmake ..
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5Quick" with any
of the following names:
Qt5QuickConfig.cmake
qt5quick-config.cmake
Add the installation prefix of "Qt5Quick" to CMAKE_PREFIX_PATH or set
"Qt5Quick_DIR" to a directory containing one of the above files.  If
"Qt5Quick" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:28 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/juzzlin/QmlTest/build/CMakeFiles/CMakeOutput.log".

除了qt5-defaultqtquickcontrols2-5-dev之外,我还需要安装什么(不确定是否需要(?

丢失的包是qtdeclarative5-dev

相关内容

  • 没有找到相关文章

最新更新