[Gta04-owner] Building QtMoko v46

Neil Jerram neil at ossau.homelinux.net
Sat Aug 11 18:08:05 CEST 2012


Radek Polak <psonek2 at seznam.cz> writes:

> On Friday, August 10, 2012 06:07:16 PM Neil Jerram wrote:
>
>> Hmm, I'm seeing a surprising number of errors when compiling yberbrowser
>> - attached below.  Any ideas?
>
> Do you really have Qt 4.7 in qtopiacore/qt? Maybe you forgot:
>
> 	git submodule init
> 	git sudmodule update
>
> in qtmoko source dir?

I didn't forget that, but you are right that I didn't really have Qt 4.7
in qtopiacore/qt.

The reason is that - in order to try to leave my v45 tree untouched - I
did:

$ mkdir qtv46
$ rsync -a qtmoko qtv46/
$ cd qtv46/qtmoko/

and now only work within the qtv46/qtmoko tree.

But unfortunately this is completely scuppered by the Git submodules,
because

- each submodule has a '.git' file (not directory) which points to a
  location under my original (v45) tree

- in each such location, the 'config' file has a 'worktree = ' line that
  points into the original (v45) tree.

Therefore Git commands in a submodule in the new tree actually update
the old tree, and leave the new tree unchanged.

Grrr...  well, it's been said before that git submodules are still in
their early days....

I believe I've now fixed the situation, by doing s:qtmoko:qtv46/qtmoko:
in all those '.git' and 'config' files, followed by

$ git submodule update -f
$ cd qtopiacore/qt
$ git checkout HEAD -- .
$ git clean -f -d
$ cd ../../build
$ rm -rf *
$ ../qtmoko/configure -system-qt -device gta04 && make

and that build is now running.

There's one more thing that is worrying me.  I haven't yet uninstalled
the v45 toolchain, which is in /opt/toolchains, and I think that the v46
build might be picking this up instead of the new xapt toolchain.
/opt/toolchains is mentioned in the build output here:

  Running configure (qtopiacore)...
  /home/neil/qtv46/build/src/build/bin/pkgconfig:/opt/toolchains/arm920t-eabi/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/neil/qtv46/build/sdk/qtopiacore/host/bin
  configure -embedded arm -platform linux-g++ -xplatform /home/neil/qtv46/qtmoko/devices/gta04/mkspecs/qws/linux-neo-g++ -prefix /home/neil/qtv46/build/sdk/qtopiacore/target -make src -nomake tools -no-stl -no-exceptions -no-xmlpatterns -no-qt3support -no-glib -no-cups -no-dbus -no-accessibility -nomake examples -nomake demos -nomake docs -DQT_QWS_DISABLE_FLUSHCLIPPING -confirm-license -opensource -no-gtkstyle -no-scripttools -depths 8,16,18,24,32 -qconfig qpe -DQT_NO_PLUGIN_CHECK -DQT_EXTERNAL_SOUND_SERVER -DQT_QWS_KEYEVENT_SINGLECLIENT -force-pkg-config -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-sqlite_symbian -no-sql-tds -qt-sql-sqlite -release -no-gfx-qvfb -no-mouse-qvfb -no-kbd-qvfb -qt-gif -DMEDIA_SERVER -no-separate-debug-info -DQT_KEYPAD_NAVIGATION -dbus -qt-gfx-transformed -D_FORTIFY_SOURCE=0 -DQT_QWS_DYNAMIC_TRANSFORMATION -DQT_QWS_CLIENTBLIT -little-endian -qt-mouse-tslib

and also in the TOOLCHAIN value in devices/gta04/environment.

Would it be a problem to pick up the v45 toolchain?  How can I check if
that is happening?

Many thanks,
     Neil


More information about the Gta04-owner mailing list