1
我使用Buildroot 2014.05生成包含Qt5的tarball。 当我解压缩文件的这个使用CMake的我收到以下错误消息编译我的项目:CMake不包含从buildroot生成的Qt5
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的CONFIGS下
<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安装
对不起,我使用Buildroot 2014.05生成了文件host.tar.bzip2 rootfs.tar.bz2和sysroot.tar.bz2,它在/ opt/下解压缩。 ”)与我的/ opt/不同。 –
user3142
我发现我的问题,将文件Qt5CoreConfigExtras.cmake有这个代码
如果(NOT TARGET QT5 :: QMAKE) add_executable(QT5 :: QMAKE原装进口) 集(imported_location “的/ opt/
的问题是,这/ opt/