Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot find TargetConditionals.h
Forum Updated to NodeBB v4.3 + New Features

Cannot find TargetConditionals.h

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 5.1k 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.
  • T Offline
    T Offline
    TheFlyingMooseMan
    wrote on last edited by
    #1

    After months and months of working with QT Creator, compiling that has been compiling fine for months, yields in the following error message...:

    /Volumes/Home/roy/Qt5.7.0/5.7/clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:95: error: 'TargetConditionals.h' file not found
    #  include <TargetConditionals.h>
    

    What is the next step to solve this?

    Thanks for any pointers/hints,
    Roy

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

      Hi,

      Any chance of Xcode upgrade recently ?

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

      T 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        Any chance of Xcode upgrade recently ?

        T Offline
        T Offline
        TheFlyingMooseMan
        wrote on last edited by
        #3

        @SGaist It looks like there was an upgrade. All of a sudden I had to run make as root and had to answer some questions. What should be done next?

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

          Do a full clean rebuild.

          If that's still not good, you may have to force the macosxsdk to 10.12.

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

          T 1 Reply Last reply
          1
          • SGaistS SGaist

            Do a full clean rebuild.

            If that's still not good, you may have to force the macosxsdk to 10.12.

            T Offline
            T Offline
            TheFlyingMooseMan
            wrote on last edited by
            #5

            @SGaist That did not work. How do I force macosxsdk to 10.12?

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

              Add

              macx {
                  QMAKE_MAC_SDK = macosx10.12
              }
              

              to your .pro file.

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

              T 1 Reply Last reply
              1
              • SGaistS SGaist

                Add

                macx {
                    QMAKE_MAC_SDK = macosx10.12
                }
                

                to your .pro file.

                T Offline
                T Offline
                TheFlyingMooseMan
                wrote on last edited by
                #7

                @SGaist And that did work. Thanks a lot!

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

                  You're welcome !

                  You shouldn't need it anymore after the next Qt update.

                  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
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved