[Gta04-owner] Sources of QtMoko2
H. Nikolaus Schaller
hns at goldelico.com
Wed Apr 4 13:44:27 CEST 2018
Hi Sven,
> Am 04.04.2018 um 13:23 schrieb Sven Dyroff <S.Dyroff at phytec.de>:
>
> Hello Andreas and Nikolaus,
>
> > Same for qte (which I have recently updated):
> >
> > http://git.goldelico.com/?p=qtmoko2-qte.git;a=blob;f=README.md;h=e70e57bdda7a69d28d79c1a0b78d6726245d7242;hb=refs/heads/master
>
> Meanwhile I downloaded the sources of QtMoko2 by having executed the recommended "git clone git://git.goldelico.com/qtmoko2-qte.git".
Ah, that is qte - just a "future" part of qtmoko2.
QtMoko is currently a nasty beast of mixed projects (git submodule)...
It *includes* a copy of qte. qtmoko2-qte is just this part - without apps etc.
So you should clone from http://git.goldelico.com/?p=gta04-qtmoko.git;a=summary
>
> > I found the piece of suspicious code:
> >
> > in src/libraries/accelerometer/accelerometers.cpp
> > char gta04_accel_file[] = "/dev/input/event1";
>
> I cannot find it. Searching all of the downloaded 582 MB / 51421 files for "gta04_accel_file" returns no results. Searching for "/dev/input/event1" returns three results which don't have anything to do with QtMaze or accelerators.
>
>
> Furthermore https://wiki.debian.org/CrossToolchains#Installation doesn't help. Trying to execute "sudo apt-get install gcc-4.9-armel-cross" or "sudo apt-get install gcc-defaults-armel-cross" under Ubuntu 14.04 or 16.04 returns "packet not found". Same is true with "sudo apt-get install pkg-config debhelper libz-dev:armhf libsqlite3-dev:armhf libglib2.0-dev:armhf libgstreamer0.10-dev:armhf libgstreamer-plugins-base0.10-dev:armhf": Not at least one of the mentioned packets can be found.
I can confirm that. We also gave up after some months trying to cross-compile anything. So please stay native :)
The approach is to use an ARM based SBC. I use omap5-evm while Andreas IMHO uses a cubietruck.
You could also use an GTA04/BeagleBoard/BeagleBone but it is painfully slow (even with ccache).
You need to run on a big enough SD card (I had 32 GB which is more than enough for first steps, but upgraded to 200GB).
Anyways the basic steps are:
* debootstrap a fresh wheezy or jessie for ARM On the SBC into some working directory (e.g. /debian-wheezy-armhf-qtmoko-build)
* chroot into this (ideally with /proc and /sys mounted)
* do all builds inside the chroot
* apt-get update
* install developer tools
* setup ccache and swap if needed
* git clone
* git submodule init & update
* install build dependencies (dev libs)
* dpkg-buildpackage
There are some shell scrips (qtmoko-chroot-armhf.sh) by Radek but they didn't work for me.
Hope this helps (and is also some starting point for an up-to-date documentation for the Wiki).
BR,
Nikolaus
More information about the Gta04-owner
mailing list