这是我第一次在这里提问。最近我在 Launchpad 中玩了打包——对我来说是新事物。
我尝试编译符印Ubuntu Precise 的 0.7.4。源代码必须用 Qt5 编译,而默认情况下 Precise 只提供 Qt4。所以我用了“Ubuntu SDK 团队”对于构建依赖项。
我在 Trusty 中进行了本地构建bzr
,一切似乎都正常工作。但 Launchpad 中的构建出现错误。看看日志。
该debian/rules
文件包含:
#!/usr/bin/make -f
# -*- makefile -*-
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
DEB_CMAKE_EXTRA_FLAGS += -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake
根据构建日志,Cmake extra flags 的参数可以正常工作。但为什么仍然会出错?qt5-qmake 位于哪里,这样它就不会再出错了?
先谢谢了。
编辑
对于那些遇到同样问题的人,你可能已经通过谷歌搜索来解决问题。我给出了有关该错误的更多详细信息:
CMake Warning at src/Sigil/CMakeLists.txt:38 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
CMake Error at src/Sigil/CMakeLists.txt:454 (qt5_wrap_ui):
Unknown CMake command "qt5_wrap_ui".