Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unknown type name 'uint8_t' after update Xcode
Forum Updated to NodeBB v4.3 + New Features

Unknown type name 'uint8_t' after update Xcode

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
21 Posts 5 Posters 2.9k Views 2 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #11

    I just checked on my Mac running Xcode 16.0 (Sonoma 14.6.1) the definition for uint8_t comes from this file:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint8_t.h

    The file contains a single typedef:
    typedef unsigned char uint8_t;

    B 1 Reply Last reply
    1
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by artwaw
      #12

      EDIT:
      Errors are gone after two steps:

      1. Added set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk") to top-level CMakeLists.txt;
      2. In build configuration (Project options) changed value of WrapOpenGL_AGL to point to the right SDK (15 instead of 14.5).

      I presume those would not be necessary once the proper update to Qt comes in, with support for the new SDK?

      EDIT ENDS.

      Weird errors after the update:

      /Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/Platform/Darwin-Initialize.cmake:308 (message):
        Ignoring CMAKE_OSX_SYSROOT value:
      
         /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
      
        because the directory does not exist.
      

      and

      In file included from /Users/artwaw/Qt/6.7.2/macos/lib/QtSql.framework/Headers/QSqlRelationalTableModel:1:
      In file included from /Users/artwaw/Qt/6.7.2/macos/lib/QtSql.framework/Headers/qsqlrelationaltablemodel.h:7:
      In file included from /Users/artwaw/Qt/6.7.2/macos/lib/QtSql.framework/Headers/qtsqlglobal.h:11:
      /Users/artwaw/Qt/6.7.2/macos/lib/QtCore.framework/Headers/qglobal.h:13:12: fatal error: 'type_traits' file not found
         13 | #  include <type_traits>```

      For more information please re-read.

      Kind Regards,
      Artur

      B 1 Reply Last reply
      1
      • artwawA artwaw

        EDIT:
        Errors are gone after two steps:

        1. Added set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk") to top-level CMakeLists.txt;
        2. In build configuration (Project options) changed value of WrapOpenGL_AGL to point to the right SDK (15 instead of 14.5).

        I presume those would not be necessary once the proper update to Qt comes in, with support for the new SDK?

        EDIT ENDS.

        Weird errors after the update:

        /Qt/Tools/CMake/CMake.app/Contents/share/cmake-3.29/Modules/Platform/Darwin-Initialize.cmake:308 (message):
          Ignoring CMAKE_OSX_SYSROOT value:
        
           /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
        
          because the directory does not exist.
        

        and

        In file included from /Users/artwaw/Qt/6.7.2/macos/lib/QtSql.framework/Headers/QSqlRelationalTableModel:1:
        In file included from /Users/artwaw/Qt/6.7.2/macos/lib/QtSql.framework/Headers/qsqlrelationaltablemodel.h:7:
        In file included from /Users/artwaw/Qt/6.7.2/macos/lib/QtSql.framework/Headers/qtsqlglobal.h:11:
        /Users/artwaw/Qt/6.7.2/macos/lib/QtCore.framework/Headers/qglobal.h:13:12: fatal error: 'type_traits' file not found
           13 | #  include <type_traits>```
        B Offline
        B Offline
        BushyAxis793
        wrote on last edited by
        #13

        @artwaw Thanks for reply! I followed your steps but still got an error.
        14269b4c-bad5-4020-a061-40980dc151e1-image.png

        cfd0b5a5-2c67-4122-a583-e4a808357186-image.png

        jsulmJ 1 Reply Last reply
        0
        • hskoglundH hskoglund

          I just checked on my Mac running Xcode 16.0 (Sonoma 14.6.1) the definition for uint8_t comes from this file:
          /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint8_t.h

          The file contains a single typedef:
          typedef unsigned char uint8_t;

          B Offline
          B Offline
          BushyAxis793
          wrote on last edited by
          #14

          @hskoglund I confirm.

          4bde8bcb-8fd6-4c8f-bcb5-096452a9f821-image.png

          1 Reply Last reply
          0
          • B BushyAxis793

            @artwaw Thanks for reply! I followed your steps but still got an error.
            14269b4c-bad5-4020-a061-40980dc151e1-image.png

            cfd0b5a5-2c67-4122-a583-e4a808357186-image.png

            jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #15

            @BushyAxis793 said in Unknown type name 'uint8_t' after update Xcode:

            but still got an error

            Please post the error...

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            B 1 Reply Last reply
            0
            • jsulmJ jsulm

              @BushyAxis793 said in Unknown type name 'uint8_t' after update Xcode:

              but still got an error

              Please post the error...

              B Offline
              B Offline
              BushyAxis793
              wrote on last edited by
              #16

              @jsulm Thanks for reply! Error below:

              9fc4f24c-9ebc-4935-aefe-b425eca9b3ad-image.png

              92141a1a-2ac3-4683-8f55-7e2817b20e47-image.png

              9dba0a03-a877-4bff-bfa5-8d40717556a8-image.png

              1 Reply Last reply
              0
              • B Offline
                B Offline
                BushyAxis793
                wrote on last edited by
                #17
                This post is deleted!
                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  BushyAxis793
                  wrote on last edited by
                  #18

                  I got a few new errors

                  image.png

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

                    At this point, you should try to build a dummy basic hello world using uint8_t without anything Qt in it to ensure that your setup is working.

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

                    B 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      At this point, you should try to build a dummy basic hello world using uint8_t without anything Qt in it to ensure that your setup is working.

                      B Offline
                      B Offline
                      BushyAxis793
                      wrote on last edited by
                      #20

                      @SGaist After created new project I got notification about new update available. I updated everything. I reopen my project and I have no more errors!

                      Thanks everyone for help!
                      Have a good day

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

                        Great !

                        Then please mark the thread as solved so other forum users may know a solution has been found :-)

                        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
                        • B BushyAxis793 has marked this topic as solved on

                        • Login

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