cannot find -lQtGui -QT Beginner Help Needed
Hi ,
Iam a absolute Beginner in QT and Linux .
Iam trying to develop a sample Application which runs on ARM Processor(PXA270).
For this i downloaded qt-sdk-linux-x86-opensource-2009.03.1 ,created a small application which has few button and Label
It ran perfectly in Linux Machine(Fedora 9) ,
Next thing i need is make it work in ARM Linux .
I tried qmake,Makefile was created successfully.
But when I run make it was showing the following:
[nsa@WS111 s]$ qmake-qt4 -spec /usr/local/QT/qt/mkspecs/qws/linux-arm-g++ -o Makefile s.pro
[nsa@WS111 s]$ make
arm-linux-g++ -Wl,-O1 -o s -L/usr/lib -lQtGui -L/usr/lib -L/usr/X11R6/lib -lQtNetwork -lQtCore -lpthread
/usr/local/arm/4.0.0/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libQtGui.so when searching for -lQtGui
/usr/local/arm/4.0.0/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libQtGui.so when searching for -lQtGui
/usr/local/arm/4.0.0/usr/bin/../lib/gcc/arm-linux/4.0.0/../../../../arm-linux/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status
make: *** [s] Error 1
[nsa@WS111 s]$
Does Cross Compatibility mean ,the code works in Windows,MAC,Linux and Embedded Linux Without any code change?
What all steps should i do to Make my code work on ARM linux?
Some one please guide,
Iam stuck in this issue for past 4 days,
Thanks ,
nsa
Re: cannot find -lQtGui -QT Beginner Help Needed
Quote:
Originally Posted by
nsa
Does Cross Compatibility mean ,the code works in Windows,MAC,Linux and Embedded Linux Without any code change?
Yes, but upto an extent. Until you uses, platform specific things.
Quote:
Originally Posted by
nsa
What all steps should i do to Make my code work on ARM linux?
Pls refer similar post.
http://www.qtcentre.org/forum/f-qtop...ard-22502.html
Re: cannot find -lQtGui -QT Beginner Help Needed
Thanks for the reply,
Iam not able to run the Application in board,
Should i recompile the existing application in qt-embedded-free-3.3.7 environment to make it board compatible ?
Could you please briefly explain the steps needed
OS version is Fedora 9
can cross compiling done from Qtcreator?
Kindly reply,
Thanks again
nsa
Re: cannot find -lQtGui -QT Beginner Help Needed
Quote:
Originally Posted by
nsa
Iam not able to run the Application in board,
Can you compile and run any qt example on board ?
Quote:
Originally Posted by
nsa
Should i recompile the existing application in qt-embedded-free-3.3.7 environment to make it board compatible ?
Yes
Quote:
Originally Posted by
nsa
Could you please briefly explain the steps needed
Please refer the given post, in that, user "soumya" written the steps for setting up the development environment for ARM. In same post, you can find the steps for deploying application. This is very useful for you.
Quote:
Originally Posted by
nsa
can cross compiling done from Qtcreator?
QtCreator is just IDE, and has nothing to do with cross compilation.
And there are many posts exists for cross compilation on QtCentre.
Re: cannot find -lQtGui -QT Beginner Help Needed
Thanks Yogesh,
I will Check the link you pasted,
Regards,
nsa
Re: cannot find -lQtGui -QT Beginner Help Needed
We downloaded QtEmbedded-4.5.2
Then we followed the below steps
Step 1:
./configure -embedded arm -shared -no-cups
Step 2:
gmake;
The contents in the installation folder:
are bin include lib no other folders are created.
[root@WS111 examples]# cd /usr/local/
[root@WS111 local]# cd Trolltech/
[root@WS111 Trolltech]# cd QtEmbedded-4.5.2-arm/
[root@WS111 QtEmbedded-4.5.2-arm]# ls
bin include lib
[root@WS111 QtEmbedded-4.5.2-arm]#
The examples folder was not visible .
Did i miss any intermediate steps?
Please help
Regards,
nsa