Skip to main content

error while compiling Qt code

Hi

I have cross compiled Qt using Qt 4.5.1

I have linux 2.6.30 on my 2440  target board

I have kernel version 2.6.27 on my host system on which i am doing my cross compiling

After cross compiling my Qt program,i check the executable using command file <filename>
I checked file test as

/home/program/test # file test
test: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped

I have cross compiled it for target  2.6.30 then why i am getting that it is compiled for 2.6.14 .

Please help me ...
 

error while compiling Qt code

Hi,

which compiler did you use to compile your application? I mean are you sure you used the right arm-linux-gcc?

error while compiling Qt code

i am using arm-linux-gcc 4.3.3 .

But my kernel on my host syatem on which i have installed Qt and doing cross compiling is 2.6.27.7.

The kernel on my board is 2.6.30.4.

Is it necessary that both the kernel version should be same.

error while compiling Qt code

 

No is not necessary.

I wanted to ask you: are you sure your make uses the right compiler? 

Did you run the make from the Qt /bin path of your cross compiled library or perhaps did you run a default make of your distribution (in this second case you will use the default gcc instead or arm gcc)