Hi all,
I am trying to build for an ARM embedded target with this configuration command:
./configure -embedded arm -xplatform /home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-arm-g++ -big-endian -prefix /usr/local/Trolltech/qt_target
The configuration runs successfully. I now run 'gmake' and get the following error:
************************************************** **************
.obj/release-shared-emb-arm/moc_qsignaltransition.o .obj/release-shared-emb-arm/moc_qeventtransition.o -L/home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/lib -lpthread -lm -ldl
.obj/release-shared-emb-arm/qeasingcurve.o: In function `easeInSine(float)':
qeasingcurve.cpp:(.text+0x7ac) :undefined reference to `cosf'
...
A lot more undefined references...
...
qline.cpp:(.text+0x1fa0): undefined reference to `cosf'
qline.cpp:(.text+0x1fb4): undefined reference to `sinf'
collect2: ld returned 1 exit status
gmake[1]: *** [../../lib/libQtCore.so.4.7.1] Error 1
gmake[1]: Leaving directory `/home/developer/Desktop/qt-everywhere-opensource-src-4.7.1/src/corelib'
gmake: *** [sub-corelib-make_default-ordered] Error 2
************************************************** **************
Some research indicates that the libm math library cannot be found. I have the arm-linux-g++ compiler installed. The following files:
libm.a
libm.so
libm.so.0
(along with many others)
Are located here:
/usr/local/arm/3.4/arm-linux/lib
Here is my PATH:
/usr/lib/mpi/gcc/openmpi/bin:/home/developer/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/local/Trolltech/QtEmbedded-4.7.1/bin:/usr/bin/gcc:/usr/lib/gcc:/usr/bin/X11/gcc:/usr/local/arm/3.4/bin:/usr/local/arm/3.2.1-elf/bin:/usr/local/arm/3.4/arm-linux/lib
I've tried relocating the libm files into other directories with no luck. I've attached the Makefile for reference.
OS: openSUSE 11.3
Qt 4.7.1
Thanks in advance for any help you can provide.
Bookmarks