User:Maartenweyn
From Openmoko
(Difference between revisions)
Maartenweyn (Talk | contribs) |
Maartenweyn (Talk | contribs) |
||
Line 28: | Line 28: | ||
export PATH+=:/opt/toolchans/arm920t-eabi/bin/ | export PATH+=:/opt/toolchans/arm920t-eabi/bin/ | ||
</pre> | </pre> | ||
− | apply ubuntu8.10 patch ( | + | apply ubuntu8.10 patch: |
+ | <pre | ||
+ | Index: qt-extended-4.4.1/src/libraries/qtopiabase/qmemoryfile_unix.cpp | ||
+ | =================================================================== | ||
+ | --- qt-extended-4.4.1/src/libraries/qtopiabase/qmemoryfile_unix.cpp~ 2009-02-16 16:52:12.000000000 +0100 | ||
+ | +++ qt-extended-4.4.1/src/libraries/qtopiabase/qmemoryfile_unix.cpp 2009-02-16 16:52:12.000000000 +0100 | ||
+ | @@ -127,7 +127,7 @@ | ||
+ | int f = ::open(tmpFile.toLatin1(), O_WRONLY); | ||
+ | |||
+ | if (!f) | ||
+ | - f = ::open(tmpFile.toLatin1(), O_CREAT | O_WRONLY); | ||
+ | + f = ::open(tmpFile.toLatin1(), O_CREAT | O_WRONLY, (S_IRUSR|S_IWUSR)); | ||
+ | |||
+ | if (f){ | ||
+ | fstat(f, &st); | ||
+ | </pre> | ||
+ | |||
+ | |||
<pre> | <pre> | ||
bin/qbuild | bin/qbuild | ||
Line 60: | Line 77: | ||
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 | + | if after sdk -i your neo says it can't find the ip of the host use the patch: |
+ | <pre> | ||
+ | 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 | ||
+ | } | ||
+ | </pre> |
Revision as of 12:36, 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:
<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 }