Active Topics

 


Reply
Thread Tools
Posts: 17 | Thanked: 22 times | Joined on Jun 2012
#1
Hey everyone.
I've attached a minimal sample Qt project using the subdirs template. It's for Maemo5 but I guess Harmattan guys can take a look too, it's mostly build problems. I use the `debian/rules` file from HERE.

I'm on windows so I can build the source package with %mad% dpkg-buildpackage -Sa -s. However, making the binary package is not easy.

In the main project file, `k.pro`, if I write the subdirs as SUBDIRS = sub1 sub2 then execute %mad% dpkg-buildpackage -us -uc at some point it will nag about not finding `builddir/sub1/sub1.pro` file. If instead you write (uncomment it) # SUBDIRS = $$PWD/sub1 $$PWD/sub2 it will make correctly, but it will not CLEAN the files (actually instead of builddir it puts object files in the source tree, besides the source files) so it makes the source tree dirty.

I'm ok with that, but I don't know if the autobuilder and people making this in the future are ok or not.

Could anyone please discover a configuration of the `.pro` and `debian/rules` files that successfully builds and cleans after build?!

Thanks in advance.

Supplementary info (skip reading ) :
There are three `rules` files included to show you what i've tried. `rules` is the default one, `rules1` is my unsuccessful attempt to remove the builddir medium and directly clean the object file myself, and `rules2` is a try to move builddir out of the source tree because of THIS, none of which were successful.
Attached Files
File Type: zip k-1.0.0.zip (10.3 KB, 100 views)

Last edited by Hossein; 2012-09-07 at 20:10. Reason: minor fixes
 

The Following User Says Thank You to Hossein For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:24.