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

qtbase/src/corelib/global/qsystemdetection.h:95:12: fatal error: 'TargetConditionals.h' file not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 5.10, 5.11
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      macOS Sierra

      Xcode 9.0
      Build version 9A235

      Description

      With Qt built from the latest 5.10 branch (wiping the build directory before building), I get the following build errors for a project I'm trying to build:

      16:50:29: Running steps for project imaginator...
      16:50:29: Starting: "/usr/bin/make" clean
      rm -f .rcc/qrc_qml.cpp
      rm -f .moc/moc_predefs.h
      rm -f .moc/main.moc
      rm -f .obj/main.o .obj/qrc_qml.o
      rm -f *~ core *.core
      16:50:29: The process "/usr/bin/make" exited normally.
      16:50:29: Configuration unchanged, skipping qmake step.
      16:50:29: Starting: "/usr/bin/make" 
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -pipe -stdlib=libc++ -g -std=gnu++11  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.10 -Wall -W -dM -E -o .moc/moc_predefs.h ../qt5.10/qtbase/mkspecs/features/data/dummy.cpp
      clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk' [-Wmissing-sysroot]
      /Users/mitch/dev/qt5.10-fw/qtbase/bin/moc -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include .moc/moc_predefs.h -I/Users/mitch/dev/qt5.10/qtbase/mkspecs/macx-clang -I/Users/mitch/dev/imaginator -I/Users/mitch/dev/qt5.10-fw/qtbase/include -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtQuick -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtGui -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtQml -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtNetwork -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtCore/5.10.0 -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtCore/5.10.0/QtCore -I/Users/mitch/dev/qt5.10-fw/qtbase/include/QtCore -I. -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include -F/Users/mitch/dev/qt5.10-fw/qtbase/lib ../imaginator/main.cpp -o .moc/main.moc
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.10 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../imaginator -I. -I../qt5.10-fw/qtbase/include -I../qt5.10-fw/qtbase/include/QtQuick -I../qt5.10-fw/qtbase/include/QtGui -I../qt5.10-fw/qtbase/include/QtQml -I../qt5.10-fw/qtbase/include/QtNetwork -I../qt5.10-fw/qtbase/include/QtCore/5.10.0 -I../qt5.10-fw/qtbase/include/QtCore/5.10.0/QtCore -I../qt5.10-fw/qtbase/include/QtCore -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers/ -I../qt5.10/qtbase/mkspecs/macx-clang -F/Users/mitch/dev/qt5.10-fw/qtbase/lib -o .obj/main.o ../imaginator/main.cpp
      clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk' [-Wmissing-sysroot]
      In file included from ../imaginator/main.cpp:51:
      In file included from ../qt5.10-fw/qtbase/include/QtGui/QGuiApplication:1:
      In file included from ../qt5.10-fw/qtbase/include/QtGui/qguiapplication.h:1:
      In file included from ../qt5.10-fw/qtbase/include/QtGui/../../../../qt5.10/qtbase/src/gui/kernel/qguiapplication.h:43:
      In file included from ../qt5.10-fw/qtbase/include/QtGui/qtguiglobal.h:1:
      In file included from ../qt5.10-fw/qtbase/include/QtGui/../../../../qt5.10/qtbase/src/gui/kernel/qtguiglobal.h:43:
      In file included from ../qt5.10-fw/qtbase/include/QtCore/qglobal.h:1:
      In file included from ../qt5.10-fw/qtbase/include/QtCore/../../../../qt5.10/qtbase/src/corelib/global/qglobal.h:97:
      In file included from ../qt5.10-fw/qtbase/include/QtCore/qsystemdetection.h:1:
      ../qt5.10-fw/qtbase/include/QtCore/../../../../qt5.10/qtbase/src/corelib/global/qsystemdetection.h:95:12: fatal error: 'TargetConditionals.h' file not found
      #  include <TargetConditionals.h>
                 ^~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      make: *** [.obj/main.o] Error 1
      16:50:30: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project imaginator (kit: Qt 5.10.0 (qt5.10-fw))
      When executing step "Make"
      16:50:30: Elapsed time: 00:01.
      

      I also installed some macOS updates around the same time, which probably included Xcode, as I was asked to agree to the license again.

        Attachments

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

          Activity

            People

            • Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              mitch_curtis Mitch Curtis
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes