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. Cross-compile not working.

Cross-compile not working.

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.7k 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.
  • P Offline
    P Offline
    pcspets
    Qt Champion 2021
    wrote on last edited by
    #1

    Hi

    I want to "build Qt5 for Raspberry":http://qt-project.org/wiki/RaspberryPi_Beginners_guide but for some reason it doesn't detect the compiler correctly and gives me the "-reduce-exports was requested but this compiler does not support it" error when running ./configure. The actual cause is that $TEST_COMPILER (for testing -fvisibility and other features) is empty. Had a closed look and looks like QMAKE_CXX is never set.

    Actually, QMAKE_CXX is set by devices/common/linux_device_pre.conf

    @QMAKE_CXX = $${CROSS_COMPILE}g++@

    but the function

    @getXQMakeConf QMAKE_CXX@

    never gets called and even if called, the QMAKE_CXX get's losty somewhere in it (probably in the AWK mess).

    Lauri

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pcspets
      Qt Champion 2021
      wrote on last edited by
      #2

      And indeed it is lost in awk. I just spent the whole day to find out that letter x is not in between a...z in Estonian alphabet. So, doing awk [A-Z] will not match "X" if you are running Estonian locale or maybe others as well. Thus QMAKE_CC will match but not QMAKE_CXX.

      For now I changed all [A-Z] to [A-Y] but I have no idea what to do as a general fix :)

      Lauri

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

        You might want to file a bug report on "JIRA.":https://bugreports.qt-project.org/secure/Dashboard.jspa I googled a bit and found quite quickly another language with the "Z" at an earlier position as well. So, it might be a more common problem than it is realized by 95% of the programmers.

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

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pcspets
          Qt Champion 2021
          wrote on last edited by
          #4

          Thank you. Reported the bug: "QTBUG-31380":https://bugreports.qt-project.org/browse/QTBUG-31380

          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