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@ in the terminal, it can print the version information:
    @... 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


  • Moderators

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



  • [quote author="koahnig" date="1305789310"]Are other source files compiled without problems before the error occurs?
    [/quote]

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



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



  • [quote author="Luca" date="1305876667"]What is the content of mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf in your Qt source ?[/quote]

    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@ , it can also print the same version information.



  • 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)
    @



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

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



  • Good!!!

    What board are you compiling for?



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.