Qt Creator and tiny6410

Rick
Hello there,

I've created a simple application with Qt Creator, and it's running in PC,
but when I try to run in tiny6410, it doesn't work as suppose to be,


Is it because of different qmake at Tool->option->Qt4 ?

What should I do to make it work ?

thanks

holger
Hello,
do you install QT for pc AND for ARM on your pc? Than you can build your
application for both cpus.

Rick
Yes I have installed QT for PC and for ARM x86-qtopia and arm-qtopia, I
have tried to use trolltech qmake, but gave me error when I uploaded it
into Tiny6410 board
===============
QWS Display::Data::init : "Invalid argument"
Client can't attach to main ram memory
Aborted
==================

What should I fix ?

Thanks

Rick
I'm using qmake :

QtEmbedded-4.7.0-arm/bin/qmake


is it right ?

thanks

Rick
this is the parameter :

qmake /root/Documents/HelloWorld/HelloWorld.pro -spec
/usr/local/Trolltech/QtEmbedded-4.7.0-arm/mkspecs/qws/linux-arm-g++ -r

is it right ?

thanks

Rick
I get :
Starting /root/Documents/HelloWorld/HelloWorld...
/root/Documents/HelloWorld/HelloWorld exited with code 255

Rick
When  I uploaded to board,

I got error :
QWSDisplay::Data::Init: Invalid Argument
Client can't attach to main ram memory.
Aborted,

I'm using Tiny6410

What shoud I do to fix it ?

Rick
When I run it from GUI,
I got :

Application was terminated due to application error (11)

How can I fix it ?

thanks

holger
I would first make a test if the toolchain works correct. Compile a "hello
world" in pure C or C++ for the ARM and check if that works.

Rick
do you have example of "hello world" in pure c ? and how to compile it ?

just 

<include stdio.h>
printf("Hello world");

?

Thanks

Rick
I have :

===========
[root@localhost ~]# arm-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gcc
COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolschain/4.5.1/libexec/gcc/arm-none-linux
-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /work/toolchain/build/src/gcc-4.5.1/configure
--build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
--target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1
--with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root

--enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s
--with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp
--with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/
--disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--enable-threads=posix
--with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys
-root
--disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.5.1 (ctng-1.8.1-FA) 
[root@localhost ~]# 

=================

holger
Look at this thread:

http://www.friendlyarm.net/forum/topic/4260

There I wrote the example and how to test the toolchain:-)

Rick
I must compile two Qt creator or arm-qtopia and x86-qtopia ??

from the statement :
==============

Then compile Qt twice. First for your host and second for the mini
=========

holger
No, you must compile the qt libs for arm and for x86 to produce executables
with this libs for arm and for x86. Then you can select in the Qt Creator
the target (after you have add both in options-> qt).

Rick
No, you must compile the qt libs for arm and for x86 to produce executables
with this libs for arm and for x86. Then you can select in the Qt Creator
the target (after you have add both in options-> qt).
==========================
You mean these ones :

I have at /usr/local/Trolltech :

/QtEmbedded-4.7.0-arm

and
/QtEmbedded-4.6.1-i386

I tried to compile using them first for debug and the arm version for
release ?

thanks

sujith
I have Tiny 6410 board. i NEED TO DEVELOP APPLICATION IN qt .I have done
steps for qt cross compilation
http://www.sereno-labs.com/Qt_4.8.3_installation_procedure_FriendlyARM_m...
after this how to set environment variables as mentioned in  site.Also mine
is fedora electronics lab version QT was already there qt creator and qt
linguist. After this process both were removed i think.Now how to write
applIcation and compile