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 3.2k 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.
  • SGaistS SGaist

    Hi,

    Which version of Qt are you using ?
    Did you completely nuke the build folder after the Xcode update ?

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

    @SGaist Thanks for reply. I got Qt 6.5.0. And I didn’t remove build folder after Xcode update.

    jsulmJ 1 Reply Last reply
    0
    • hskoglundH hskoglund

      Also, do you get the same errors if you upgrade your Xcode to 16.0?

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

      @hskoglund Thanks for reply. I will check and let you know.

      1 Reply Last reply
      0
      • B BushyAxis793

        @SGaist Thanks for reply. I got Qt 6.5.0. And I didn’t remove build folder after Xcode update.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #6

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

        And I didn’t remove build folder after Xcode update

        You should to do a complete rebuild

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

        B 1 Reply Last reply
        2
        • jsulmJ jsulm

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

          And I didn’t remove build folder after Xcode update

          You should to do a complete rebuild

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

          @jsulm I deleted my debug folder and try build again. I got the same error.

          1 Reply Last reply
          0
          • hskoglundH hskoglund

            Also, do you get the same errors if you upgrade your Xcode to 16.0?

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

            @hskoglund Yes I got the same problem after upgrade Xcode to 16.0.

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

              Do you have the same issue if you create a new project ?

              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

                Do you have the same issue if you create a new project ?

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

                @SGaist Yes, I have.

                151cbc6b-3652-41c7-a2a0-c440db2941b8-image.png

                d9f07711-0755-4e0f-bb4b-3cd0044cf3a4-image.png

                1 Reply Last reply
                0
                • 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 Offline
                          jsulmJ Offline
                          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