我使用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
答案 0 :(得分:1)
这部分:我用Qt5使用Buildroot 生成tarball确实很有意义。这到底是什么意思?
如果你这意味着你要对output/host/
(这是工具链以及为目标构建应用程序所需的所有库)的内容进行压缩,那么请注意它不可重定位。所以它必须安装在与生成它相同的位置。所以现在,如果你想这样做,你应该将BR2_HOST_DIR配置选项设置为/opt/<something>/
,然后tarball并在要使用工具链的其他机器上解压缩它。
我们的TODO列表中可以重新定位。