<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2432007612587478551</id><updated>2026-07-27T21:25:19.312-07:00</updated><category term="arm"/><category term="mini2440"/><category term="qtopia"/><category term="x86qtopia"/><category term="embedded"/><category term="friendlyarm"/><category term="setup"/><title type='text'>Equally Bad</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://equallybad.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2432007612587478551/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://equallybad.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>impossible</name><uri>http://www.blogger.com/profile/16573952810886802151</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2432007612587478551.post-5025116506633727629</id><published>2010-04-11T13:07:00.000-07:00</published><updated>2010-04-11T13:19:04.400-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arm"/><category scheme="http://www.blogger.com/atom/ns#" term="mini2440"/><category scheme="http://www.blogger.com/atom/ns#" term="qtopia"/><category scheme="http://www.blogger.com/atom/ns#" term="x86qtopia"/><title type='text'>x86-qtopia and arm-qtopia build scripts</title><content type='html'>To hopefully address some of the issues people have had with the x86qtopia build, I&#39;m posting the build scripts that I&#39;ve used.  &lt;br /&gt;
&lt;br /&gt;
For each file, you may need to chmod and possibly chown the files.  For example:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;/opt/FriendlyARM/mini2440/arm-qtopia$ sudo chmod +x build*&lt;br /&gt;
/opt/FriendlyARM/mini2440/arm-qtopia$ sudo chown [youruser]:[yourgroup] build*&lt;br /&gt;
&lt;/div&gt;and&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;/opt/FriendlyARM/mini2440/x86-qtopia$ sudo chmod +x build*&lt;br /&gt;
/opt/FriendlyARM/mini2440/x86-qtopia$ sudo chown [youruser]:[yourgroup] build*&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;x86qtopia&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
/opt/FriendlyARM/mini2440/x86-qtopia/build:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#rm -fr qtopia-2.2.0-FriendlyARM&lt;br /&gt;
#tar xfvz qtopia-2.2.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd qtopia-2.2.0-FriendlyARM&lt;br /&gt;
&lt;br /&gt;
echo yes | ./configure -qte &#39;-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -gif&#39; -qpe &#39;-edition pda -displaysize 240x320  -fontfamilies &quot;helvetica fixed micro smallsmooth smoothtimes&quot;&#39; -qt2 &#39;-no-opengl -no-xft&#39; -dqt &#39;-no-xft -thread&#39;&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
/bin/rm qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/lib/fonts/helvetica_* &lt;br /&gt;
#tar xfvz fonts.tar.gz -C qtopia-2.2.0-FriendlyARM/qtopia/image&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
/opt/FriendlyARM/mini2440/x86-qtopia/build-all:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
./build&lt;br /&gt;
./build-konq&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
/opt/FriendlyARM/mini2440/x86-qtopia/build-konq:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#tar xfvz konq.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd konq&lt;br /&gt;
source /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv&lt;br /&gt;
CC=arm-linux-gcc CXX=arm-linux-g++  LDFLAGS=-ldl CROSS_COMPILE=1 ./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe --host=arm-linux --target=arm-linux&lt;br /&gt;
&lt;br /&gt;
./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe&lt;br /&gt;
make&lt;br /&gt;
strip --strip-all konq-embed/src/konqueror&lt;br /&gt;
&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
cp konq/konq-embed/src/konqueror qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/&lt;br /&gt;
mkdir -p qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/pics/konqueror&lt;br /&gt;
cp konq/konq-embed/src/konqueror.png qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/pics/konqueror&lt;br /&gt;
&lt;br /&gt;
mkdir -p qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/apps/khtml/css&lt;br /&gt;
mkdir -p qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/config&lt;br /&gt;
cp konq/konq-embed/kdesrc/khtml/css/html4.css qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/apps/khtml/css&lt;br /&gt;
cp konq/konq-embed/kdesrc/kdecore/charsets    qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/config&lt;br /&gt;
&lt;br /&gt;
cp konq/konq-embed/src/konqueror.desktop qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/apps/Applications&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;ARM&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
/opt/FriendlyARM/mini2440/arm-qtopia/build:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#rm -fr qtopia-2.2.0-FriendlyARM&lt;br /&gt;
#tar xfvz qtopia-2.2.0.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd qtopia-2.2.0-FriendlyARM&lt;br /&gt;
echo yes | ./configure -qte &#39;-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -qt-zlib -qt-libpng -gif -no-g++-exceptions -no-qvfb -xplatform linux-arm-g++ -tslib&#39; -qpe &#39;edition pda -displaysize 240x320 -fontfamilies &quot;helvetica fixed micro smallsmooth smoothtimes unifont&quot; -xplatform linux-arm-g++ -luuid&#39; -qt2 &#39;-no-opengl -no-xft&#39; -dqt &#39;-no-xft -thread&#39;&lt;br /&gt;
&lt;br /&gt;
make &amp;&amp; make install&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
/opt/FriendlyARM/mini2440/arm-qtopia/build-all:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
./build&lt;br /&gt;
./build-konq&lt;br /&gt;
./mktarget&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
/opt/FriendlyARM/mini2440/arm-qtopia/build-konq:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#rm -fr konq&lt;br /&gt;
&lt;br /&gt;
#tar xfvz konq.tar.gz&lt;br /&gt;
&lt;br /&gt;
cd konq&lt;br /&gt;
source /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv&lt;br /&gt;
CC=arm-linux-gcc CXX=arm-linux-g++  LDFLAGS=-ldl CROSS_COMPILE=1 ./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe --host=arm-linux --target=arm-linux&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
arm-linux-strip --strip-all konq-embed/src/konqueror&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://equallybad.blogspot.com/feeds/5025116506633727629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://equallybad.blogspot.com/2010/04/x86-qtopia-and-arm-qtopia-build-scripts.html#comment-form' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2432007612587478551/posts/default/5025116506633727629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2432007612587478551/posts/default/5025116506633727629'/><link rel='alternate' type='text/html' href='http://equallybad.blogspot.com/2010/04/x86-qtopia-and-arm-qtopia-build-scripts.html' title='x86-qtopia and arm-qtopia build scripts'/><author><name>impossible</name><uri>http://www.blogger.com/profile/16573952810886802151</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2432007612587478551.post-2027052423219380373</id><published>2010-02-01T23:42:00.000-08:00</published><updated>2010-04-11T13:13:12.563-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="arm"/><category scheme="http://www.blogger.com/atom/ns#" term="embedded"/><category scheme="http://www.blogger.com/atom/ns#" term="friendlyarm"/><category scheme="http://www.blogger.com/atom/ns#" term="mini2440"/><category scheme="http://www.blogger.com/atom/ns#" term="qtopia"/><category scheme="http://www.blogger.com/atom/ns#" term="setup"/><category scheme="http://www.blogger.com/atom/ns#" term="x86qtopia"/><title type='text'>Project: How to setup the mini2440 dev tools</title><content type='html'>It took me a little while to get the &#39;out of the box&#39; tooling up and running for the &lt;a href=&quot;http://www.friendlyarm.net/products/mini2440&quot;&gt;mini2440&lt;/a&gt; (3.5&quot;) so I&#39;m putting the steps here. To get your own 2440, try &lt;a href=&quot;http://www.andahammer.com/&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
These instructions are for the no-frills sofware that comes with the mini2440. Nothing fancy, just the default Qtopia 2.2.0 on 2.6.29.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Host Linux (Ubuntu 9.10 - 32bit)&lt;/b&gt;&lt;br /&gt;
I can&#39;t stand Red Hat so I couldn&#39;t bring myself to use the arm9.net &lt;a href=&quot;http://www.arm123.com.cn/iso/Fedora-9-i386-DVD.iso&quot;&gt;RH9 iso&lt;/a&gt; for the host pc.&amp;nbsp; Instead, I shot myself in the foot by using a 64bit version of Ubuntu 9.10. This was more trouble than it&#39;s worth and ultimately I couldn&#39;t resolve all the 64/32bit library issues, so I installed a &lt;a href=&quot;http://www.vmware.com/products/player/&quot;&gt;vmware&lt;/a&gt; image of 32bit &lt;a href=&quot;http://www.ubuntu.com/GetUbuntu/download&quot;&gt;Ubuntu 9.10&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Dependencies&lt;/b&gt;&lt;br /&gt;
With a brand new 9.10 install, run the updater and then get these additional packages.&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo apt-get install g++ libx11-dev libxmu-dev libxext-dev zlib1g-dev libjpeg62-dev libssl-dev uuid-dev&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;The arm-linux-gcc-4.3.2 toolchain&lt;/b&gt;&lt;br /&gt;
The following is based on the instructions found in this very handy manual &lt;a href=&quot;http://www.andahammer.com/assets/Uploads/Docs/LinuxManual.pdf&quot;&gt;PDF (English)&lt;/a&gt; with some minor changes for Ubuntu. &lt;br /&gt;
&lt;br /&gt;
We&#39;ll need these archives from the DVD or &lt;a href=&quot;http://translate.google.com/translate?hl=en&amp;amp;sl=zh-CN&amp;amp;u=http://www.arm9.net/download.asp&amp;amp;ei=O5hnS9nVLorKsAPGudydBQ&amp;amp;sa=X&amp;amp;oi=translate&amp;amp;ct=result&amp;amp;resnum=1&amp;amp;ved=0CBUQ7gEwAA&amp;amp;prev=/search%3Fq%3Dhttp://www.arm9.net/download.asp%26hl%3Den%26client%3Dfirefox-a%26rls%3Dorg.mozilla:en-US:official%26hs%3Dd4o&quot;&gt;website&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;arm-linux-gcc-4.3.2.tgz&amp;nbsp; examples.tgz&lt;/div&gt;&lt;br /&gt;
Extract the contents&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;chmod +x *.tgz&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo tar xfzv arm-linux-gcc-4.3.2.tgz -C /&lt;/div&gt;&lt;br /&gt;
Add the bins to your path&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo gedit /etc/bash.bashrc&amp;nbsp; (and add this line: PATH=$PATH:/usr/local/arm/4.3.2/bin )&lt;/div&gt;&lt;br /&gt;
reload your profile and see if they are found&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;arm-linux-gcc -v&lt;/div&gt;&lt;br /&gt;
If all went well, you should see this:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using built-in specs.&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Target: arm-none-linux-gnueabi&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configured with: ....[config details]&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread model: posix&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Install the examples&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Note: the &quot;opt/FriendlyARM/mini2440&quot; path name is hard-coded into the build scripts so unless you want to adjust them, you should use this convention (case sensitive)&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo mkdir /opt/FriendlyARM&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo mkdir /opt/FriendlyARM/mini2440&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo tar xfz examples.tgz -C /opt/FriendlyARM/mini2440/&lt;br /&gt;
sudo chown -R [yourgroup]:[youruser] /opt/FriendlyARM &lt;/div&gt;&lt;br /&gt;
now verify the tooling by compiling one of the examples: &lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;cd /opt/FriendlyARM/mini2440/examples/hello/&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;make&lt;/div&gt;&lt;br /&gt;
You should see:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;arm-linux-gcc -o hello hello.c&lt;/div&gt;&lt;br /&gt;
and the binary appears as well:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;ubuntu:/opt/FriendlyARM/mini2440/examples/hello$ ls -l&lt;/div&gt;&lt;div style=&quot;background-color: #f3f3f3;&quot;&gt;-rwxr-xr-x 1 user:user 5061 2010-02-01 01:30 &lt;b&gt;hello&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #f3f3f3;&quot;&gt;-rw-r--r-- 1&amp;nbsp; user:user&amp;nbsp;&amp;nbsp; 73 2006-08-25 13:48 hello.c&lt;/div&gt;&lt;div style=&quot;background-color: #f3f3f3;&quot;&gt;-rw-r--r-- 1&amp;nbsp; user:user&amp;nbsp;&amp;nbsp; 98 2004-10-09 14:23 Makefile&lt;/div&gt;&lt;br /&gt;
check the executable:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;file hello&lt;/div&gt;&lt;div style=&quot;background-color: #f3f3f3;&quot;&gt;hello: ELF 32-bit LSB executable, &lt;b&gt;ARM&lt;/b&gt;, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped&lt;/div&gt;&lt;br /&gt;
Follow the instructions in the PDF above for moving the file to the 2440 and running it. &lt;br /&gt;
&lt;br /&gt;
These examples demonstrate some of the hardware bits that are available on the 2440.&amp;nbsp; They dont use qt though, so if you want to build an app with a gui, then you&#39;ll need to read on... &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installing x86-qtopia&lt;/b&gt;&lt;br /&gt;
x86-qtopia provides tools and support for developing qt applications and running them on the host pc in a simulated embedded environment.&amp;nbsp; Here&#39;s how to set it up. &lt;br /&gt;
&lt;br /&gt;
Extract the archive to: /opt/FriendlyARM/mini2440/&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo tar xfvz&amp;nbsp; x86-qtopia.tar.gz&amp;nbsp; -C /opt/FriendlyARM/mini2440&lt;/div&gt;&lt;br /&gt;
Extract the individual archives: &lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;cd /opt/FriendlyARM/mini2440/x86-qtopia/&lt;br /&gt;
sudo chmod +x *.gz&lt;br /&gt;
sudo tar xfz qtopia-2.2.0.tar.gz &lt;br /&gt;
sudo tar xfz konq.tar.gz&lt;br /&gt;
mkdir qtopia-2.2.0-FriendlyARM/qtopia/image&lt;br /&gt;
sudo tar xfvz fonts.tar.gz -C qtopia-2.2.0-FriendlyARM/qtopia/image&lt;/div&gt;&lt;br /&gt;
Some of the source code needs to be adjusted slightly in order to compile. Big thanks for the help &lt;a href=&quot;http://qtextended.org/modules/newbb_plus/viewtopic.php?topic_id=984&amp;amp;forum=16&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://friendlyarm.net/forum/topic/332?lang=en&quot;&gt;here&lt;/a&gt; (skip2816)&lt;br /&gt;
&lt;br /&gt;
Edit the four files below as noted: &lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo gedit&amp;nbsp; /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/qmemoryfile_unix.cpp &lt;br /&gt;
line 141:&amp;nbsp; --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);&lt;br /&gt;
line 141:&amp;nbsp; +++ f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY&lt;b&gt;, (S_IRUSR|S_IWUSR)&lt;/b&gt;);&lt;br /&gt;
&lt;br /&gt;
sudo gedit /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/tools/qmemoryfile_unix.cpp &lt;br /&gt;
line 143: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);&lt;br /&gt;
line 143: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY&lt;b&gt;, (S_IRUSR|S_IWUSR)&lt;/b&gt;);&lt;br /&gt;
&lt;br /&gt;
sudo gedit /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/backend/vobject.cpp&lt;br /&gt;
line 419: --- char *dot = strrchr(g,&#39;.&#39;);&lt;br /&gt;
line 419: +++ char *dot = &lt;b&gt;(char *)&lt;/b&gt; strrchr(g,&#39;.&#39;);&lt;br /&gt;
&lt;br /&gt;
sudo gedit /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp&lt;br /&gt;
line 435: char *ext = strrchr( path.latin1(), &#39;.&#39; );&lt;br /&gt;
line 435: char *ext = &lt;b&gt;(char *)&lt;/b&gt; strrchr( path.latin1(), &#39;.&#39; );&lt;/div&gt;&lt;br /&gt;
Grab ownership or else the install will fail...&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo chown -R [youruser]:[yourgroup] /opt/FriendlyARM/&lt;/div&gt;&lt;br /&gt;
I edited the build scripts to remove the initial archive removal and extractions.&amp;nbsp; This will prevent the source code changes above from being deleted and overwritten (which the scripts will do).&amp;nbsp; Alternatively, you can simply run the configure statement by hand, then run make, make install, etc..&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;UPDATE:&lt;/b&gt; I&#39;ve posted the build scripts I&#39;ve used &lt;a href=&quot;http://equallybad.blogspot.com/2010/04/x86-qtopia-and-arm-qtopia-build-scripts.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Finally you can run the build...  &lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;./build-all&lt;/div&gt;&lt;br /&gt;
That should do it. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installing arm-qtopia&lt;/b&gt; &lt;br /&gt;
Extract the archive to /opt/FriendlyARM/mini2440/&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo tar xfz arm-qtopia.tgz -C /opt/FriendlyARM/mini2440/&lt;/div&gt;&lt;br /&gt;
Edit the build scripts to remove the tar and rm entries&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo gedit build build-konq&lt;/div&gt;&lt;br /&gt;
Manually extract the archives:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;cd /opt/FriendlyARM/mini2440/&lt;br /&gt;
sudo chmod +x *.gz&lt;br /&gt;
sudo tar xfz qtopia-2.2.0.tar.gz&lt;br /&gt;
sudo tar xfz konq.tar.gz&lt;br /&gt;
sudo tar xfz fonts.tar.gz&lt;/div&gt;&lt;br /&gt;
Edit the following source files as indicated. &lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/qmemoryfile_unix.cpp line 141:&amp;nbsp; --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);&lt;br /&gt;
line 141:&amp;nbsp; +++ f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY&lt;b&gt;, (S_IRUSR|S_IWUSR)&lt;/b&gt;);&lt;br /&gt;
&lt;br /&gt;
sudo gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/tools/qmemoryfile_unix.cpp &lt;br /&gt;
line 143: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);&lt;br /&gt;
line 143: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY&lt;b&gt;, (S_IRUSR|S_IWUSR)&lt;/b&gt;);&lt;br /&gt;
&lt;br /&gt;
sudo gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/backend/vobject.cpp&lt;br /&gt;
line 419: ---char *dot = strrchr(g,&#39;.&#39;);&lt;br /&gt;
line 419: +++char *dot = &lt;b&gt;(char *) &lt;/b&gt;strrchr(g,&#39;.&#39;);&lt;br /&gt;
&lt;br /&gt;
sudo gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp&lt;br /&gt;
line 435: ---char *ext = strrchr( path.latin1(), &#39;.&#39; );&lt;br /&gt;
line 435: +++char *ext = &lt;b&gt;(char *)&lt;/b&gt; strrchr( path.latin1(), &#39;.&#39; ); &lt;/div&gt;&lt;br /&gt;
Grab ownership or else the install will fail...&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo chown -R [youruser]:[yourgroup] /opt/FriendlyARM/&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;UPDATE:&lt;/b&gt; I&#39;ve posted the build scripts I&#39;ve used &lt;a href=&quot;http://equallybad.blogspot.com/2010/04/x86-qtopia-and-arm-qtopia-build-scripts.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
run the build...&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;./build-all&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Building an example (host)&lt;/b&gt;&lt;br /&gt;
Once the tools are in place, you can run a qt example and run it on the host.&lt;br /&gt;
&lt;br /&gt;
Build the example:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;cd /opt/FriendlyARM/mini2440/x86-qtopia/hello&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;./build&lt;/div&gt;&lt;br /&gt;
Change the last line of the run-hello script to find the hello executable:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;sudo gedit run-hello&lt;/div&gt;line 17: --- hello -qws&lt;br /&gt;
line 17: +++ /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin/hello -qws&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;./run-hello&lt;/div&gt;&lt;br /&gt;
At this point you should see the emulator display the hello example:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKoupO17YQHTr1Ncrvn523Z-jHWab7Hoqtt5njJXzcICP_GQphDkOytBKQmVwAPiTjtafy_0uy_uSoogIcJK62JPRmPlRBFgkFhKObmYVMaJrJx4HEK6hhMPVl87caYu9bWIYD_B_ty9s/s1600-h/x86Qtopia-Hello.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKoupO17YQHTr1Ncrvn523Z-jHWab7Hoqtt5njJXzcICP_GQphDkOytBKQmVwAPiTjtafy_0uy_uSoogIcJK62JPRmPlRBFgkFhKObmYVMaJrJx4HEK6hhMPVl87caYu9bWIYD_B_ty9s/s320/x86Qtopia-Hello.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Building an example (arm)&lt;/b&gt;&lt;br /&gt;
Building the example for the embedded device is similar:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;cd /opt/FriendlyARM/mini2440/arm-qtopia/hello&lt;br /&gt;
./build&lt;/div&gt;&lt;br /&gt;
Now move the binary to this folder so we can transfer it to the device (optional)&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;cp ../qtopia-2.2.0-FriendlyARM/qtopia/bin/hello .&lt;/div&gt;&lt;br /&gt;
To run this app on the 2440, first we have to move it there...&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Moving the example app to the mini2440 (via ftp)&lt;/b&gt;&lt;br /&gt;
Since I&#39;m running a linux vm under windows, I had to manually assign an ip address to my local area connection ( 192.168.1.120 ) via network connections.&amp;nbsp; Then I can ftp from the linux vm (which I set up to use NAT) to the 2440 via the crossover cable. &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;dev@ubuntu:/opt/friendlyARM/mini2440/arm-qtopia/hello$ &lt;b&gt;ftp 192.168.1.230&lt;/b&gt;&lt;/div&gt;Connected to 192.168.1.230.&lt;br /&gt;
220 FriendlyARM FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;Name (192.168.1.230:dev): &lt;b&gt;root&lt;/b&gt;&lt;/div&gt;331 Password required for root.&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;Password:&lt;/div&gt;230 User root logged in.&lt;br /&gt;
Remote system type is UNIX.&lt;br /&gt;
Using binary mode to transfer files.&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;ftp&amp;gt; &lt;b&gt;cd /tmp&lt;/b&gt;&lt;/div&gt;250 CWD command successful.&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;ftp&amp;gt; &lt;b&gt;put hello&lt;/b&gt;&lt;/div&gt;local: hello remote: hello&lt;br /&gt;
200 PORT command successful.&lt;br /&gt;
150 Opening BINARY mode data connection for &#39;hello&#39;.&lt;br /&gt;
226 Transfer complete.&lt;br /&gt;
39082 bytes sent in 0.01 secs (7352.3 kB/s)&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;ftp&amp;gt; &lt;b&gt;put hello.desktop&lt;/b&gt;&lt;/div&gt;local: hello.desktop remote: hello.desktop&lt;br /&gt;
200 PORT command successful.&lt;br /&gt;
150 Opening BINARY mode data connection for &#39;hello.desktop&#39;.&lt;br /&gt;
226 Transfer complete.&lt;br /&gt;
97 bytes sent in 0.06 secs (1.7 kB/s)&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;ftp&amp;gt; &lt;b&gt;quit&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Running the app on the mini2440&lt;/b&gt;&lt;br /&gt;
In terminal on the 2440:&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;chmod +x hello&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;mv hello /opt/Qtopia/bin&lt;/div&gt;&lt;div style=&quot;background-color: #eeeeee;&quot;&gt;mv hello.desktop /opt/Qtopia/apps/Applications&lt;/div&gt;&lt;br /&gt;
Reboot the MINI2440&lt;br /&gt;
&lt;br /&gt;
Hello2440 should now appear in the Applications menu, where you can run it. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Where to go from here...&lt;/b&gt;&lt;br /&gt;
Along with the tooling you also installed the Qtopia documentation. To find the api docs, tutorials and lots of other information, point your browser here:&lt;br /&gt;
&lt;br /&gt;
Qtopia docs:&lt;br /&gt;
file:///opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/doc/html/index.html&lt;br /&gt;
&lt;br /&gt;
Qte docs:&lt;br /&gt;
file:///opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/qt2/doc/html/index.html&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Good luck&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Hope this guide is helpful and good luck with your own projects.&amp;nbsp;&lt;b&gt; &lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://equallybad.blogspot.com/feeds/2027052423219380373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://equallybad.blogspot.com/2010/02/project-how-to-setup-default-dev-tools.html#comment-form' title='79 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2432007612587478551/posts/default/2027052423219380373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2432007612587478551/posts/default/2027052423219380373'/><link rel='alternate' type='text/html' href='http://equallybad.blogspot.com/2010/02/project-how-to-setup-default-dev-tools.html' title='Project: How to setup the mini2440 dev tools'/><author><name>impossible</name><uri>http://www.blogger.com/profile/16573952810886802151</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKoupO17YQHTr1Ncrvn523Z-jHWab7Hoqtt5njJXzcICP_GQphDkOytBKQmVwAPiTjtafy_0uy_uSoogIcJK62JPRmPlRBFgkFhKObmYVMaJrJx4HEK6hhMPVl87caYu9bWIYD_B_ty9s/s72-c/x86Qtopia-Hello.jpg" height="72" width="72"/><thr:total>79</thr:total></entry></feed>