May 18, 2011

hicui hicui
Lab Rat
5 posts

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:

  1. /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:

  1. ...
  2. compiling floatmath.cpp
  3. /bin/sh: arm-none-linux-gnueabi-g++: not found
  4. make: *** [floatmath.o] ERROR 127
  5. ...

It seems that my cross-tool-chain is not proper. But, when I type

  1. arm-none-linux-gnueabi-g++ -v
in the terminal, it can print the version information:
  1. ... 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

May 19, 2011

koahnig koahnig
Mad Scientist
2112 posts

Are other source files compiled without problems before the error occurs?

May 20, 2011

hicui hicui
Lab Rat
5 posts
koahnig wrote:
Are other source files compiled without problems before the error occurs?

yes, koahnig, I can compile tslib1.4 without any trouble.

May 20, 2011

Luca Luca
Ant Farmer
589 posts

What is the content of mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf in your Qt source ?

May 20, 2011

hicui hicui
Lab Rat
5 posts
Luca wrote:
What is the content of mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf in your Qt source ?

Hi, Luca,here is my qmake.conf:

  1. # qmake configuration for building with arm-none-linux-gnueabi-g++
  2. #
  3.  
  4. include(../../common/g++.conf)
  5. include(../../common/linux.conf)
  6. include(../../common/qws.conf)
  7.  
  8. # modifications to g++.conf
  9. QMAKE_CC                = arm-none-linux-gnueabi-gcc
  10. QMAKE_CXX               = arm-none-linux-gnueabi-g++
  11. QMAKE_LINK              = arm-none-linux-gnueabi-g++
  12. QMAKE_LINK_SHLIB        = arm-none-linux-gnueabi-g++
  13.  
  14. # modifications to linux.conf
  15. QMAKE_AR                = arm-none-linux-gnueabi-ar cqs
  16. QMAKE_OBJCOPY           = arm-none-linux-gnueabi-objcopy
  17. QMAKE_STRIP             = arm-none-linux-gnueabi-strip
  18.  
  19. load(qt_config)

when I type

  1. arm-none-linux-gnueabi-g++ -v
, it can also print the same version information.

May 20, 2011

Luca Luca
Ant Farmer
589 posts

You can try to put the full path for the toolchain as follows:

  1. include(../../common/g++.conf)
  2. include(../../common/linux.conf)
  3. include(../../common/qws.conf)
  4.  
  5. # modifications to g++.conf
  6. QMAKE_CC                = /path/to/arm-none-linux-gnueabi-gcc
  7. QMAKE_CXX               = /path/to/arm-none-linux-gnueabi-g++
  8. QMAKE_LINK              = /path/to/arm-none-linux-gnueabi-g++
  9. QMAKE_LINK_SHLIB        = /path/to/arm-none-linux-gnueabi-g++
  10.  
  11. # modifications to linux.conf
  12. QMAKE_AR                = /path/to/arm-none-linux-gnueabi-ar cqs
  13. QMAKE_OBJCOPY           = /path/to/arm-none-linux-gnueabi-objcopy
  14. QMAKE_STRIP             = /path/to/arm-none-linux-gnueabi-strip
  15.  
  16. load(qt_config)

May 20, 2011

hicui hicui
Lab Rat
5 posts

Luca , you’re right, it compiled successfully!
Thanks a lot!

But why does this error occurs? I can’t figure it out.

May 20, 2011

Luca Luca
Ant Farmer
589 posts

Good!!!

What board are you compiling for?

May 21, 2011

hicui hicui
Lab Rat
5 posts

It ‘s a board based on s3c2440.
It seems that no one has met this problem.
Thank you, Luca! Have a nice weekend!

 
  ‹‹ General Deployment on Windows      [solved] Configure.exe fails for Qt 4.7.3 with Visual Studio-compiler ››

You must log in to post a reply. Not a member yet? Register here!