Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error in Compiling qt-everywhere-opensource-4.7.3 for ARM
Forum Updated to NodeBB v4.3 + New Features

Error in Compiling qt-everywhere-opensource-4.7.3 for ARM

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 3 Posters 7.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hicui
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

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

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hicui
        wrote on last edited by
        #3

        [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.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          luca
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hicui
            wrote on last edited by
            #5

            [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.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              luca
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hicui
                wrote on last edited by
                #7

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

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

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  luca
                  wrote on last edited by
                  #8

                  Good!!!

                  What board are you compiling for?

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hicui
                    wrote on last edited by
                    #9

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

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved