Reply
Thread Tools
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#1
Hi there,

I've developped an application with Qt Creator and MADDE on Windows. I have successfully built the .deb package on my machine and uploaded it to my garage.

Now I am trying to upload my first application to the Extra-Devel repository using the Maemo Extras Assistant and his autobuilder.

But an error occurred during the compilation (See armel.build.log.FAILED.txt) :

Code:
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
When I successfully build the package on my computer, I have the following log :

Code:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/bin/make clean
make[1]: Entering directory `/home/Calvin/autodisconnect'
cd src/ && /bin/make -f Makefile clean
make[2]: Entering directory `/home/Calvin/autodisconnect/src'
rm -f build/moc_mainwindow.cpp
rm -f build/ui_mainwindow.h
rm -f build/autodisconnect
rm -f build/qtmain.o build/mainwindow.o build/utils.o build/moc_mainwindow.o
rm -f *~ core *.core
make[2]: Leaving directory `/home/Calvin/autodisconnect/src'
make[1]: Leaving directory `/home/Calvin/autodisconnect'
I have no idea about the error. If someone could try to look a my sources, that's would be really nice : https://garage.maemo.org/builder/fre...t_0.1/sources/.

Thanks!
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#2
Originally Posted by calvin_42 View Post
Hi there,

I've developped an application with Qt Creator and MADDE on Windows. I have successfully built the .deb package on my machine and uploaded it to my garage.

Now I am trying to upload my first application to the Extra-Devel repository using the Maemo Extras Assistant and his autobuilder.

But an error occurred during the compilation (See armel.build.log.FAILED.txt) :

Code:
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
When I successfully build the package on my computer, I have the following log :

Code:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/bin/make clean
make[1]: Entering directory `/home/Calvin/autodisconnect'
cd src/ && /bin/make -f Makefile clean
make[2]: Entering directory `/home/Calvin/autodisconnect/src'
rm -f build/moc_mainwindow.cpp
rm -f build/ui_mainwindow.h
rm -f build/autodisconnect
rm -f build/qtmain.o build/mainwindow.o build/utils.o build/moc_mainwindow.o
rm -f *~ core *.core
make[2]: Leaving directory `/home/Calvin/autodisconnect/src'
make[1]: Leaving directory `/home/Calvin/autodisconnect'
I have no idea about the error. If someone could try to look a my sources, that's would be really nice : https://garage.maemo.org/builder/fre...t_0.1/sources/.

Thanks!
Architecture: any

I believe is the problem. Try changing that to armel.
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
Originally Posted by calvin_42 View Post

I have no idea about the error. If someone could try to look a my sources, that's would be really nice : https://garage.maemo.org/builder/fre...t_0.1/sources/.
I'd advise you to look at line 53 of your Makefile, like the error is suggesting.

I don't think e:/logiciels/MADDE/0.6.14/ exists in Scratchbox...

Last edited by qwerty12; 2010-02-18 at 16:22. Reason: 53, even
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#4
Originally Posted by calvin_42 View Post
I have no idea about the error. If someone could try to look a my sources, that's would be really nice : https://garage.maemo.org/builder/fre...t_0.1/sources/.
I don't know about that error specifically, but I don't see how the Makefile in there is going to work - you've got absolute Windows paths specified all over the place.
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#5
Thanks for your answer.

@Bratag : I've changed the architecture label, but the compilation failed again.

@qwerty12 + Rob1n : the actual makefile doesn't make any sense I agree with you. It has to be generated again with qmake on the host machine to generate the correct links. Why the extra-devel autobuilder doesn't do it ?
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#6
Originally Posted by calvin_42 View Post
Thanks for your answer.

@Bratag : I've changed the architecture label, but the compilation failed again.

@qwerty12 + Rob1n : the actual makefile doesn't make any sense I agree with you. It has to be generated again with qmake on the host machine to generate the correct links. Why the extra-devel autobuilder doesn't do it ?
The autobuilder should run qmake against the pro file provided the package is built correctly. I don't actually see it doing that in the logs you provided.

I will go back and take another look at the code. In the meantime I suggesting yanking all the icon stuff from the control. It caused no end of trouble in the packages I made
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 

The Following User Says Thank You to Bratag For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
Originally Posted by calvin_42 View Post
@qwerty12 + Rob1n : the actual makefile doesn't make any sense I agree with you. It has to be generated again with qmake on the host machine to generate the correct links. Why the extra-devel autobuilder doesn't do it ?
It runs what you tell it to run - it's not psychic. The autobuilder also uses Scratchbox; not MADDE. debian/rules doesn't have a line telling it to run qmake so it won't run it. I can't help you, sorry, as I don't do Qt. qmake and all of it is too weird for me. Give me GTK, Scratchbox and Autotools and I'm happy.

P.S. Fill in the Build-Depends part of debian/control, at least.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#8
Originally Posted by qwerty12 View Post
It runs what you tell it to run - it's not psychic. The autobuilder also uses Scratchbox; not MADDE. debian/rules doesn't have a line telling it to run qmake so it won't run it. I can't help you, sorry, as I don't do Qt. qmake and all of it is too weird for me. Give me GTK, Scratchbox and Autotools and I'm happy.

P.S. Fill in the Build-Depends part of debian/control, at least.
Good point. Check this thread.

http://talk.maemo.org/showthread.php?t=39962

Its what I used to get my qt package out there. The section on building the rules file etc is quite good.
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 

The Following User Says Thank You to Bratag For This Useful Post:
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#9
Originally Posted by Bratag View Post
Good point. Check this thread.

http://talk.maemo.org/showthread.php?t=39962

Its what I used to get my qt package out there. The section on building the rules file etc is quite good.
Yep I was reading it Trying to apply it.

What did you put in the Build-Depends part of debian/control ?

Thanks.
 
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#10
So I have modifed my .pro files and some debian files as debian/control and debian/rules (See enclosed files). I had to make a lot of modifications compared to the rules file I found on another threads. If you can check them. But it finally compiles successfully with MADDE on my computer.

I added the following entry to the debian/control :

Code:
Build-Depends: debhelper (>= 5), libqt4-maemo5-dev
I have now a new error (qmake is called this time)

Code:
mkdir -p builddir
cd builddir && /opt/qt4-maemo5/bin/qmake ../autodisconnect.pro
dh_testdir
# Add here commands to compile the package.
cd builddir && /scratchbox/tools/bin/make
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/autodisconnect-0.1/builddir'
cd ../src/ && /scratchbox/tools/bin/make -f Makefile 
make[2]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/autodisconnect-0.1/src'
Makefile:101: *** multiple target patterns.  Stop.
make[2]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/autodisconnect-0.1/src'
make[1]: *** [sub----src-make_default] Error 2
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/autodisconnect-0.1/builddir'
make: *** [build-stamp] Error 2
Is there any way to have the Makefile generated to be sure mine has been overwritten ?

Thanks.
Attached Files
File Type: gz autodisconnect_0.1.tar.gz (29.7 KB, 68 views)
 
Reply

Thread Tools

 
Forum Jump


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