Error in Compiling qt-everywhere-opensource-4.7.3 for ARM
When I cross-compile qt-4.7.3 for arm, there’s an error occurred, which bother me for nearly 1 weeks:
Here is my configure options:
- /opt/qt-everywhere-opensource-src-4.7.3$ sudo ./configure -prefix /usr/local/Trolltech/QtE-arm -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -release -opensource -shared -fast -no-largefile -qt-sql-sqlite -no-mmx -no-sse -no-sse2 -no-3dnow -qt-zlib -no-libtiff -qt-libpng -no-libmng -qt-libjpeg -no-openssl -silent -no-nis -confirm-license -depths 16,18,24 -optimized-qmake -no-xcursor -qt-freetype -little-endian -host-little-endian -no-qt3support -no-qvfb -no-phonon -no-cups -no-glib -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-xfixes -no-separate-debug-info -nomake examples -nomake tools -nomake docs -no-gfx-qvfb -no-mouse-qvfb -qt-kbd-qvfb -qt-kbd-tty -qt-mouse-tslib -I/home/cui/mytslib1/include -L/home/cui/mytslib1/lib -verbose
Then the error occurred:
- ...
- compiling floatmath.cpp
- /bin/sh: arm-none-linux-gnueabi-g++: not found
- make: *** [floatmath.o] ERROR 127
- ...
It seems that my cross-tool-chain is not proper. But, when I type
- arm-none-linux-gnueabi-g++ -v
- ... gcc version 4.4.3 (ctng-1.6.1)
I tried to change the arm-linux-gcc, and changed the path in /etc/profile, but it just didn’t work!
So is there anybody can tell me what’s the problem?
Any help would be appreciated!
My environment:
Ubuntu 10.10
arm-linux-gcc-4.4.3
8 replies
What is the content of mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf in your Qt source ?
Hi, Luca,here is my qmake.conf:
- # qmake configuration for building with arm-none-linux-gnueabi-g++
- #
- include(../../common/g++.conf)
- include(../../common/linux.conf)
- include(../../common/qws.conf)
- # modifications to g++.conf
- QMAKE_CC = arm-none-linux-gnueabi-gcc
- QMAKE_CXX = arm-none-linux-gnueabi-g++
- QMAKE_LINK = arm-none-linux-gnueabi-g++
- QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
- # modifications to linux.conf
- QMAKE_AR = arm-none-linux-gnueabi-ar cqs
- QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
- QMAKE_STRIP = arm-none-linux-gnueabi-strip
- load(qt_config)
when I type
- arm-none-linux-gnueabi-g++ -v
You can try to put the full path for the toolchain as follows:
- include(../../common/g++.conf)
- include(../../common/linux.conf)
- include(../../common/qws.conf)
- # modifications to g++.conf
- QMAKE_CC = /path/to/arm-none-linux-gnueabi-gcc
- QMAKE_CXX = /path/to/arm-none-linux-gnueabi-g++
- QMAKE_LINK = /path/to/arm-none-linux-gnueabi-g++
- QMAKE_LINK_SHLIB = /path/to/arm-none-linux-gnueabi-g++
- # modifications to linux.conf
- QMAKE_AR = /path/to/arm-none-linux-gnueabi-ar cqs
- QMAKE_OBJCOPY = /path/to/arm-none-linux-gnueabi-objcopy
- QMAKE_STRIP = /path/to/arm-none-linux-gnueabi-strip
- load(qt_config)
You must log in to post a reply. Not a member yet? Register here!




