maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Maemo 6 loosing source compatibility with plain Qt, and Symbian^4 (https://talk.maemo.org/showthread.php?t=34686)

daperl 2010-10-28 14:02

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by egoshin (Post 854177)
I used QT 4.7.0 from PR.1.3 and build in accordance with your instructions passed up to creating bin/qmake. Good! It failed just after that on absence of X11 libs.

I am going to recreate the rest of binaries (moc etc).

But just one question - zrules.txt misses some parameters in comparison with debian/rules, like "-graphicssytem raster" or "-phonon" or "no-rpath". Do I need to add that to zrules.txt?

zrules.txt was a hack. I think my one line fix to configure is the better solution. At least for building the armel tools. So, maybe ignore zrules.txt.

I haven't tried building Qt in PR1.3 yet, but I was able to fix some other compile errors for 1.2. However, that just opened a can of worms that maybe revealed a deeper issue. Anyway, I'll try building 4.7 when I get a moment, and if the build fails as it did in 1.2, I'll post some details here.

egoshin 2010-10-28 16:23

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by daperl (Post 855289)
zrules.txt was a hack. I think my one line fix to configure is the better solution. At least for building the armel tools. So, maybe ignore zrules.txt.

Where is "one line fix"? Changing linux-g++-maemo? In any case it requires running "configure" and it's parameters issue is still here.

BTW, in 4.7.0 it seems fixed and now I bump into "absense" of XLib. It doesn't elaborate which kind of xlib it needs - run time or developer build time. Or it may just absence of /usr/X11R6/lib...

daperl 2010-10-28 17:02

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by egoshin (Post 855498)
Where is "one line fix"? Changing linux-g++-maemo? In any case it requires running "configure" and it's parameters issue is still here.

Make the one line configure fix and then let the debian tools do all the work.

From scratchbox in the FREMANTLE_ARMEL target:

Code:

mkdir qt
chdir qt
apt-get source libqt4-dev
chdir qt4-x11-4.7.0~git20100909
sed -i 's/linux-host-g++/linux-g++-maemo5/' configure
dpkg-buildpackage -b -d -nc -rfakeroot

No other changes are needed in order to create qmake moc rcc and uic.

daperl 2010-10-28 17:12

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
And don't forget to do the following:

Code:

fakeroot apt-get build-dep libqt4-dev

egoshin 2010-10-28 18:55

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by daperl (Post 855552)
Make the one line configure fix and then let the debian tools do all the work.

From scratchbox in the FREMANTLE_ARMEL target:

Code:

mkdir qt
chdir qt
apt-get source libqt4-dev
chdir qt4-x11-4.7.0~git20100909
sed -i 's/linux-host-g++/linux-g++-maemo5/' configure
dpkg-buildpackage -b -d -nc -rfakeroot

No other changes are needed in order to create qmake moc rcc and uic.

dpkg-buildpackage doesn't work because there is reference to /usr/share/cdbs/ files in debian/rule. Which package does it use - cdbs or cdbs-dh7? Or maemo-cflags-cdbs-rules?

egoshin 2010-10-28 19:11

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by daperl (Post 855568)
And don't forget to do the following:

Code:

fakeroot apt-get build-dep libqt4-dev

This program was written somebody worked with Microsoft - it says:

E: Build-dependencies for libqt4-dev could not be satisfied.

without elaboration and sign of more extensive diagnostic.

daperl 2010-10-29 01:02

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by egoshin (Post 855718)
This program was written somebody worked with Microsoft - it says:

E: Build-dependencies for libqt4-dev could not be satisfied.

without elaboration and sign of more extensive diagnostic.

How did you upgrade your scratchbox? After commenting out all the extras repositories, here's what I did:

Code:

apt-get update
fakeroot apt-get upgrade

I then installed all the held back packages and I ran

Code:

fakeroot apt-get upgrade
until it said there were no more held back packages.

daperl 2010-10-29 01:33

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Awesome, the other build errors are gone in 1.3. Here's the debian/rules diff needed to complete the build:

Code:

--- debian/rules.orig        2010-10-27 01:04:40.140719086 +0100
+++ debian/rules        2010-10-27 01:03:16.552666520 +0100
@@ -52,7 +52,7 @@
        HOST_EXCLUDES=-X/moc -X/rcc -X/uic -X/qmake -X/lrelease
        EXTRA_STRIP_ARGS=$(HOST_EXCLUDES)
        EXTRA_HOST_STRIP_ARGS=--strip-all bin/moc bin/rcc bin/uic bin/qmake bin/lrelease
-        HOST_MKSPEC=-spec $(CURDIR)/mkspecs/linux-host-g++
+        HOST_MKSPEC=-spec $(CURDIR)/mkspecs/linux-g++-maemo5
 else
        HOST_EXCLUDES=
        GL_BACKEND=desktop
@@ -118,7 +118,7 @@
 common-build-arch:: build-dbus-tools build-linguist-tools build-maemo5-examples strip-host-tools build-uitools build-qml-tool
 
 strip-host-tools:
-        if [ -n "$(EXTRA_HOST_STRIP_ARGS)" ] ; then host-strip $(EXTRA_HOST_STRIP_ARGS) ; fi
+        if [ -n "$(EXTRA_HOST_STRIP_ARGS)" ] ; then strip $(EXTRA_HOST_STRIP_ARGS) ; fi
 
 build-dbus-tools:
        bin/qmake -o tools/qdbus/qdbusxml2cpp/Makefile tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.pro

And here's the result:

Code:

-rw-r--r-- 1 maemo maemo  9898818 Oct 27 01:13 libqt4-core-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1541266 Oct 27 01:13 libqt4-core_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1995710 Oct 27 01:15 libqt4-dbus-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  230152 Oct 27 01:15 libqt4-dbus_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo 14842646 Oct 27 01:16 libqt4-declarative-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1425932 Oct 27 01:16 libqt4-declarative_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  5897106 Oct 27 01:16 libqt4-dev_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo 42749090 Oct 27 01:14 libqt4-gui-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  5035830 Oct 27 01:13 libqt4-gui_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  554966 Oct 27 01:16 libqt4-maemo5-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  206572 Oct 27 01:16 libqt4-maemo5-examples_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo    29798 Oct 27 01:16 libqt4-maemo5_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  840278 Oct 27 01:16 libqt4-multimedia-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo    64888 Oct 27 01:16 libqt4-multimedia_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  6236302 Oct 27 01:14 libqt4-network-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  618632 Oct 27 01:14 libqt4-network_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  2745624 Oct 27 01:16 libqt4-opengl-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo    1454 Oct 27 01:16 libqt4-opengl-dev_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  221480 Oct 27 01:16 libqt4-opengl_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  3338876 Oct 27 01:16 libqt4-phonon-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  242438 Oct 27 01:16 libqt4-phonon_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo 19667124 Oct 27 01:14 libqt4-script-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1363486 Oct 27 01:14 libqt4-script_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1020768 Oct 27 01:14 libqt4-sql-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  165326 Oct 27 01:14 libqt4-sql-sqlite-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo    21482 Oct 27 01:14 libqt4-sql-sqlite_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  100724 Oct 27 01:14 libqt4-sql_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1708854 Oct 27 01:14 libqt4-svg-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  175042 Oct 27 01:14 libqt4-svg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  503944 Oct 27 01:15 libqt4-test-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo    59552 Oct 27 01:15 libqt4-test_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  746740 Oct 27 01:13 libqt4-translations_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1293596 Oct 27 01:15 libqt4-webkit-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  6047210 Oct 27 01:15 libqt4-webkit_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  438090 Oct 27 01:15 libqt4-xml-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  115474 Oct 27 01:15 libqt4-xml_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo 23883406 Oct 27 01:15 libqt4-xmlpatterns-dbg_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  1622994 Oct 27 01:15 libqt4-xmlpatterns_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-r--r-- 1 maemo maemo  180516 Oct 27 01:16 qt4-declarative-qmlviewer_4.7.0~git20100909-0maemo1+0m5_armel.deb
-rw-rw-r-- 1 maemo maemo    7302 Oct 27 01:16 qt4-x11_4.7.0~git20100909-0maemo1+0m5_armel.changes

Don't mind my time stamps; my settings inside my Ubuntu VM are off.

egoshin 2010-10-29 03:50

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by daperl (Post 856039)
How did you upgrade your scratchbox?

I run on N900. It is a reason why I need ARMEL binaries of qmake/moc/etc

daperl 2010-10-29 04:30

Re: Maemo 6 loosing source compatibility with plain Qt, and Symbian^4
 
Quote:

Originally Posted by egoshin (Post 856125)
I run on N900. It is a reason why I need ARMEL binaries of qmake/moc/etc

Me too, I upgraded my on-device sdk the same way I described above. Here's the answer to your earlier question:

Code:

(chroot)root@Nokia-N900:/
# dpkg -l|grep -i cdbs
ii  cdbs                                  0.4.48-0osso2                  common build system for Debian packages



All times are GMT. The time now is 12:16.

vBulletin® Version 3.8.8