User:Maartenweyn

From Openmoko

(Difference between revisions)
Jump to: navigation, search
Line 92: Line 92:
 
  }
 
  }
 
</pre>
 
</pre>
 +
 +
<h1>Start developping</h1>
 +
<h2>To deploy example to Neo</h2>
 +
copy the files of the example in a directory, then:
 +
<pre>
 +
source /opt/Qtopia/SDK/scripts/devel-neo.sh
 +
qtopiamake
 +
make clean
 +
make
 +
sdk -p
 +
sdk -i
 +
</pre>
 +
 +
<h2>Deploy your own program</h2>
 +
Make sure your pro file is called qbuild.pro and make sure it contains all necessary data (this changed towards Qtopia, since qbuild.bin is now used).
 +
More info can be found on: http://swik.net/Qtopia+qt

Revision as of 12:41, 22 February 2009

Contents

Building QtExtended 4.4.1 SDK From Scratch

Install Ubuntu 8.10, then in console:

sudo aptitude update
sudo aptitude upgrade
sudo aptitude install kde-devel
sudo aptitude install kde-devel-extras
sudo aptitude install qt4-dev-tools
sudo aptitude install g++
sudo aptitude install thttpd
sudo aptitude install patch
cd /opt
wget http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz
tar xzvf arm920t-eabi.tgz /
mkdir /opt/Qtopia
cd /opt/Qtopia
wget http://qtextended.org/downloads/release/qt-extended-opensource-src-4.4.1.tar.gz
tar xvzf qt-extended-opensource-src-4.4.1.tar.gz
mkdir build
cd build
export QTOPIA_DEPOT_PATH=/opt/Qtopia/qt-extended-4.4.1
$QTOPIA_DEPOT_PATH/configure -modules location,cell,telephony -device neo

export PATH+=:/opt/toolchans/arm920t-eabi/bin/

apply ubuntu8.10 patch:



<pre>
bin/qbuild
bin/qbuild image
bin/qbuild sdk

mkdir /opt/Qtopia/SDK/4.4.1 -p
/opt/Qtopia/build$ ln -s /opt/Qtopia/build/scripts/sdk/scripts/ /opt/Qtopia/SDK/scripts
cp /opt/Qtopia/SDK/scripts/devel- /opt/Qtopia/SDK/scripts/devel-neo.sh
echo "Device: neo" > /opt/Qtopia/SDK/versioninfo
ln -s /opt/Qtopia/build/ /opt/Qtopia/SDK/4.4.1/neo
ln -s /opt/Qtopia/build/sdk/ /opt/Qtopia/build/sdk/sdk 
cp $QTOPIA_DEPOT_PATH/bin/mkPackages /opt/Qtopia/SDK/scripts

add the following code in front of /opt/QtExtended/build/scripts/sdk/functions:

#!/bin/bash
version()
{
echo "4.4.1"
}
qt_version()
{
echo "4.4.3"
}
#!/bin/sh

Adapt system config to have usb networking ready http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others

if after sdk -i your neo says it can't find the ip of the host use the patch:

Index: /opt/Qtopia/SDK/scripts/functions
===================================================================
--- /opt/Qtopia/SDK/scripts/functions~ 2009-02-17 10:57:14.000000000 +0100
+++ /opt/Qtopia/SDK/scripts/functions 2009-02-17 10:57:14.000000000 +0100
@@ -57,7 +57,7 @@
 {
   if [ -n "$HOSTDEVNODE" ] ; then
     # prints host ip address
-    /sbin/ifconfig eth0|grep inet[^6]|awk 'BEGIN{FS=":"}{print $2}'|awk '{print $1}'
+    /sbin/ifconfig usb0|grep inet[^6]|awk 'BEGIN{FS=":"}{print $2}'|awk '{print $1}'
   fi
 }

Start developping

To deploy example to Neo

copy the files of the example in a directory, then:

source /opt/Qtopia/SDK/scripts/devel-neo.sh
qtopiamake
make clean
make
sdk -p
sdk -i

Deploy your own program

Make sure your pro file is called qbuild.pro and make sure it contains all necessary data (this changed towards Qtopia, since qbuild.bin is now used). More info can be found on: http://swik.net/Qtopia+qt

Personal tools

Building QtExtended 4.4.1 SDK From Scratch

Install Ubuntu 8.10, then in console:

sudo aptitude update
sudo aptitude upgrade
sudo aptitude install kde-devel
sudo aptitude install kde-devel-extras
sudo aptitude install qt4-dev-tools
sudo aptitude install g++
sudo aptitude install thttpd
sudo aptitude install patch
cd /opt
wget http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz
tar xzvf arm920t-eabi.tgz /
mkdir /opt/Qtopia
cd /opt/Qtopia
wget http://qtextended.org/downloads/release/qt-extended-opensource-src-4.4.1.tar.gz
tar xvzf qt-extended-opensource-src-4.4.1.tar.gz
mkdir build
cd build
export QTOPIA_DEPOT_PATH=/opt/Qtopia/qt-extended-4.4.1
$QTOPIA_DEPOT_PATH/configure -modules location,cell,telephony -device neo

export PATH+=:/opt/toolchans/arm920t-eabi/bin/

apply ubuntu8.10 patch:



<pre>
bin/qbuild
bin/qbuild image
bin/qbuild sdk

mkdir /opt/Qtopia/SDK/4.4.1 -p
/opt/Qtopia/build$ ln -s /opt/Qtopia/build/scripts/sdk/scripts/ /opt/Qtopia/SDK/scripts
cp /opt/Qtopia/SDK/scripts/devel- /opt/Qtopia/SDK/scripts/devel-neo.sh
echo "Device: neo" > /opt/Qtopia/SDK/versioninfo
ln -s /opt/Qtopia/build/ /opt/Qtopia/SDK/4.4.1/neo
ln -s /opt/Qtopia/build/sdk/ /opt/Qtopia/build/sdk/sdk 
cp $QTOPIA_DEPOT_PATH/bin/mkPackages /opt/Qtopia/SDK/scripts

add the following code in front of /opt/QtExtended/build/scripts/sdk/functions:

#!/bin/bash
version()
{
echo "4.4.1"
}
qt_version()
{
echo "4.4.3"
}
#!/bin/sh

Adapt system config to have usb networking ready http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others

if after sdk -i your neo says it can't find the ip of the host use the patch:

Index: /opt/Qtopia/SDK/scripts/functions
===================================================================
--- /opt/Qtopia/SDK/scripts/functions~ 2009-02-17 10:57:14.000000000 +0100
+++ /opt/Qtopia/SDK/scripts/functions 2009-02-17 10:57:14.000000000 +0100
@@ -57,7 +57,7 @@
 {
   if [ -n "$HOSTDEVNODE" ] ; then
     # prints host ip address
-    /sbin/ifconfig eth0|grep inet[^6]|awk 'BEGIN{FS=":"}{print $2}'|awk '{print $1}'
+    /sbin/ifconfig usb0|grep inet[^6]|awk 'BEGIN{FS=":"}{print $2}'|awk '{print $1}'
   fi
 }

Start developping

To deploy example to Neo

copy the files of the example in a directory, then:

source /opt/Qtopia/SDK/scripts/devel-neo.sh
qtopiamake
make clean
make
sdk -p
sdk -i

Deploy your own program

Make sure your pro file is called qbuild.pro and make sure it contains all necessary data (this changed towards Qtopia, since qbuild.bin is now used). More info can be found on: http://swik.net/Qtopia+qt