GITs

From QtMoko

Jump to: navigation, search

Danish Deutsch English Esperanto Français Italiano Nederlands Sardu Español


Here you can find all files you need to compile QtMoko. Also check http://github.com/radekp/qtmoko/blob/master/README

Contents

[edit] Where are sources? (using git)

Url Owner
http://github.com/radekp/qtmoko/tree Radekp (Main developer)
http://github.com/liedekef/qtmoko/tree liekedef (master)
http://github.com/Fale/qtmoko/tree Fale (Italian)
http://github.com/FilipBE/qtextended/tree FilipBE
http://github.com/lpotter/qtmoko/tree Lpotter

[edit] How to obtain QtMoko sources with git

Install git-core as follows:

sudo apt-get install git-core

To speed-up python scripts running you may wish to install also python-psyco JIT compiler:

sudo apt-get install python-psyco

These commands you need to use to have QtMoko sources on your computer (example below uses radekp git):

user [~] : mkdir ~/mysources
user [~] : cd ~/mysources
user [~/mysources] : git clone git://github.com/radekp/qtmoko.git

You should download not only one thing, you have to download everything.

Here are the commands to get QtMoko submodules :

user [~/mysources] : cd qtmoko
user [~/mysources/qtmoko] : git submodule init 
user [~/mysources/qtmoko] : git submodule update

[edit] How to prepare your build host

[edit] Ubuntu 10.04 (x86 and x86_64)

Install required packages:

sudo apt-get install qt4-qmake libqt4-dev pkg-config libxext-dev libmpfr1ldbl

"Install" arm toolchain to the expected location:

cd /
sudo wget http://sourceforge.net/projects/qtmoko/files/qtmoko-debian-toolchain-armv4t-eabi.tar.gz/download
sudo tar xzvpf qtmoko-debian-toolchain-armv4t-eabi.tar.gz
sudo rm qtmoko-debian-toolchain-armv4t-eabi.tar.gz

For 64-bit host you also need libmpfr and libgmp 32-bit libs. You can grab them this way:

sudo apt-get install lib32gmp3
cd /tmp/
wget http://frozenfox.freehostia.com/cappy/getlibs
sudo sh getlibs -l libmpfr.so.1
[Accept and then you can]
rm getlibs

(32-bit version of libgmp3 is nicely packaged for 64-bit system, but mpfr is not, so you need to either get it manually or use getlibs as mentioned above).

[edit] Debian 5.0.4 (x86)

Install required packages:

sudo apt-get install qt4-qmake libqt4-dev libxext-dev

"Install" arm toolchain to the expected location:

cd /tmp
wget http://sourceforge.net/projects/qtmoko/files/qtmoko-debian-toolchain-armv4t-eabi.tar.gz/download
tar -xzf qtmoko-debian-toolchain-armv4t-eabi.tar.gz
sudo mv ./opt/toolchains /opt
rm -rf ./opt

Consult notes for Ubuntu if you use a 64-bit systems.

[edit] How to configure and create QtMoko from sources

This is how to obtain source code. If you wish just use QtMoko on your phone please read Installation page. If you wish to compile these sources you have to execute at least these commands:

Make sure you have g++ installed:

sudo apt-get install g++

Configuring QtMoko is not so difficult. You need to configure your sources and then compile them. Nothing special. If you're not friendly with your shell these are essential commands you need to type:

user [/mysources] : mkdir build
user [/mysources] : cd build
user [/mysources/build] : ../qtmoko/configure -device neo -D _FORTIFY_SOURCE=0 -confirm-license -rtti
user [/mysources/build] : make
user [/mysources/build] : make image

It is possible to customize your configuration.

# Configuration settings for Qt:
user [/mysources/build] : ../qtmoko/configure -help

# Configuration settings for Qt-Extended / Qt-Embedded:
user [/mysources/build] : ../qtopiacore/qt/configure -help]]

You can also read online pages of :

../qtmoko/configure -help Pages from Qt Extended Site (Version 4.4)
../qtmoko/qt/configure -help pages Pages from Qt Extended Site (Version 4.4)
../qtmoko/qt/configure -embedded -help pages Pages from Qt Extended Site (Version 4.4)


If you find some troubles compiling or configurating QtMoko sources you can easy connect to #qtmoko chat channel on freenode.

[edit] What now? (Run Qtopia)

Once your make image is ready you can run it. How to?

[edit] Running on your host

The command you did creates a new folder named image. Inside it there are all files needed to run qtopia system. If you choose to build for an x86 cpu you can easy play with Qtopia calling runqtopia script from bin dir:

user [/mysources/build] : ./bin/runqtopia

File:Screenshot0.png File:Screenshot0a.png

Nice job!


[edit] Running on Neo

If you choose to create an image for your Neo device, your image folder does not contain executable files for your host. This folder needs to be put on your Neo device. More informations can be found on Qt Extended Building pages. Keep in mind that the version you create by default runs only on your x86 host. To create an image that can work on your Neo, you must configure your QtMoko sources as described in this page.



[edit] Do not forget..

A bugbuster is always needed. But do not forget to ping us also if everything goes good, not just when things don't go as expected. I mean..

Anyway.. You can meet community and developpers on chat channel.. But also.. (TO BE COMPLETED...)

Retrieved from "http://qtmoko.org/wiki/GITs"
Personal tools
Navigation