<font size=2 face="sans-serif">Hello Nikolaus,</font>
<br>
<br><font size=2 face="sans-serif">> I am already happy if that is</font>
<br><font size=2 face="sans-serif">> a strech goal and the initial goal
is to get in compile & run again on top of Debian</font>
<br><font size=2 face="sans-serif">> (like it was some time ago).</font>
<br>
<br><font size=2 face="sans-serif">Perhaps it's the easiest and fastest
way that I did with QtMoko V46 in August 2012, although it's the most stupid
one. Because so many people comlained about failed trials to build QtMoko
at that time and finally I intended to try it by myself, I did the following:</font>
<br>
<br><font size=2 face="sans-serif">- Using VM Workstation manager I created
a completely new and empty VM.</font>
<br>
<br><font size=2 face="sans-serif">- I began to follow Radek's readme step
by step in the way as I understood them.</font>
<br>
<br><font size=2 face="sans-serif">- After *each* step I took a snapshot
from the VM and created a precise protocol of these steps and the associated
snapshots.</font>
<br>
<br><font size=2 face="sans-serif">- Like many others on this list before
me, at some time I encountered the first build error.</font>
<br>
<br><font size=2 face="sans-serif">- I began to consider if the last steps
of Radek's readme that I had executed could somehow be understood in another
way.</font>
<br>
<br><font size=2 face="sans-serif">- After identifying such a possibility,
I used the VM workstation manager in order to remigrate to the appropriate
VM snapshot. Then I executed the alternative possibility of the step.</font>
<br>
<br><font size=2 face="sans-serif">- I stepped forward towards the next
steps, again precisely protocolling them and taking snapshots of the VM,
until I encountered the next build error.</font>
<br>
<br><font size=2 face="sans-serif">- I reiterated this procedure as long
until I succeeded.</font>
<br>
<br>
<br><font size=2 face="sans-serif">In the end it turned out that the essential
key was the sequence in that you need to do installations of software packages
and updates of these software packages. In particular it makes a big difference
if you do</font>
<br>
<br><font size=2 face="sans-serif"> - install A</font>
<br><font size=2 face="sans-serif"> - install B</font>
<br><font size=2 face="sans-serif"> - update</font>
<br>
<br><font size=2 face="sans-serif">or if you do</font>
<br>
<br><font size=2 face="sans-serif"> - install A</font>
<br><font size=2 face="sans-serif"> - update</font>
<br><font size=2 face="sans-serif"> - install B</font>
<br><font size=2 face="sans-serif"> - update</font>
<br>
<br>
<br><font size=2 face="sans-serif">In the end I published the final protocol
on this list and indeed other guys confirmed that this was working.</font>
<br>
<br>
<br><font size=2 face="sans-serif">But if you do so, please be also aware
of some completely unexpected reactions:</font>
<br><font size=2 face="sans-serif">Radek shot down almoust all of my explanations,
ranted and clamoured that he didn't like this and didn't like that what
I exposed, and not only refused to upload my guidance to his sourceforge
account, but even didn't reworked his own guidance in order to make it
clearer for others than himself.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Up to now I didn't commemorate this
old story, but because in the meanwhile it seems to be a severe show stopper
that noone exept Radek himself manages to get QtMoko compiling and unfortunately
I don't find the time to do that work again for V57 at the moment, I hereby
attach my guidance from V46 again in the hope that it might be useful for
someone. Possible abuses to me are useless, and all others have herewith
be warned...</font>
<br>
<br><font size=2 face="sans-serif">Best regards</font>
<br><font size=2 face="sans-serif"> Sven</font>
<br>
<br>
<br><font size=2 face="sans-serif">----------------------------------------------------------------%<----------------------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">Cross compling from sources</font>
<br><font size=2 face="sans-serif">===========================</font>
<br>
<br><font size=2 face="sans-serif">* You need to set up a system with Debian
Wheezy, using</font>
<br><font size=2 face="sans-serif"> </font><a href="http://cdimage.debian.org/mirror/cdimage/wheezy_di_alpha1/i386/iso-cd/debian-wheezy-DI-a1-i386-CD-1.iso"><font size=2 face="sans-serif">http://cdimage.debian.org/mirror/cdimage/wheezy_di_alpha1/i386/iso-cd/debian-wheezy-DI-a1-i386-CD-1.iso</font></a>
<br><font size=2 face="sans-serif"> and to get it up-to-date:</font>
<br>
<br><font size=2 face="sans-serif">apt-get update</font>
<br>
<br><font size=2 face="sans-serif">* Install Qt with XLib</font>
<br><font size=2 face="sans-serif"> This must be done BEFORE installing
the emdebian toolchain because otherwise you'll get</font>
<br><font size=2 face="sans-serif"> version conflicts between Wheezy
and Squeeze, resulting in compile errors while doing</font>
<br><font size=2 face="sans-serif"> the "qtmoko/configure"
command.</font>
<br>
<br><font size=2 face="sans-serif">apt-get build-dep libqt4-dev</font>
<br><font size=2 face="sans-serif">apt-get install libqt4-dev libv4l-dev
libdbus-1-dev libqt4-sql-sqlite</font>
<br>
<br><font size=2 face="sans-serif">* Use emdebian toolchain</font>
<br><font size=2 face="sans-serif"> Add emdebian apt repos and also
sqeeze repos for older packages according to</font>
<br><font size=2 face="sans-serif"> </font><a href=http://wiki.debian.org/EmdebianToolchain><font size=2 face="sans-serif">http://wiki.debian.org/EmdebianToolchain</font></a>
<br>
<br><font size=2 face="sans-serif">apt-get install emdebian-archive-keyring</font>
<br><font size=2 face="sans-serif">echo "deb </font><a href=http://ftp.cz.debian.org/debian/><font size=2 face="sans-serif">http://ftp.cz.debian.org/debian/</font></a><font size=2 face="sans-serif">
squeeze main contrib non-free" >> /etc/apt/sources.list</font>
<br><font size=2 face="sans-serif">echo "deb </font><a href=http://www.emdebian.org/debian><font size=2 face="sans-serif">http://www.emdebian.org/debian</font></a><font size=2 face="sans-serif">
wheezy main" >> /etc/apt/sources.list</font>
<br><font size=2 face="sans-serif">apt-get update</font>
<br>
<br><font size=2 face="sans-serif">* Install armel cross compiler:</font>
<br>
<br><font size=2 face="sans-serif">apt-get install g++-4.4-arm-linux-gnueabi</font>
<br>
<br><font size=2 face="sans-serif">* Install xapt and libraries qtmoko
depens on:</font>
<br>
<br><font size=2 face="sans-serif">apt-get install xapt</font>
<br><font size=2 face="sans-serif">xapt -a armel -m libqt4-dev libts-dev
libasound2-dev libspeexdsp-dev libssl-dev libxtst-dev libbluetooth-dev
libdbus-1-dev</font>
<br>
<br><font size=2 face="sans-serif">* Make link for dbus.h:</font>
<br>
<br><font size=2 face="sans-serif">cd /usr/arm-linux-gnueabi/include</font>
<br><font size=2 face="sans-serif">ln -s dbus-1.0/dbus dbus</font>
<br><font size=2 face="sans-serif">cd -</font>
<br>
<br><font size=2 face="sans-serif">* Install git:</font>
<br>
<br><font size=2 face="sans-serif">apt-get install git</font>
<br>
<br><font size=2 face="sans-serif">* Clone current git tree:</font>
<br><font size=2 face="sans-serif"> Note: When you fetch from a git
repository, you get the entire commit history</font>
<br><font size=2 face="sans-serif"> at least for the branch that
you asked for. This may include other tags that you</font>
<br><font size=2 face="sans-serif"> did not ask for explicitly. When
you do "git fetch <your-remote>" *without*</font>
<br><font size=2 face="sans-serif"> specifying a branch or tag, git
will fetch *all* branches.</font>
<br><font size=2 face="sans-serif"> Looks like QtMoko uses submodules
that use submodules. Git submodule commands</font>
<br><font size=2 face="sans-serif"> are still in their infancy, I'd
say, so expect some warts. Where the installed</font>
<br><font size=2 face="sans-serif"> git supports it, I usually use
"git submodule init" (initial checkout) or "git</font>
<br><font size=2 face="sans-serif"> submodule sync" (subsequent
checkouts), followed by "git submodule --init</font>
<br><font size=2 face="sans-serif"> --recursive". Check the
documentation.</font>
<br>
<br><font size=2 face="sans-serif">git clone git://github.com/radekp/qtmoko.git</font>
<br>
<br><font size=2 face="sans-serif"> Note: Creates a local tracking
branch for "master" only!</font>
<br><font size=2 face="sans-serif"> (As can be checked with "git
branch" within subdirectory "qtmoko".)</font>
<br>
<br><font size=2 face="sans-serif">* Get a tracking branch for "master_gta04":</font>
<br>
<br><font size=2 face="sans-serif">cd qtmoko</font>
<br><font size=2 face="sans-serif">git checkout master_gta04</font>
<br><font size=2 face="sans-serif">git pull</font>
<br>
<br><font size=2 face="sans-serif">* Initialize and update submodules</font>
<br><font size=2 face="sans-serif"> To ensure a consistent state
of your directory tree,</font>
<br><font size=2 face="sans-serif"> you need to issue all three submodule
commands *after* every change of branch (checkout).</font>
<br><font size=2 face="sans-serif"> When the sync command and init
option are not used upon subsequent checkouts,</font>
<br><font size=2 face="sans-serif"> "git submodule update"
can "get stuck" and refuse to proceed because of "unknown
commits".</font>
<br><font size=2 face="sans-serif"> After "git submodule init"
and "git submodule update" the "qtopiacore/qt"-directory
should be populated with Qt sources.</font>
<br><font size=2 face="sans-serif"> This directory and few others
are git submodules so that we can track easily the upstream - you can even
see it on github:</font>
<br><font size=2 face="sans-serif"> </font><a href=https://github.com/radekp/qtmoko/tree/master/qtopiacore><font size=2 face="sans-serif">https://github.com/radekp/qtmoko/tree/master/qtopiacore</font></a>
<br>
<br><font size=2 face="sans-serif">git submodule init</font>
<br><font size=2 face="sans-serif">git submodule sync</font>
<br><font size=2 face="sans-serif">git submodule update</font>
<br>
<br><font size=2 face="sans-serif">* Create build directory (you can't
build from the git directory):</font>
<br>
<br><font size=2 face="sans-serif">mkdir ../build</font>
<br><font size=2 face="sans-serif">cd ../build</font>
<br>
<br><font size=2 face="sans-serif">* Build it:</font>
<br>
<br><font size=2 face="sans-serif">../qtmoko/configure -system-qt -device
gta04</font>
<br><font size=2 face="sans-serif">make</font>
<br><font size=2 face="sans-serif">make install</font>
<br>
<br><font size=2 face="sans-serif">* Create archive "qtmoko-update.tar.gz",
move it to "root@192.168.0.202:/" and extract it there to "/opt/qtmoko":</font>
<br>
<br><font size=2 face="sans-serif">../qtmoko/devices/gta04/scripts/update_qtmoko</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">===SUCCESS===SUCCESS===SUCCESS===SUCCESS===SUCCESS===SUCCESS===SUCCESS===SUCCESS===SUCCESS===SUCCESS===</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">* If you want translations to various
languages you need to checkout the translations git branch:</font>
<br>
<br><font size=2 face="sans-serif">git checkout origin/translations -b
translations</font>
<br>
<br><font size=2 face="sans-serif">---------------------------------------------------------------->%----------------------------------------------------------------------------------------</font>
<br>