如何在Ubuntu 12.04上使用CDBS和Cmake,Qt5配置debian / rules文件进行打包

这是我第一次问这里。 最近我在Launchpad中玩包装 – 对我来说是一件新事物。
我尝试为Ubuntu Precise编译Sigil 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额外标志的参数正在运行。 但为什么它仍然出错? 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".