issues compiling a QT5 package on Raring

Asked by Iztok Jeras

I am trying to package a new software. The latest version is using QT5 so I only plan to create Raring packages, and later ask a Debian developer to look at it and accept it into Debian.

I was not able to setup QT5 as the default build environment, so I am looking for a simple QT5 example package (qtcreator is a bit large to understand), I could use as reference. The Kactus2 developers compiled QT5 themselves, so they were not able to give me much help with the Raring QT5 build environment. I added the next build dependencies (qt5-default, qt5-qmake) thinking it would setup a QT5 build environment, but it seems this is not enough. The issue looks like:
qmake: could not open config file '/usr/share/qtchooser//default.conf': No such file or directory

Here is the build log:
https://launchpadlibrarian.net/134406778/buildlog_ubuntu-raring-amd64.kactus2_2.1.194-1~ppa5~raring1_FAILEDTOBUILD.txt.gz

And here are my discussions with Kactus2 developers (you can ignore the first post, I did not add any QT5 dependencies yet):
https://sourceforge.net/p/kactus2/tickets/238/

This is not a high priority issue, but an example I could start from would help.

Regards,
Iztok Jeras

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Steve Kowalik (stevenk) said :
#1

Your Build-Depends are incorrect. Firstly, you are pulling in the libraries themselves, rather than their development headers. I would start with:

Build-Depends: debhelper (>= 9.0.0), qt5-default, qtbase5-dev

That should get you further, but note the build may still fail if you require other QT5 libraries. For example if you also need QT5 XmlPatterns, you need to add libqt5xmlpatterns5-dev to Build-Depends.

Can you help with this problem?

Provide an answer of your own, or ask Iztok Jeras for more information if necessary.

To post a message you must log in.