2010-05-02

Link error during build Qt 4.6.2

Max encounter the following link error, as he tried to build Qt 4.6.2 with a angstrom toolchain for mini2440 ARM9 board:

/usr/bin/ld: .obj/release-shared/harfbuzz-buffer.o: Relocations in generic ELF (EM: 40)
.obj/release-shared/harfbuzz-buffer.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

After a short analysis, he found out that it supports to be the problem of crossing compiler toolchain.

>ls -al /usr/bin/gcc
lrwxrwxrwx 1 root root 63 2009-10-27 20:35 /usr/bin/gcc -> /usr/bin/gcc-4.1
Here is quick solution, but there may exists better solution.
>rm /usr/bin/gcc
>ln -s /opt/toolchains/arm920t-eabi/arm-angstrom-linux-gnueabi/bin/gcc /usr/bin/gcc
The reconfigure and build everything
>make confclean
>./configure -embedded arm -xplatform qws/linux-arm-g++ -depths 16 -qt-mouse-tslib
>make
>make install

No comments:

Post a Comment