Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24366

Build error on MacOS X with GCC 4.6 non-Apple

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: Withdrawn
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      I try to compile Qt with non-Apple GCC 4.6 for Qt with C++x11

      > CXXFLAGS="-std=c++0x" ./configure -prefix /Developer/Qt
      ...
      Creating qmake. Please wait...
      g++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -fconstant-cfstrings -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/Users/fabrice/Downloads/qt-everywhere-opensource-src-4.8.0/include -I/Users/fabrice/Downloads/qt-everywhere-opensource-src-4.8.0/include/QtCore -I/Users/fabrice/Downloads/qt-everywhere-opensource-src-4.8.0/src/corelib/global -I/Users/fabrice/Downloads/qt-everywhere-opensource-src-4.8.0/src/corelib/xml -I/Users/fabrice/Downloads/qt-everywhere-opensource-src-4.8.0/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/Users/fabrice/Downloads/qt-everywhere-opensource-src-4.8.0/mkspecs/macx-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED project.cpp
      g++: erreur: unrecognized command line option '-fconstant-cfstrings'
      make: *** [project.o] Error 1

      The problem is that you are using some options added by Apple. But if somebody wants to build with non-Apple GCC, he have this error.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            xcodexif Félix Faisant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes