maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Uploading a QT project - build fails no qmake (https://talk.maemo.org/showthread.php?t=42337)

Bratag 2010-01-26 22:17

Uploading a QT project - build fails no qmake
 
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

Re: Uploading a QT project - build fails no qmake
 
Quote:

Originally Posted by Bratag (Post 496316)
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

Re: Uploading a QT project - build fails no qmake
 
Quote:

Originally Posted by danielwilms (Post 496934)
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

Re: Uploading a QT project - build fails no qmake
 
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.

Code:

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

Re: Uploading a QT project - build fails no qmake
 
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

Re: Uploading a QT project - build fails no qmake
 
You need a different rules file. I have it attached in this thread. 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

Re: Uploading a QT project - build fails no qmake
 
Quote:

Originally Posted by Sasler (Post 497558)
You need a different rules file. I have it attached in this thread. 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

Re: Uploading a QT project - build fails no qmake
 
Quote:

Originally Posted by Bratag (Post 497587)
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

Re: Uploading a QT project - build fails no qmake
 
Did you try what I suggested? /opt/qt4-maemo5/qmake

Bratag 2010-01-27 17:35

Re: Uploading a QT project - build fails no qmake
 
Quote:

Originally Posted by TNiga (Post 497717)
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.


All times are GMT. The time now is 22:43.

vBulletin® Version 3.8.8