[maemo-developers] How to compile in Scratchbox a project created with Nokia SDK?

From: Andrea Grandi a.grandi at gmail.com
Date: Wed Jun 30 17:37:02 EEST 2010
Hi all,

On 30 June 2010 16:27, Antonio Aloisio <antonio.aloisio at gmail.com> wrote:
> Ciao Andrea,
>
> I took a look at your debian/rules.. I think you can solve this issue
> merely generating the Makefile each time the package
> is built.

I'm generating the Makefile each time. I remove the old Makefile and
generated a new one with this command: /opt/qt4-maemo5/bin/qmake-qt4
msoma.pro
then I went to the building folder and ran dpkg-buildpackage -rfakeroot -sa -S
in this way I could generate the three files

-rw-rw-r--   1 andrea andrea     246 Jun 30 15:52 msoma_0.1.1.dsc
-rw-rw-r--   1 andrea andrea 1119267 Jun 30 15:52 msoma_0.1.1.tar.gz
-rw-rw-r--   1 andrea andrea     557 Jun 30 15:52 msoma_0.1.1_source.changes

which I uploaded to the Autobuilder. The problem is that in this way
my Makefile under Scratchbox is using /opt/qt4-maemo5/bin/qmake-qt4
which is not found by Autobuilder (look at the error: make[1]: *** No
rule to make target
`/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux-g++-maemo5/qmake.conf',
needed by `Makefile'. Stop.)

> My hints is do not fix the current makefile, but just make a new one using CDBS.

I didn't touch the Makefile by hand. What is CDBS?

> PS: remove the obj files from the tarball as well as teh Makefle.

I just uploaded the generated msoma_0.1.1.tar.gz, shouldn't those
files be automatically removed or not included?

Regards,

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
More information about the maemo-developers mailing list