User:Maartenweyn

From Openmoko

(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
Install Ubuntu 8.10, then in console:
 
Install Ubuntu 8.10, then in console:
  
 
+
<pre>
 
sudo aptitude update
 
sudo aptitude update
 
sudo aptitude upgrade
 
sudo aptitude upgrade
Line 12: Line 12:
 
sudo aptitude install thttpd
 
sudo aptitude install thttpd
 
sudo aptitude install patch
 
sudo aptitude install patch
 
+
</pre>
 
+
<pre>
 
cd /opt
 
cd /opt
 
wget http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz
 
wget http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz
Line 27: Line 27:
  
 
export PATH+=:/opt/toolchans/arm920t-eabi/bin/
 
export PATH+=:/opt/toolchans/arm920t-eabi/bin/
 
+
</pre>
 
apply ubuntu8.10 patch (attachment)
 
apply ubuntu8.10 patch (attachment)
 
+
<pre>
 
bin/qbuild
 
bin/qbuild
 
bin/qbuild image
 
bin/qbuild image
Line 41: Line 41:
 
ln -s /opt/Qtopia/build/sdk/ /opt/Qtopia/build/sdk/sdk  
 
ln -s /opt/Qtopia/build/sdk/ /opt/Qtopia/build/sdk/sdk  
 
cp $QTOPIA_DEPOT_PATH/bin/mkPackages /opt/Qtopia/SDK/scripts
 
cp $QTOPIA_DEPOT_PATH/bin/mkPackages /opt/Qtopia/SDK/scripts
}}}
+
</pre>
 +
 
 
add the following code in front of /opt/QtExtended/build/scripts/sdk/functions:
 
add the following code in front of /opt/QtExtended/build/scripts/sdk/functions:
  
 
+
<pre>
 
#!/bin/bash
 
#!/bin/bash
 
version()
 
version()
Line 55: Line 56:
 
}
 
}
 
#!/bin/sh
 
#!/bin/sh
 
+
</pre>
  
 
Adapt system config to have usb networking ready http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others
 
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 (functions.patch)
 
if after sdk -i your neo says it can't find the ip of the host use the patch (functions.patch)

Revision as of 12:34, 22 February 2009

Buidling 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 (attachment)

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 (functions.patch)

Personal tools

Buidling 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 (attachment)

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 (functions.patch)