gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 00:55:16 24 4
gpt4 key购买 nike

我在 Qt Creator 中创建了一个模板 QtQuick 项目(用于 CMake),它在带有“官方”Qt SDK 的 IDE 中构建良好。

但是,当尝试在 Ubuntu 20.04 中针对系统 Qt 构建 CLI 时,我得到:

$ 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

关于cmake - 在 Ubuntu 20.04 上构建 QtQuick 应用程序需要哪些开发包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64882226/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com