LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   crosscompiling issues with qtopia for ARM9 (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/crosscompiling-issues-with-qtopia-for-arm9-621982/)

raman_31181 02-18-2008 07:27 AM

crosscompiling issues with qtopia for ARM9
 
Hello,
I have qtopia-core-opensource-src-4.3.3 installed on my development host(PC).I intend to compile code on the PC and run the same on an ARM9 board (ts7300)which has qt-embedded-free-3.3.4 installed.I have a sample program:
#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 the above program on the PC it compiles well but when I try to execute on the board I get the following error
./main: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directy
What could be the problem?Do I need to install something else on the board?

thanks,
ramandeep

rojak 02-20-2008 05:42 PM

In my Qtopia manual there is no mentioning of qt-embedded-free. How did you get it and install it?
Also the numbering 3.3.4 looks to me like a old version, replaced by Qtopia 4.3.3 or something.

In my case (ARM9 as well) I did copy the cross-compiled QtCore and QtGui libraries to target, as well my uClibc libraries but ran out of RAM after unzipping. Have yet to find a workaround for this.

If you have more RAM on your target system then you should be able to install all the libraries mentioned.
I am interested to hear about your result.

raman_31181 02-21-2008 05:20 AM

Quote:

Originally Posted by rojak (Post 3064285)
In my Qtopia manual there is no mentioning of qt-embedded-free. How did you get it and install it?
Also the numbering 3.3.4 looks to me like a old version, replaced by Qtopia 4.3.3 or something.

In my case (ARM9 as well) I did copy the cross-compiled QtCore and QtGui libraries to target, as well my uClibc libraries but ran out of RAM after unzipping. Have yet to find a workaround for this.

If you have more RAM on your target system then you should be able to install all the libraries mentioned.
I am interested to hear about your result.

Hi Rojak,
Pleased to hear from you.Well I am using TS7300 here which we purchased from Technologic Systems.These guys provided me the qt-embedded-free ... file but that file is a reduced version of Qt and is not of much use to me right now as I have linked my executable in Qt4.3.3.I n any case I am trying to install Qt4.3.3 on the board.Yeah you are right t3.3.2 is older version of Qt4.3.3 and somehow they are not compatible...probably this explains my frustration right now.
Qt 4.3.3 open source tar file is a 50 MB file.I am not able to transfer on to the board.Can you please suggest some other method to install it on the board(or some other source which you have used)?I have 8MB on chip flash,512 MB SDcard and 32 MB SDRAM(expansible through PCMCIA slot).

thanks and best regards,
Ramandeep

knudfl 09-02-2008 09:21 AM

Welcome to Linux Questions.

Assuming you have the cross tools to compile
for "arm" you can compile the libs for the
arm - board.
'libQtGui.so.4' is about 7 MB,
for a standard Qt4, could be a problem !

May be the Qutopia lib is smaller ?

Regards


All times are GMT -5. The time now is 02:00 AM.