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. Static Qt5.6 on Mac
Forum Update on Monday, May 27th 2025

Static Qt5.6 on Mac

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 2 Posters 3.4k 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.
  • N Offline
    N Offline
    nicho24
    wrote on last edited by A Former User
    #1

    Hello,

    I am trying to install static Qt5.6 on mac, but it doesn't succeed. My xcode version is 4.5 (4G182), and Mac osx is 10.7.5.

    Please help me to find out where is my problem. Following is my procedures:

    1. tar xvzf qt-everywhere-opensource-src-5.6.0.tar
    2. cd qt-everywhere-opensource-src-5.6.0
    3. ./configure -prefix /Users/swtester/static-qt-5.6.0/ -release -opensource -static -platform macx-clang -nomake examples
    4. make

    The output of step 3 is:

    • cd qtbase
    • /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/configure -top-level -prefix /Users/swtester/static-qt-5.6.0/ -release -opensource -static -platform macx-clang -nomake examples

    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.
    You are also licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) versions 3.

    Type '3' to view the GNU Lesser General Public License version 3.
    Type 'L' to view the Lesser GNU General Public License version 2.1.
    Type 'yes' to accept this license offer.
    Type 'no' to decline this license offer.

    Do you accept the terms of either license? yes

    Running configuration tests (phase 1)...
    Done running configuration tests.
    Creating qmake...
    ............................................................................................Done.
    Running configuration tests (phase 2)...

    WARNING: Using static linking will disable the WebKit module.

    Done running configuration tests.

    Configure summary

    Build type: macx-clang (x86_64, CPU features: mmx sse sse2 sse3 ssse3)

    Build options:
    Configuration .......... accessibility audio-backend avx avx2 c++11 compile_examples concurrent corewlan cups dbus freetype full-config getaddrinfo getifaddrs gif harfbuzz iconv ipv6ifname jpeg large-config largefile medium-config minimal-config nis no-pkg-config opengl pcre png precompile_header qpa qpa reduce_exports release rpath securetransport small-config sse2 sse3 sse4_1 sse4_2 ssl ssse3 static system-zlib use_gold_linker
    Build parts ............ libs tools
    Mode ................... release
    Using sanitizer(s)...... none
    Using C++ standard ..... c++11
    Using gold linker....... yes
    Using new DTAGS ........ no
    Using PCH .............. yes
    Using LTCG ............. no
    Target compiler supports:
    SSE2/SSE3/SSSE3 ...... yes/yes/yes
    SSE4.1/SSE4.2 ........ yes/yes
    AVX/AVX2 ............. yes/yes

    Qt modules and options:
    Qt D-Bus ............... yes (loading dbus-1 at runtime)
    Qt Concurrent .......... yes
    Qt GUI ................. yes
    Qt Widgets ............. yes
    Large File ............. yes
    QML debugging .......... yes
    Use system proxies ..... no

    Support enabled for:
    Accessibility .......... yes
    ALSA ................... no
    CUPS ................... yes
    Evdev .................. no
    FontConfig ............. no
    FreeType ............... yes (bundled copy)
    Glib ................... no
    GStreamer .............. no
    GTK theme .............. no
    HarfBuzz ............... yes (bundled copy)
    Iconv .................. yes
    ICU .................... no
    Image formats:
    GIF .................. yes (in QtGui, using bundled copy)
    JPEG ................. yes (in QtGui, using bundled copy)
    PNG .................. yes (in QtGui, using bundled copy)
    libinput................ no
    Logging backends:
    journald ............... no
    syslog ............... no
    mtdev .................. no
    Networking:
    CoreWlan ............. yes
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    libproxy.............. no
    OpenSSL .............. no
    SecureTransport ...... yes
    NIS .................... yes
    OpenGL / OpenVG:
    EGL .................. no
    OpenGL ............... desktop
    OpenVG ............... no
    PCRE ................... yes (bundled copy)
    pkg-config ............. no
    PulseAudio ............. no
    QPA backends:
    DirectFB ............. no
    EGLFS ................ no
    EGLFS i.MX6 ........ no
    EGLFS i.MX6 Wayland. no
    EGLFS EGLDevice .... no
    EGLFS GBM .......... no
    EGLFS Mali ......... no
    EGLFS Raspberry Pi . no
    EGLFS X11 .......... no
    LinuxFB .............. no
    Mir client............ no
    XCB .................. no
    Session management ..... yes
    SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. yes (plugin)
    PostgreSQL ........... yes (plugin)
    SQLite 2 ............. no
    SQLite ............... yes (plugin, using bundled copy)
    TDS .................. no
    tslib .................. no
    udev ................... no
    xkbcommon-x11........... no
    xkbcommon-evdev......... no
    zlib ................... yes (system library)

    WARNING: Using static linking will disable the use of dynamically
    loaded plugins. Make sure to import all needed static plugins,
    or compile needed modules into the library.
    Info: creating super cache file /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/.qmake.super
    Info: creating stash file /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/.qmake.stash

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into /Users/swtester/static-qt-5.6.0

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.

    The output of step 4 is:

    cd qtbase/ && ( test -e Makefile || /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/qtbase.pro -o Makefile ) && make -f Makefile
    Info: creating cache file /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/.qmake.cache
    cd src/ && ( test -e Makefile || /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/src/src.pro -o Makefile ) && make -f Makefile
    cd tools/bootstrap/ && ( test -e Makefile || /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /Users/swtester/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap/bootstrap.pro -o Makefile ) && make -f Makefile
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -ffunction-sections -O2 -fPIC -std=c++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.6.0 -I../../../include/QtCore/5.6.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.6.0 -I../../../include/QtXml/5.6.0/QtXml -I../../../mkspecs/macx-clang -o .obj/qlatincodec.o ../../corelib/codecs/qlatincodec.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -ffunction-sections -O2 -fPIC -std=c++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.6.0 -I../../../include/QtCore/5.6.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.6.0 -I../../../include/QtXml/5.6.0/QtXml -I../../../mkspecs/macx-clang -o .obj/qtextcodec.o ../../corelib/codecs/qtextcodec.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -ffunction-sections -O2 -fPIC -std=c++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.6.0 -I../../../include/QtCore/5.6.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.6.0 -I../../../include/QtXml/5.6.0/QtXml -I../../../mkspecs/macx-clang -o .obj/qutfcodec.o ../../corelib/codecs/qutfcodec.cpp
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -ffunction-sections -O2 -fPIC -std=c++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.6.0 -I../../../include/QtCore/5.6.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.6.0 -I../../../include/QtXml/5.6.0/QtXml -I../../../mkspecs/macx-clang -o .obj/qglobal.o ../../corelib/global/qglobal.cpp
    In file included from ../../corelib/global/qglobal.cpp:37:
    In file included from ../../../include/QtCore/qvector.h:1:
    In file included from ../../../include/QtCore/../../src/corelib/tools/qvector.h:39:
    In file included from ../../../include/QtCore/qlist.h:1:
    In file included from ../../../include/QtCore/../../src/corelib/tools/qlist.h:41:
    In file included from ../../../include/QtCore/qhashfunctions.h:1:
    In file included from ../../../include/QtCore/../../src/corelib/tools/qhashfunctions.h:39:
    In file included from ../../../include/QtCore/qpair.h:1:
    ../../../include/QtCore/../../src/corelib/tools/qpair.h:77:50: error: member access into incomplete type
    'QPair<QVariant, QVariant>'
    Q_DECL_NOEXCEPT_EXPR(noexcept(qSwap(other.first, other.first)) && ...
    ^
    ../../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1036:43: note: expanded from macro
    'Q_DECL_NOEXCEPT_EXPR'

    define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)

                                          ^
    

    ../../../include/QtCore/../../src/corelib/kernel/qvariant.h:800:42: note: in instantiation of template
    class 'QPair<QVariant, QVariant>' requested here
    static QPair<QVariant, QVariant> invoke(const QVariant &v)
    ^
    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2060:1: note: definition of
    'QPair<QVariant, QVariant>' is not complete until the closing '}'
    QT_FOR_EACH_AUTOMATIC_TEMPLATE_2ARG(Q_FORWARD_DECLARE_METATYPE_TEMPLATE_2ARG_ITER)
    ^
    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:204:7: note: expanded from macro
    'QT_FOR_EACH_AUTOMATIC_TEMPLATE_2ARG'
    F(QPair, struct)
    ^
    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2057:43: note: expanded from macro
    'Q_FORWARD_DECLARE_METATYPE_TEMPLATE_2ARG_ITER'
    template <class T1, class T2> CPPTYPE TEMPLATENAME;
    ^
    1 error generated.
    make[3]: *** [.obj/qglobal.o] Error 1
    make[2]: *** [sub-bootstrap-make_first] Error 2
    make[1]: *** [sub-src-make_first] Error 2
    make: *** [module-qtbase-make_first] Error 2

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Following the supported build platform (emphasis on build not run), your setup is too old. You can still target OS X version older than 10.8 but building Qt on them is not possible anymore, their compiler is too old.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Following the supported build platform (emphasis on build not run), your setup is too old. You can still target OS X version older than 10.8 but building Qt on them is not possible anymore, their compiler is too old.

        N Offline
        N Offline
        nicho24
        wrote on last edited by
        #3

        Hi, thanks.

        I read through the link and know the QT5.6 doesn't support Mac OSX 10.7. But OSX 10.7 can compile QT5.5 by using i686-apple-darwin11-llvm-gcc-4.2.

        So does it mean I can setup static QT5.5 on OSX 10.7 by using i686-apple-darwin11-llvm-gcc-4.2 compiler?

        Best regards,

        nicho

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AFAIK, yes. Don't forget the license requirements when using a static build. Also, unless you need the whole of Qt, just build the modules you need. That will cost less time and space.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            AFAIK, yes. Don't forget the license requirements when using a static build. Also, unless you need the whole of Qt, just build the modules you need. That will cost less time and space.

            N Offline
            N Offline
            nicho24
            wrote on last edited by
            #5

            Hi SGaist, thanks for your reply.

            I tried to setup QT5.5 by using macx-llvm. I presumed macx-llvm is the correct platform. Am I right?

            But I get error when I do "make". The error messages are about:

            cc1plus: error: unrecognized command line option "-stdlib=libstdc++"
            make[3]: *** [.obj/qlatincodec.o] Error 1
            make[3]: *** Waiting for unfinished jobs....
            .......................
            make[2]: *** [sub-bootstrap-make_first] Error 2
            make[2]: *** Waiting for unfinished jobs....
            ........................
            make[1]: *** [sub-src-make_first] Error 2
            make: *** [module-qtbase-make_first] Error 2

            Any idea?

            Thanks,

            Nicho

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I usually don't set the platform and let configure pick it up. If you really want to pick it yourself, use clang if available or g++.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              0
              • SGaistS SGaist

                I usually don't set the platform and let configure pick it up. If you really want to pick it yourself, use clang if available or g++.

                N Offline
                N Offline
                nicho24
                wrote on last edited by
                #7

                I did a try without setting platform by: ./configure -prefix /Users/swtester/static-qt-5.5.0 -release -opensource -static -nomake examples. Then the output shows "Build type: macx-clang (x86_64, CPU features: mmx sse sse2 sse3 ssse3)".

                But I still got error message when I called "make".

                Please help me to work it out. Thanks.

                Following is the error messages. I can provide all output if you need.

                Nichos-MacBook-Pro:qt-everywhere-opensource-src-5.5.0 swtester$ make -j 4
                ........................................................................
                /macx-clang -o .obj/qlatincodec.o ../../corelib/codecs/qlatincodec.cpp
                In file included from ../../corelib/kernel/qcore_mac_objc.mm:37:
                In file included from ../../../include/QtCore/qdebug.h:1:
                In file included from ../../../include/QtCore/../../src/corelib/io/qdebug.h:38:
                In file included from ../../../include/QtCore/qhash.h:1:
                In file included from ../../../include/QtCore/../../src/corelib/tools/qhash.h:41:
                In file included from ../../../include/QtCore/qpair.h:1:
                ../../../include/QtCore/../../src/corelib/tools/qpair.h:77:50: error: member access into incomplete type
                'QPair<QVariant, QVariant>'
                Q_DECL_NOEXCEPT_EXPR(noexcept(qSwap(other.first, other.first)) && ...
                ^
                ../../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1007:43: note: expanded from macro
                'Q_DECL_NOEXCEPT_EXPR'

                define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)

                                                      ^
                

                ../../../include/QtCore/../../src/corelib/kernel/qvariant.h:792:42: note: in instantiation of template
                class 'QPair<QVariant, QVariant>' requested here
                static QPair<QVariant, QVariant> invoke(const QVariant &v)
                ^
                ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2048:1: note: definition of
                'QPair<QVariant, QVariant>' is not complete until the closing '}'
                QT_FOR_EACH_AUTOMATIC_TEMPLATE_2ARG(Q_FORWARD_DECLARE_METATYPE_TEMPLATE_2ARG_ITER)
                ^
                ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:204:7: note: expanded from macro
                'QT_FOR_EACH_AUTOMATIC_TEMPLATE_2ARG'
                F(QPair, struct)
                ^
                ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2045:43: note: expanded from macro
                'Q_FORWARD_DECLARE_METATYPE_TEMPLATE_2ARG_ITER'
                template <class T1, class T2> CPPTYPE TEMPLATENAME;
                ^
                1 error generated.
                make[3]: *** [.obj/qcore_mac_objc.o] Error 1
                make[3]: *** Waiting for unfinished jobs....
                ................................................................
                make[2]: *** [sub-bootstrap-make_first] Error 2
                make[2]: *** Waiting for unfinished jobs....
                ...............................................................
                rm -f ../../../lib/libqtfreetype.a
                mv -f libqtfreetype.a ../../../lib/
                make[1]: *** [sub-src-make_first] Error 2
                make: *** [module-qtbase-make_first] Error 2

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  When having that kind of error I avoid using the -j option, that way the compilation stops exactly at the point of error without mixing the output of all the threads started.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  N 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    When having that kind of error I avoid using the -j option, that way the compilation stops exactly at the point of error without mixing the output of all the threads started.

                    N Offline
                    N Offline
                    nicho24
                    wrote on last edited by
                    #9

                    Without -j option, i still get error when i run make. Following is the output:

                    Nichos-MacBook-Pro:qt-everywhere-opensource-src-5.5.0 swtester$ make
                    cd qtbase/ && ( test -e Makefile || /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/bin/qmake /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/qtbase.pro -o Makefile ) && make -f Makefile
                    Info: creating cache file /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/.qmake.cache
                    cd src/ && ( test -e Makefile || /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/bin/qmake /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/src/src.pro -o Makefile ) && make -f Makefile
                    cd tools/bootstrap/ && ( test -e Makefile || /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/bin/qmake /Users/swtester/Downloads/qt-everywhere-opensource-src-5.5.0/qtbase/src/tools/bootstrap/bootstrap.pro -o Makefile ) && make -f Makefile
                    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../../include/QtCore/5.5.0 -I../../../include/QtCore/5.5.0/QtCore -I../../../include/QtXml/5.5.0 -I../../../include/QtXml/5.5.0/QtXml -I../../../mkspecs/macx-clang ../../corelib/kernel/qcore_mac_objc.mm -o .obj/qcore_mac_objc.o
                    In file included from ../../corelib/kernel/qcore_mac_objc.mm:37:
                    In file included from ../../../include/QtCore/qdebug.h:1:
                    In file included from ../../../include/QtCore/../../src/corelib/io/qdebug.h:38:
                    In file included from ../../../include/QtCore/qhash.h:1:
                    In file included from ../../../include/QtCore/../../src/corelib/tools/qhash.h:41:
                    In file included from ../../../include/QtCore/qpair.h:1:
                    ../../../include/QtCore/../../src/corelib/tools/qpair.h:77:50: error: member access into incomplete type
                    'QPair<QVariant, QVariant>'
                    Q_DECL_NOEXCEPT_EXPR(noexcept(qSwap(other.first, other.first)) && ...
                    ^
                    ../../../include/QtCore/../../src/corelib/global/qcompilerdetection.h:1007:43: note: expanded from macro
                    'Q_DECL_NOEXCEPT_EXPR'

                    define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)

                                                          ^
                    

                    ../../../include/QtCore/../../src/corelib/kernel/qvariant.h:792:42: note: in instantiation of template
                    class 'QPair<QVariant, QVariant>' requested here
                    static QPair<QVariant, QVariant> invoke(const QVariant &v)
                    ^
                    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2048:1: note: definition of
                    'QPair<QVariant, QVariant>' is not complete until the closing '}'
                    QT_FOR_EACH_AUTOMATIC_TEMPLATE_2ARG(Q_FORWARD_DECLARE_METATYPE_TEMPLATE_2ARG_ITER)
                    ^
                    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:204:7: note: expanded from macro
                    'QT_FOR_EACH_AUTOMATIC_TEMPLATE_2ARG'
                    F(QPair, struct)
                    ^
                    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2045:43: note: expanded from macro
                    'Q_FORWARD_DECLARE_METATYPE_TEMPLATE_2ARG_ITER'
                    template <class T1, class T2> CPPTYPE TEMPLATENAME;
                    ^
                    1 error generated.
                    make[3]: *** [.obj/qcore_mac_objc.o] Error 1
                    make[2]: *** [sub-bootstrap-make_first] Error 2
                    make[1]: *** [sub-src-make_first] Error 2
                    make: *** [module-qtbase-make_first] Error 2

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Either build an even older version of Qt or try with disabling Q_COMPILER_NOEXCEPT in qcompilerdetection.h

                      By the way, why do you want a static build of Qt on OS X ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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