开发者

Problems with cpack creating deb packages

开发者 https://www.devze.com 2023-04-04 16:16 出处:网络
I set CPACK_PACKAGE_CONTACT and CPACK_DEBIAN_PACKAGE_MAINTAINER in my main CMakeListst.txt. cmake itself runs an the created CPackConfig.cmake and CPackSour开发者_StackOverflow社区ceConfig.cmake both

I set CPACK_PACKAGE_CONTACT and CPACK_DEBIAN_PACKAGE_MAINTAINER in my main CMakeListst.txt. cmake itself runs an the created CPackConfig.cmake and CPackSour开发者_StackOverflow社区ceConfig.cmake both contain the variables set.

CPack still exits with

CPack: Create package using DEB CPack: Install projects CPack: - Run preinstall target for: CPack: - Install project: CPack: Create package CMake Error at /usr/share/cmake-2.8/Modules/CPackDeb.cmake:274 (MESSAGE): CPackDeb: Debian package requires a maintainer for a package, set CPACK_PACKAGE_CONTACT or CPACK_DEBIAN_PACKAGE_MAINTAINER

Does anybody have an idea what is wrong or how to find out what is going on here?


Thanks! The --debug and -V helped me. Should really be documented!

I found the problem - I used a "," in the SET command

SET(CPACK_DEBIAN_PACKAGE_MAINTAINER, "Andreas Loew")

this does not give an error but simply leaves the variable empty...

CMake seems to copy the content of this to the CPack configuration without any change, leaving the false "," inside.


Hmmmm. "cpack --help" does not appear to document its command line options fully...

If you use "cpack -V", you'll get more verbose output. If you use "cpack --debug", you'll get a ton of output that you can wade through to try to find hints about what went wrong.

Give those a try, and see if any of the output helps you. If not, perhaps it will at least yield some more information you can post in a question edit to try to track down what the problem is.

What version of cpack are you using?

0

精彩评论

暂无评论...
验证码 换一张
取 消