【发布时间】:2015-10-26 18:17:56
【问题描述】:
我使用 Buildroot 2014.05 使用 Qt5 生成了一个 tarball。 当我解压缩这些文件以使用 CMake 编译我的项目时,我收到以下错误消息:
CMake Error at <project> /sysroot/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
The imported target "Qt5::Core" references the file
"<project>/host/usr/bin/qmake"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/<project>/sysroot/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
but not all the files it references.
我正在使用下面的 cmake 配置
<project>/sysroot/usr/lib/cmake/
还有我的 CMakeLists.txt
set(CMAKE_PREFIX_PATH <project>/sysroot/usr/lib/cmake/QtWidgets/ )
find_package(Qt5Widgets REQUIRED)
有什么建议吗?
Buildroot 2014.05 没有要安装的 qmake
【问题讨论】: