Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Oct 2009
#1
I have the project on Qt which I made in Ubuntu/ESbox. Debian folder was made with help of ESbox.

So I can build package either in ESbox or in command line ('dpkg-buildpackage -rfakeroot -d -uc -us' works well).

Now I try to build package in MADDE (WinXP/NokiaQtSDK/MADDE-0.7.48/fremantle-pr13). But when I do 'mad dpkg-buildpackage -d -uc -us' I have an error like this:

Code:
...
mkdir -p builddir
cd builddir && qmake-qt4 PREFIX=/usr ../my-test.pro
dh_testdir
# Add here commands to compile the package.
cd builddir && /bin/make
make[1]: Entering directory `/c/NokiaQtSDK/Maemo/home/User/my-test/builddir'

cd src/ && c:/NokiaQtSDK/Maemo/4.6.2/targets/fremantle-pr13/bin/qmake-qt4.exe c:
/NokiaQtSDK/Maemo/home/User/my-test/builddir/src/src.pro PREFIX=C:/NokiaQtSD
K/Maemo/4.6.2 -o Makefile
Cannot find file: c:/NokiaQtSDK/Maemo/home/User/my-test/builddir/src/src.pro
.
make[1]: *** [src/Makefile] Error 2
make[1]: Leaving directory `/c/NokiaQtSDK/Maemo/home/User/my-test/builddir'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
I have found the line in rules file:
Code:
...
builddir/Makefile: builddir
	cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
...
And it looks like 'qmake-qt4 PREFIX=/usr ../my-test.pro' works different in Ubuntu and MADDE.

In case of Ubuntu it does Makefile relative to parent folder, like this:
Code:
...
src/$(MAKEFILE): 
	@$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ 
	cd src/ && $(QMAKE) /home/maemo/workspace/my-test/src/src.pro -unix PREFIX=/usr -o $(MAKEFILE)
...
And in case of MADDE it looks relative to builddir folder:
Code:
...
src/$(MAKEFILE): 
	@$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ 
	cd src/ && $(QMAKE) c:/NokiaQtSDK/Maemo/home/User/my-test/builddir/src/src.pro PREFIX=C:/NokiaQtSDK/Maemo/4.6.2 -o $(MAKEFILE)
...
How I can build package in MADDE? Maybe I have to change rules file? How?
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#2
I am fairly new to programming for N900, but perhaps using the Nokia Qt SDK will work? It builds packages from QtCreator. It is also recommended to use if targeting the Ovi store.

From what I've read (and I may be misunderstood here), Madde is no longer needed. The Nokia Qt SDK 1.0 comes with QtCreator and everything else needed to target N900. There is also a preview version that has more features, Nokia Qt SDK 1.1

Good luck.

http://www.forum.nokia.com/info/sw.n...ia_Qt_SDK.html
 
Posts: 4 | Thanked: 0 times | Joined on Oct 2009
#3
Thanks for answer.

I'm not sure but I think NokiaQtSDK use MADDE (at least SDK included MADDE). I found that QtCreator has some limitations to build package http://talk.maemo.org/showthread.php?t=60709

Do you know something about possible problems with QtCreator?

BTW How to use QtCreator in commandline? (I have to do .bat file to build my project)
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:53.