Thursday, July 29, 2010

Install arm-qtopia-2.2.0_20100108 for Linux host PC

Hello Friends!!
Here i am posting the total steps for the installation of the arm-qtopia for the mini2440 , 3.5" Linux board


1. Extract the archive to /opt/FriendlyARM/mini2440/
tar xfz arm-qtopia-2.2.0_20100108.tgz -C /opt/FriendlyARM/mini2440/

2. Edit the build scripts to remove the tar and rm entries
sudo gedit build build-konq

3. Manually extract the archives:
cd /opt/FriendlyARM/mini2440/
chmod +x *.gz
tar xfz qtopia-2.2.0.tar.gz
sudo tar xfz konq.tar.gz
sudo tar xfz fonts.tar.gz

4. Edit the following source files as indicated.
gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/qmemoryfile_unix.cpp line 141: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);
line 141: +++ f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY, (S_IRUSR|S_IWUSR));



gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/tools/qmemoryfile_unix.cpp
line 143: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);
line 143: --- f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY, (S_IRUSR|S_IWUSR));



gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/backend/vobject.cpp
line 419: ---char *dot = strrchr(g,'.');
line 419: +++char *dot = (char *) strrchr(g,'.');



gedit /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp
line 435: ---char *ext = strrchr( path.latin1(), '.' );
line 435: +++char *ext = (char *) strrchr( path.latin1(), '.' );


UPDATE: I've posted the build scripts I've referred here.

5. run the build...
./build-all



Building an example (arm)
Building the example for the embedded device is similar:

cd /opt/FriendlyARM/mini2440/arm-qtopia/hello
./build


So the compile output will give you the executable files which needs to be copied on mini2440 board/
the files needed are "hello and hello.desktop"

hello file is at the location /qtopia-2.2.0-FriendlyARM/qtopia/bin/hello
hello.desktop is at /qtopia-2.2.0-FriendlyARM/qtopia/hello/

To run this app on the 2440, first we have to move it there...
keep the hello file at the filesystem of the mini2440 at the location /opt/Qtopia/bin and make it executable by command chmod +x hello
and hello.desktop is at /opt/Qtopia/apps/Applications

Reboot the MINI2440

Hello2440 should now appear in the Applications menu, where you can run it.

2 comments:

  1. can you tell me the diffirence between x86-qtopia and arm-qtopia?

    ReplyDelete
  2. And when installing arm-qtopia and x86-qtopia I 've got some errors like:
    + 'konq-embed/src/konqueror': No such file
    +mkdir: cannot create directory `qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/pics/konqueror': No such file or directory
    +cp: cannot create regular file `qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/pics/konqueror': No such file or directory
    +cp: cannot create regular file `qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/apps/Applications': No such file or directory

    And some more things similar. Could you explain what should I do to solve these problems? I've google for days but I still can't install Qtopia.
    Thank you so much.

    ReplyDelete