Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 3d example error
Forum Updated to NodeBB v4.3 + New Features

Qt 3d example error

Scheduled Pinned Locked Moved Unsolved Qt 6
15 Posts 3 Posters 1.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.
  • R Offline
    R Offline
    RUXX
    wrote on 15 Apr 2024, 07:15 last edited by RUXX
    #1

    Hello everyone, I'm trying to build an open source file named as cube sphere textures from GitHub which is under qt3d-example open source library. But there are errors which aren't getting resolved. i have tried to solve it with few solutions but that doesn't help me. I also don't know where am I going wrong.

    I'm attaching the screenshot of the code snippet where the errors are occurring. please help me resolve the error. looking forward for the help. It would be really grateful if someone helps me out to resolve the issue.CubeSphere.png

    cubesphere2.png

    K 1 Reply Last reply 15 Apr 2024, 22:11
    0
    • R RUXX
      15 Apr 2024, 07:15

      Hello everyone, I'm trying to build an open source file named as cube sphere textures from GitHub which is under qt3d-example open source library. But there are errors which aren't getting resolved. i have tried to solve it with few solutions but that doesn't help me. I also don't know where am I going wrong.

      I'm attaching the screenshot of the code snippet where the errors are occurring. please help me resolve the error. looking forward for the help. It would be really grateful if someone helps me out to resolve the issue.CubeSphere.png

      cubesphere2.png

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 15 Apr 2024, 22:11 last edited by
      #2

      In Qt6 the QBuffer's been moved the the Qt3DCore module. Same for QAttribute. I assume you're working with an example that's not been ported. You must change the type names accordingly.

      https://doc.qt.io/qt-6/qt3dcore-qbuffer.html
      https://doc.qt.io/qt-6/qt3dcore-qattribute.html

      Read and abide by the Qt Code of Conduct

      R 2 Replies Last reply 16 Apr 2024, 05:15
      0
      • K kshegunov
        15 Apr 2024, 22:11

        In Qt6 the QBuffer's been moved the the Qt3DCore module. Same for QAttribute. I assume you're working with an example that's not been ported. You must change the type names accordingly.

        https://doc.qt.io/qt-6/qt3dcore-qbuffer.html
        https://doc.qt.io/qt-6/qt3dcore-qattribute.html

        R Offline
        R Offline
        RUXX
        wrote on 16 Apr 2024, 05:15 last edited by
        #3

        @kshegunov thank you for replying, yes thats true, I did see that the QBuffer and QAttribute are present in Qt3DCore but what i did was moved those two files into Qt3DRender folder and then tried to build but it still gives me the same error. what are your thoughts on this and how can i solve the error?

        1 Reply Last reply
        0
        • K kshegunov
          15 Apr 2024, 22:11

          In Qt6 the QBuffer's been moved the the Qt3DCore module. Same for QAttribute. I assume you're working with an example that's not been ported. You must change the type names accordingly.

          https://doc.qt.io/qt-6/qt3dcore-qbuffer.html
          https://doc.qt.io/qt-6/qt3dcore-qattribute.html

          R Offline
          R Offline
          RUXX
          wrote on 16 Apr 2024, 06:38 last edited by RUXX
          #4

          @kshegunov hie you are right, and now i did change the header file that is #include Qt3DRender::QBuffer to Qt3DCore::QBuffer and few errors got solved which where related to undefined error, but there are few errors which im not understanding how to solve. i will attach the image below, if anyone could help me out to resolve would be grateful and indeed helpful

          ABC.png

          J K 2 Replies Last reply 17 Apr 2024, 05:49
          0
          • R RUXX
            16 Apr 2024, 06:38

            @kshegunov hie you are right, and now i did change the header file that is #include Qt3DRender::QBuffer to Qt3DCore::QBuffer and few errors got solved which where related to undefined error, but there are few errors which im not understanding how to solve. i will attach the image below, if anyone could help me out to resolve would be grateful and indeed helpful

            ABC.png

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 17 Apr 2024, 05:49 last edited by
            #5

            @RUXX There is no VertexBuffer in that class anymore. Check https://doc.qt.io/qt-6/qt3dcore-qbuffer.html#QBuffer and adjust your code accordingly.

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

            1 Reply Last reply
            1
            • R RUXX
              16 Apr 2024, 06:38

              @kshegunov hie you are right, and now i did change the header file that is #include Qt3DRender::QBuffer to Qt3DCore::QBuffer and few errors got solved which where related to undefined error, but there are few errors which im not understanding how to solve. i will attach the image below, if anyone could help me out to resolve would be grateful and indeed helpful

              ABC.png

              K Offline
              K Offline
              kshegunov
              Moderators
              wrote on 17 Apr 2024, 11:32 last edited by
              #6

              I think they dropped the distinction, so now you have just buffers whose meaning is determined by the way they're bound.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0
              • R Offline
                R Offline
                RUXX
                wrote on 19 Apr 2024, 05:11 last edited by
                #7

                can anyone tell me where can i modify things in my code to resolve the above errors. i did go through the link provided by @jsulm but i couldn't understand where to modify things. It would really be helpful if someone can help me out in this.

                J 1 Reply Last reply 19 Apr 2024, 06:24
                0
                • R RUXX
                  19 Apr 2024, 05:11

                  can anyone tell me where can i modify things in my code to resolve the above errors. i did go through the link provided by @jsulm but i couldn't understand where to modify things. It would really be helpful if someone can help me out in this.

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 19 Apr 2024, 06:24 last edited by
                  #8

                  @RUXX said in Qt 3d example error:

                  can anyone tell me where can i modify things in my code to resolve the above errors

                  The error messages actually tell you the exact file and line number. And from the error message and the link I gave you it should be clear that it is about the Qt3DCore::QBuffer constructor. So, simply check how the constructor looks like now (in the link I gave you) and change the code accordingly. Hint: you need to remove the VertexBuffer parameter from the constructor call...

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

                  R 1 Reply Last reply 22 Apr 2024, 08:44
                  0
                  • J jsulm
                    19 Apr 2024, 06:24

                    @RUXX said in Qt 3d example error:

                    can anyone tell me where can i modify things in my code to resolve the above errors

                    The error messages actually tell you the exact file and line number. And from the error message and the link I gave you it should be clear that it is about the Qt3DCore::QBuffer constructor. So, simply check how the constructor looks like now (in the link I gave you) and change the code accordingly. Hint: you need to remove the VertexBuffer parameter from the constructor call...

                    R Offline
                    R Offline
                    RUXX
                    wrote on 22 Apr 2024, 08:44 last edited by
                    #9

                    @jsulm thank you for providing solution but when i tried the solution as per you mentioned I'm getting total of 90 errors that looks something like this,

                    CubeSphere3.png

                    J 1 Reply Last reply 22 Apr 2024, 08:49
                    0
                    • R RUXX
                      22 Apr 2024, 08:44

                      @jsulm thank you for providing solution but when i tried the solution as per you mentioned I'm getting total of 90 errors that looks something like this,

                      CubeSphere3.png

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 22 Apr 2024, 08:49 last edited by jsulm
                      #10

                      @RUXX So, did you add (like the documentation shows, which you should consult)

                      #include <Qt3DCore/QBuffer>
                      

                      to cubesphere.cpp?

                      And please if you post errors always post them as text, not pictures. And always post the very first error message.

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

                      R 1 Reply Last reply 22 Apr 2024, 09:11
                      1
                      • J jsulm
                        22 Apr 2024, 08:49

                        @RUXX So, did you add (like the documentation shows, which you should consult)

                        #include <Qt3DCore/QBuffer>
                        

                        to cubesphere.cpp?

                        And please if you post errors always post them as text, not pictures. And always post the very first error message.

                        R Offline
                        R Offline
                        RUXX
                        wrote on 22 Apr 2024, 09:11 last edited by
                        #11

                        @jsulm yes i have included <Qt3DCore/ QBuffer> in .cpp file.
                        Sorry for the inconvenience caused, i will keep it in mind while posting errors.

                        J 1 Reply Last reply 22 Apr 2024, 09:12
                        0
                        • R RUXX
                          22 Apr 2024, 09:11

                          @jsulm yes i have included <Qt3DCore/ QBuffer> in .cpp file.
                          Sorry for the inconvenience caused, i will keep it in mind while posting errors.

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 22 Apr 2024, 09:12 last edited by
                          #12

                          @RUXX said in Qt 3d example error:

                          yes i have included <Qt3DCore/ QBuffer> in .cpp file

                          Does it work now or did you already include it before and it does not build?

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

                          R 1 Reply Last reply 22 Apr 2024, 09:17
                          0
                          • J jsulm
                            22 Apr 2024, 09:12

                            @RUXX said in Qt 3d example error:

                            yes i have included <Qt3DCore/ QBuffer> in .cpp file

                            Does it work now or did you already include it before and it does not build?

                            R Offline
                            R Offline
                            RUXX
                            wrote on 22 Apr 2024, 09:17 last edited by
                            #13
                            This post is deleted!
                            J 1 Reply Last reply 22 Apr 2024, 09:43
                            0
                            • R RUXX
                              22 Apr 2024, 09:17

                              This post is deleted!

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 22 Apr 2024, 09:43 last edited by
                              #14

                              @RUXX said in Qt 3d example error:

                              The errors are given below: ....\projects\cubespheretextures\src\cubesphere.cpp:58: error: C2065: 'VertexBuffer': undeclared identifier

                              This was already explained before, I will not repeat the explanation...

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

                              R 1 Reply Last reply 22 Apr 2024, 09:48
                              0
                              • J jsulm
                                22 Apr 2024, 09:43

                                @RUXX said in Qt 3d example error:

                                The errors are given below: ....\projects\cubespheretextures\src\cubesphere.cpp:58: error: C2065: 'VertexBuffer': undeclared identifier

                                This was already explained before, I will not repeat the explanation...

                                R Offline
                                R Offline
                                RUXX
                                wrote on 22 Apr 2024, 09:48 last edited by
                                #15

                                @jsulm ok thank you for the help. Indeed grateful.

                                1 Reply Last reply
                                0

                                7/15

                                19 Apr 2024, 05:11

                                • Login

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