View Single Post
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?