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

Unknown type name 'uint8_t' after update Xcode

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
21 Posts 5 Posters 2.4k Views
  • 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.
  • H hskoglund
    17 Sept 2024, 19:39

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

    B Offline
    B Offline
    BushyAxis793
    wrote on 18 Sept 2024, 17:23 last edited by
    #8

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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Sept 2024, 17:30 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 18 Sept 2024, 17:33
      1
      • S SGaist
        18 Sept 2024, 17:30

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

        B Offline
        B Offline
        BushyAxis793
        wrote on 18 Sept 2024, 17:33 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
        • H Offline
          H Offline
          hskoglund
          wrote on 18 Sept 2024, 19:53 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 19 Sept 2024, 18:14
          1
          • A Offline
            A Offline
            artwaw
            wrote on 18 Sept 2024, 21:44 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 19 Sept 2024, 17:58
            1
            • A artwaw
              18 Sept 2024, 21:44

              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 19 Sept 2024, 17:58 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

              J 1 Reply Last reply 20 Sept 2024, 05:53
              0
              • H hskoglund
                18 Sept 2024, 19:53

                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 19 Sept 2024, 18:14 last edited by
                #14

                @hskoglund I confirm.

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

                1 Reply Last reply
                0
                • B BushyAxis793
                  19 Sept 2024, 17:58

                  @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

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 20 Sept 2024, 05:53 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 20 Sept 2024, 16:37
                  0
                  • J jsulm
                    20 Sept 2024, 05:53

                    @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 20 Sept 2024, 16:37 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 21 Sept 2024, 18:28 last edited by
                      #17
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        BushyAxis793
                        wrote on 21 Sept 2024, 18:48 last edited by
                        #18

                        I got a few new errors

                        image.png

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 21 Sept 2024, 18:50 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 22 Sept 2024, 06:30
                          1
                          • S SGaist
                            21 Sept 2024, 18:50

                            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 22 Sept 2024, 06:30 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
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 22 Sept 2024, 08:08 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 22 Sept 2024, 17:28

                              17/21

                              21 Sept 2024, 18:28

                              • Login

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