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. Updated to Xcode 6.01, now my qt project has #include errors
Forum Updated to NodeBB v4.3 + New Features

Updated to Xcode 6.01, now my qt project has #include errors

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 3.5k 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.
  • K Offline
    K Offline
    kloveridge
    wrote on last edited by
    #1

    I just finished upgrading to XCode 6.01. And tried to recompile my Qt Creator project. I am getting this error:

    @/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:90: error: 'wchar.h' file not found
    #include <wchar.h> // for mbstate_t
    ^@

    I'm guessing some include files were moved in Xcode 6.01. Wonder if anyone has any advice how fix this?

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

      Hi,

      Did you do a full clean rebuild ?

      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
      • K Offline
        K Offline
        kloveridge
        wrote on last edited by
        #3

        Yes. It crashes right at the beginning. I see there is a new version of Qt Creator. I'm going to install it.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kloveridge
          wrote on last edited by
          #4

          I found the answer in stack overflow, but when I pasted the link here I did something wrong. The gist of the answer was this:

          Find qdevice.pri in you Qt install directory:

          /users/nic/Qt/5.3/clang_64/mkspecs/qdevice.pri

          and change the line

          @!host_build:QMAKE_MAC_SDK = macosx10.8@

          to

          @!host_build:QMAKE_MAC_SDK = macosx10.9@

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sandy.martel
            wrote on last edited by
            #5

            wchar.h is a system header file located at /usr/include/wchar.h (or SDK/usr/include/wchar.h). It doesn't appear to have moved since Mac OS X 10.4 (oldest SDK I can find) and is still there in Mac OS X 10.10.

            I have no (compiling) problems with Xcode 6.

            Check your install!

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kloveridge
              wrote on last edited by
              #6

              My previous post seems to be the root cause of my errors.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sandy.martel
                wrote on last edited by
                #7

                ah yes, there is no macosx10.8 with Xcode 6

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kloveridge
                  wrote on last edited by
                  #8

                  The one side effect of doing the change I came up with above is the debugger now fails to launch. Not sure if anyone at Qt has a suggestion to fix Qt Creator to work with OSX 10.9?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sandy.martel
                    wrote on last edited by
                    #9

                    yeah, debugging does not work with Xcode 6. See this thread for a few workarounds:

                    http://qt-project.org/forums/viewthread/47578/#195525

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kloveridge
                      wrote on last edited by
                      #10

                      The final fix for this was to rename the 6.01 version of Xcode to XCode6 and reinstall XCode 5.1.1. I had to still screw around with the debugger settings before the debugger fired back up. Quite a pain. But it seems to be working now.

                      I am guessing the upcoming release of Qt Creator coming will resolve the XCode 6/OSX changes?

                      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