Thursday, November 20th 2008, 3:53pm UTC

You are not logged in.

  • Login
  • Register

ramandeep

Trainee

Posts: 107

Location: India

Occupation: embedded software

1

Thursday, February 14th 2008, 10:55am

error while cross compiling Qt applications for ARM

Hello,
I am a Linux newbie and I have no idea about this.I am trying to install Qtopia core 4.3.3 (qtopia-core-opensource-src-4.3.3) on my PC for cross development for my ARM board running on Linux.My goal is to display graphics on the TFT connected to my board.I have referred the following docs for installation:
http://doc.trolltech.com/4.3/qtopiacore-install.html
http://doc.trolltech.com/4.3/qtopiacore-crosscompiling.html

After installing the Qtopia when I try to cross compile a Qtopia application for ARM I get the following error.
gmake[1]: arm-linux-g++: Command not found
gmake[1]: ***{.obj/release-shared-emb-arm/qatomic.o] Error 127
gmake[1]: Leaving directory '/root/qtopia-core-opensource-src-4.3.3/src/corelib'
gmake: ***[sub-corelib-make_default-ordered] Error 2
[root@localhost qtopia-core-opensource-src-4.3.3] #

I get this error when I try Create a Target Specific qmake Specification

I already have arm-linux-gcc installed on my system at /usr/lib/arm/3.3.2/bin.I can also see arm-linux-g++ in the directory.What could be the problem?

Never mind I figured this out.I just added arm-linux-g++ in the path variable.

But now I am stuck in the next stage.When I configure Qtopia with the following command:
[root@localhost qtopia-core-opensource-src-4.3.3]# ./configure -embedded arm -xplatform qws/linux-arm-g++

It configures well and asks to enter gmake.After entering gmake
I get the following error:

collect2: ld returned 1 exit status
gmake[3]: *** [charactermap] Error 1
gmake[3]: Leaving directory `/root/qtopia-core-opensource-src-4.3.3/examples/widgets/charactermap'
gmake[2]: *** [sub-charactermap-make_default] Error 2
gmake[2]: Leaving directory `/root/qtopia-core-opensource-src-4.3.3/examples/widgets'
gmake[1]: *** [sub-widgets-make_default] Error 2
gmake[1]: Leaving directory `/root/qtopia-core-opensource-src-4.3.3/examples'
gmake: *** [sub-examples-make_default-ordered] Error 2

What could be the problem??

thanks,
Ramandeep

This post has been edited 2 times, last edit by "ramandeep" (Feb 15th 2008, 5:02am)

  • Go to the top of the page

2

Friday, February 15th 2008, 7:00am

RE: error while cross compiling Qt applications for ARM

Check for disk space............ it may be due to space problem...........

I suggest u to install through RPM............Download RMP for qtopia .......... It will be less Time consuming and also fast......

Thanks
  • Go to the top of the page

ramandeep

Trainee

Posts: 107

Location: India

Occupation: embedded software

3

Friday, February 15th 2008, 7:18am

RE: error while cross compiling Qt applications for ARM

yeah thanks.....
I have finally installed Qt 4.3.3 .I was just trying to run their tutorial 1 on the board.So I transferred the file on the board.But when I compile on the board I get the following error:

error while loading shared libraries ligQtGui.s0.4:

I guess I need to install Qt on the board as well....what do u say?

ramandeep
  • Go to the top of the page

4

Friday, February 15th 2008, 7:33am

RE: error while cross compiling Qt applications for ARM

If u don't have installed Qt then this error is regarding that..........
else if there is already QT installed then u will fine this library in

Quoted


/path_whereQT_installed/lib/


Thanks
  • Go to the top of the page

ramandeep

Trainee

Posts: 107

Location: India

Occupation: embedded software

5

Friday, February 15th 2008, 12:24pm

RE: error while cross compiling Qt applications for ARM

Thanks Bargi.I have got Qt installed on both PC and the board.Now there is one more problem

I have Qt 4.3.3 installed on my PC and qt-embedded-free-3.3.4 on my board.
Ihave a code main.cpp lik this:
#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QPushButton hello("Hello world!");
hello.resize(100, 30);

hello.show();
return app.exec();
}
When I compile this code and try to run on the board I get the following error:
./main: error while loading shared libraries: libQtGui.so.4: cannot open shared
I checked my board library it only has the following files
libqte.prl libqte.so.3@ libqte.so.3.3.4*
libqte.la libqte.so@ libqte.so.3.3@ pkgconfig/

I dont undersatnd what to do?Do I need to upgrade the library on the board?If yes how can I do that?

thanks
  • Go to the top of the page

6

Friday, March 7th 2008, 5:37am

RE: error while cross compiling Qt applications for ARM

Hi, I am doing same thing as you did.

Could you tell me how to install the qt-embedded on the board?

I am using the following command, and run make on my host,
./configure -thread -embedded arm -depths 16 -no-qvfb

but I don't think this help me install the qt-embedded on the board.

Could anyone tell me how to do? Thank you

Kidd
  • Go to the top of the page

7

Friday, March 14th 2008, 5:36am

You have to set your cross compiler path and cross compile it.
Then u can copy the opt folder to the board.
this will have all the qtopia files.

Try this and let me know the result.
  • Go to the top of the page

Rate this thread