小编Bud*_*lly的帖子

默认安装前缀 QT5 / QT5 Widgets Ubuntu

我有一个 CMake 项目。我正在尝试从 QT4 切换到 QT5。

 find_package(QT5Widgets REQUIRED) EDIT HERE IS A TYPO problem solved (Qt5... instead of QT5...)
Run Code Online (Sandbox Code Playgroud)

已经给了我

By not providing "FindQT5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"QT5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "QT5Widgets" with
any of the following names:

QT5WidgetsConfig.cmake
qt5widgets-config.cmake

Add the installation prefix of "QT5Widgets" to CMAKE_PREFIX_PATH or set
"QT5Widgets_DIR" to a directory containing one …
Run Code Online (Sandbox Code Playgroud)

cmake qt5 14.04

5
推荐指数
2
解决办法
2万
查看次数

标签 统计

14.04 ×1

cmake ×1

qt5 ×1