PDA

View Full Version : Uploading a QT project - build fails no qmake


Bratag
2010-01-26, 22:17
Ok so I have tried several times following the qt building process listed on the wiki etc, however every time I upload my project to the extras-devel it fails to build saying there is no qmake. How exactly are we meant to make QT projects with no qmake on the build server?

Anyone who has put out a Qt project please, little help?

danielwilms
2010-01-27, 07:38
Ok so I have tried several times following the qt building process listed on the wiki etc, however every time I upload my project to the extras-devel it fails to build saying there is no qmake. How exactly are we meant to make QT projects with no qmake on the build server?

Anyone who has put out a Qt project please, little help?

Do you have the sources somewhere or the link to the autobuilder folder, to have a look? It sounds like you forgot libqt4-dev in the build dependencies?

Daniel

Bratag
2010-01-27, 13:34
Do you have the sources somewhere or the link to the autobuilder folder, to have a look? It sounds like you forgot libqt4-dev in the build dependencies?

Daniel

Thanks for the reply. I will give that a shot and failing that working will post the source

Bratag
2010-01-27, 14:53
cd builddir && qmake PREFIX=/opt ../qtPianobar.pro
/scratchbox/tools/bin/sh: line 1: qmake: command not found
make: *** [builddir/Makefile] Error 127


Same error and yes this time I included the qt-dev in the build deps.

Why does this goddamn process have to be so frigging complicated and such a black hole where we throw stuff into it with no idea of whats going on inside.

Seriously who is in charge of this process and why is there no decent documentation on this kind of thing.

I have read

http://wiki.maemo.org/Packaging_a_Qt_application

A dozen times and I cannot find any reference to me having to put anything specific in my source. This is a copy of my control file.

Source: qtpianobar
Section: user/multimedia
Priority: extra
Maintainer: Anthony Peacock <peacock73@gmail.com>
Build-Depends: debhelper (>= 5), libqt4-maemo5-core, libqt4-maemo5-gui, libqt4-maemo5-dev
Standards-Version: 3.7.2

Package: qtPianobar
Architecture: armel
Depends: libqt4-maemo5-core (>= 4.6.1~git20100122-0maemo1), libqt4-maemo5-gui (>= 4.6.1~git20100
122-0maemo1)
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>

TNiga
2010-01-27, 14:57
Perhaps you need to put "cd builddir && /opt/qt4-maemo5/bin/qmake PREFIX=/opt ../qtPianobar.pro" in there since you are using Qt 4.6 and that's where qmake is then located (not in PATH variable, so just qmake doesn't work).

Sasler
2010-01-27, 14:58
You need a different rules file. I have it attached in this thread (http://talk.maemo.org/showthread.php?t=39962). Replace the debian/rule file with it. Just remember to change the APPNAME. Also edit the debian/compat file so that it says 5.

I hope this helps. :)

Bratag
2010-01-27, 15:19
You need a different rules file. I have it attached in this thread (http://talk.maemo.org/showthread.php?t=39962). Replace the debian/rule file with it. Just remember to change the APPNAME. Also edit the debian/compat file so that it says 5.

I hope this helps. :)

My rules was exatly the same as yours apart from the qmake-qt4. Thanks for the post it was most helpfull, another build is submitted and we can only hope it works this time

Bratag
2010-01-27, 15:22
My rules was exatly the same as yours apart from the qmake-qt4. Thanks for the post it was most helpfull, another build is submitted and we can only hope it works this time

cd builddir && qmake-qt4 PREFIX=/opt ../qtPianobar.pro
/scratchbox/tools/bin/sh: line 1: qmake-qt4: command not found
make: *** [builddir/Makefile] Error 127


Well I am at a goddamn loss. I can only assume at this stage something is ****ed on the build server. Since we have no real way of contacting the build server admins (whoever they may be) I have no way to check if that is indeed the case.

TNiga
2010-01-27, 16:33
Did you try what I suggested? /opt/qt4-maemo5/qmake

Bratag
2010-01-27, 17:35
Did you try what I suggested? /opt/qt4-maemo5/qmake

Yep - build failed still - but the qmake worked, once I had corrected the typo I had. Thanks very much for your input.

I would however like to go on record as saying NOWHERE in the goddamn docs is that path mentioned.

danielwilms
2010-01-28, 09:20
Hi,
Yep - build failed still - but the qmake worked, once I had corrected the typo I had. Thanks very much for your input.

I would however like to go on record as saying NOWHERE in the goddamn docs is that path mentioned.

I am working on a bigger Qt example for packaging with MADDE, to gather a bit together the information, which is out there and to show where to look at. This should make the packaging process hopefully a bit easier. Same will happen for C/C++ applications. But good to see that you got it through the autobuilder.

Daniel

calvin_42
2010-02-18, 15:56
Hi there.

I have created a project using Qt and MADDE but the compilation failed when using the autobuilder of the extra devel assistant :

TMP="/var/tmp"
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/autodisconnect-0.1'
Makefile:53: *** multiple target patterns. Stop.
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/autodisconnect-0.1'
make: *** [clean] Error 2

In have created a separate thread, if you have any solution : http://talk.maemo.org/showthread.php?t=44994

Thanks.

tmsha
2010-02-18, 17:00
All these problems with uploading freaks me out as a developer. I planned to upload my applications, but it just seems like a lot of work. Also, there is not a good set of tools to develop yet, I will drop developing for now and come back in summer and see whats going on here. Thank you all, it' been fun :)