Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross-compile error on RaspberryPi
QtWS25 Last Chance

Cross-compile error on RaspberryPi

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 4.8k Views
  • 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.
  • C Offline
    C Offline
    Charlie_Y
    wrote on last edited by
    #1

    The referenced article: http://qt-project.org/wiki/RaspberryPi_Beginners_guide

    When I compile the qtbase as follow, I have a problem.
    @./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/tools-master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi@

    The error is:
    @-reduce-relocations was requested but this compiler does not support it
    Re-run configure with -v for more information@

    I add the -v behind the above code (./configure ....... -v). The error is:
    @bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
    #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
    ^
    Symbolic function binding disabled.
    -reduce-relocations was requested but this compiler does not support it@

    The Raspberry Pi cross-compiler is downloaded from https://github.com/raspberrypi/tools
    How can I solve the problem?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Remove -reduce-relocations option from your command line arguments and re-run your compilation.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Charlie_Y
        wrote on last edited by
        #3

        Thank you! I successfully compiled the qtbase. But when I compile other modules, there are some errors.
        When I compile qtjsbackend,the error is as followed

        @In file included from ../3rdparty/v8/src/v8.h:58:0,
        from ../3rdparty/v8/src/accessors.cc:28:
        ../3rdparty/v8/src/v8globals.h:434:1: error: expected identifier before ‘<<’ token
        <<<<<<< HEAD
        ^
        ../3rdparty/v8/src/v8globals.h:434:1: error: expected ‘}’ before ‘<<’ token
        ../3rdparty/v8/src/v8globals.h:434:1: error: expected unqualified-id before ‘<<’ token
        ../3rdparty/v8/src/v8globals.h:578:3: error: expected declaration before ‘}’ token
        } } // namespace v8::internal
        ^
        make[2]: *** [.obj/accessors.o] error 1
        make[2]: *** waiting the uncompleted task....
        In file included from ../3rdparty/v8/src/v8.h:58:0,
        from ../3rdparty/v8/src/api.h:31,
        from ../3rdparty/v8/src/api.cc:28:
        ../3rdparty/v8/src/v8globals.h:434:1: error: expected identifier before ‘<<’ token
        <<<<<<< HEAD
        ^
        ../3rdparty/v8/src/v8globals.h:434:1: error: expected ‘}’ before ‘<<’ token
        ../3rdparty/v8/src/v8globals.h:434:1: error: expected unqualified-id before ‘<<’ token
        ../3rdparty/v8/src/v8globals.h:578:3: error: expected declaration before ‘}’ token
        } } // namespace v8::internal
        ^
        make[2]: *** [.obj/api.o] error 1
        make[2]:leaving /home/shawn/opt/qt5/qtjsbackend/src/v8' make[1]: *** [sub-v8-make_first-ordered] error 2 make[1]:leaving /home/shawn/opt/qt5/qtjsbackend/src'
        make: *** [sub-src-make_first] error 2
        @

        When I use the command "/usr/local/qt5pi/bin/qmake ." to compile the qt3d, qtjsondb and qtdocgallery, the error is
        @ file to open is a directory
        Error processing project file: .@

        [quote author="Dheerendra" date="1408464631"]Remove -reduce-relocations option from your command line arguments and re-run your compilation.[/quote]

        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