Saturday, July 5th 2008, 6:31am UTC+1

You are not logged in.

  • Login
  • Register

ramandeep

Trainee

Posts: 99

Location: India

Occupation: embedded software

1

Monday, February 18th 2008, 6:17am

running Qt sample code

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 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?

Hello someone suggested that I statically link Qt while compilation.How do I do that?

This post has been edited 1 times, last edit by "ramandeep" (Feb 19th 2008, 5:10am)

  • Go to the top of the page

ramandeep

Trainee

Posts: 99

Location: India

Occupation: embedded software

2

Tuesday, February 19th 2008, 1:16pm

cant see compiled output on the TFT

Hello,
I solved the above problem.But I am stuck again!
I compiled the following code on my PC which has Qtopia 4.3.3 installed
#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 transferred this compiled executable on the ARM9 board it executes fine but I dont see anything on the TFT.Please help.

Thanks.

This post has been edited 1 times, last edit by "ramandeep" (Feb 19th 2008, 1:18pm)

  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

3

Tuesday, February 19th 2008, 7:58pm

which OS is ARM running on? problem is with the framebuffer/driver or OS.
  • Go to the top of the page

ramandeep

Trainee

Posts: 99

Location: India

Occupation: embedded software

4

Wednesday, February 20th 2008, 4:01am

Hello Nigish,
My ARM 9 board is running on Debian Linux 3.0.My PC is running on Fedora6.0.How do I check the framebuffer driver on my board?
I have dynamically linked the executable this time.So I had to install certain .so file on the board.But still it is not working.Someone suggested statically linking the executable while compiling on the PC.I installed static (.a) files on my PC.But when I run qmake -project ,qmake, make in succession I stll get a dynamically linked binary.how do I force the compiler to use these static libraries?This seem to be a basic question but I cannot help asking this.

Thanks

This post has been edited 1 times, last edit by "ramandeep" (Feb 20th 2008, 5:49am)

  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

5

Wednesday, February 20th 2008, 7:53pm

Quoted

Originally posted by ramandeep
Hello Nigish,
My ARM 9 board is running on Debian Linux 3.0.My PC is running on Fedora6.0.How do I check the framebuffer driver on my board?
I have dynamically linked the executable this time.So I had to install certain .so file on the board.But still it is not working.Someone suggested statically linking the executable while compiling on the PC.I installed static (.a) files on my PC.But when I run qmake -project ,qmake, make in succession I stll get a dynamically linked binary.how do I force the compiler to use these static libraries?This seem to be a basic question but I cannot help asking this.

Thanks


hmmm.... static linking? i would suggest dynamic since i used Konqueror and needed the libraries to be dynamically shared for both konqueror and qt executables. anyways it is just an option of /configure. --help!

if your framebuffer is not detected normally then maybe check for its existance first. by basics, do you see it in /dev? fb0, fb1...
anyways recompile the kernel explicitly. this might help.
  • Go to the top of the page

ramandeep

Trainee

Posts: 99

Location: India

Occupation: embedded software

6

Saturday, February 23rd 2008, 11:34am

problem solved....thanks
  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

7

Saturday, February 23rd 2008, 12:53pm

what did you do? :)
  • Go to the top of the page

ramandeep

Trainee

Posts: 99

Location: India

Occupation: embedded software

8

Monday, February 25th 2008, 4:11am

I copied the compiled library files on to the board.That was all the executable needed.I was stuck in some space issues with the board so I had to shift to greater memory for this.

Thanks.
  • Go to the top of the page

nijish

Trainee

Posts: 154

Location: Bangalore

Occupation: Software Engineer

9

Tuesday, February 26th 2008, 7:54pm

gr8.. stupid of you and me.. and i was wondering what else...
  • Go to the top of the page

ramandeep

Trainee

Posts: 99

Location: India

Occupation: embedded software

10

Wednesday, February 27th 2008, 4:14am

Yeah stupid and a bit uninformed of me too :P......initially I was trying to install the full version of Qtopia on the board when all that I was needed to do was to copy the compiled library(.so files) on the board...I guess I was a bit uninformed about Qt then....

Thanks
  • Go to the top of the page

11

Thursday, February 28th 2008, 9:53am

you can use

qmake -project
qmake

nmake / f *.pro complete
  • Go to the top of the page

Rate this thread