Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Why i got error in building qt 3d studio?
Qt 6.12 LTS is out! See what's new in the release blog

Why i got error in building qt 3d studio?

Scheduled Pinned Locked Moved Solved Installation and Deployment
34 Posts 2 Posters 7.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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    If you are using your distribution Qt packages, you shall install the "-private" variants as well.

    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
    1
    • E Offline
      E Offline
      EmadDeve20
      wrote on last edited by EmadDeve20
      #3

      Hi @SGaist thank you for your answer :D
      what is private package?
      you can send me link for private package?

      this link can help me?

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

        Which distribution are you using ?

        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
        • E Offline
          E Offline
          EmadDeve20
          wrote on last edited by
          #5

          ubuntu 20

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

            Then look for "qtdeclarative5-private-dev" and friends.

            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
            2
            • E Offline
              E Offline
              EmadDeve20
              wrote on last edited by EmadDeve20
              #7

              actually its works thanks!
              i installed these packages:
              sudo apt install qtbase5-gles-dev qtbase5-private-dev qtdeclarative5-private-dev

              but after finishing install i got this message in my terminal:

              Some of the required modules (qtHaveModule(opengl)) are not available. Skipped.

              So I tried to find a package like that but I did not use it but failed :(

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

                @EmadDeve20 said in Why i got error in building qt 3d studio?:

                qtbase5-gles-dev

                Why this one ?
                I think you want to use the desktop OpenGL variant.

                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
                • E Offline
                  E Offline
                  EmadDeve20
                  wrote on last edited by
                  #9

                  Because I had an error before installing this ‍‍‍‍qtbase5-gles-dev package! So what is this package? Isn't this good for me?

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    EmadDeve20
                    wrote on last edited by
                    #10

                    Yes, I'm right when I delete this package, I'm having trouble making it!

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

                      OpenGL ES is targeted at embedded system although it can also be used with desktop GPUs.

                      Which error do you get ?
                      Did you try from a clean state after adding the new packages ?

                      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
                      • E Offline
                        E Offline
                        EmadDeve20
                        wrote on last edited by EmadDeve20
                        #12

                        Aha ...
                        so right now i remove this qtbase5-gles-dev package. so when i try build it in my terminal i getting this message:

                        sudo make
                        Some of the required modules (qtHaveModule(opengl)) are not available. Skipped.
                        

                        but when i tried to build it in qt creator i getting this message error:

                        /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/SignalsImpl.cpp:1554:10: fatal error: SignalsImpl.moc: No such file or directory
                         1554 | #include "SignalsImpl.moc"
                              |          ^~~~~~~~~~~~~~~~~
                        compilation terminated.
                        make[2]: *** [Makefile:1001: .obj/SignalsImpl.o] Error 1
                        make[2]: *** Waiting for unfinished jobs....
                        make[2]: Leaving directory '/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/src/dm'
                        make[1]: Leaving directory '/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/src'
                        make[1]: *** [Makefile:95: sub-dm-make_first-ordered] Error 2
                        make: *** [Makefile:50: sub-src-make_first] Error 2
                        01:18:43: The process "/usr/bin/make" exited with code 2.
                        Error while building/deploying project ogl-runtime (kit: Desktop)
                        When executing step "Make"
                        
                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          EmadDeve20
                          wrote on last edited by EmadDeve20
                          #13

                          so after this error i go to check my GPU installed or not!
                          I have not seen any drivers for my GPU since then! So I installed and then tried to rebuild and the error message was:

                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/SignalsImpl.cpp:1554:10: fatal error: SignalsImpl.moc: No such file or directory
                           1554 | #include "SignalsImpl.moc"
                                |          ^~~~~~~~~~~~~~~~~
                          compilation terminated.
                          make[2]: *** [Makefile:1009: .obj/SignalsImpl.o] Error 1
                          make[2]: *** Waiting for unfinished jobs....
                          In file included from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/StudioFullSystem.cpp:40:
                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/cores/SimpleAnimationCore.h:99:7: warning: ‘qt3dsdm::CSimpleAnimationCore’ has a field ‘qt3dsdm::CSimpleAnimationCore::m_AnimationMatchesCache’ whose type uses the anonymous namespace [-Wsubobject-linkage]
                             99 | class CSimpleAnimationCore : public CHandleBase, public IAnimationCore
                                |       ^~~~~~~~~~~~~~~~~~~~
                          In file included from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/cores/AnimationCoreProducer.h:32,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/StudioCoreSystem.cpp:34:
                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/cores/SimpleAnimationCore.h:99:7: warning: ‘qt3dsdm::CSimpleAnimationCore’ has a field ‘qt3dsdm::CSimpleAnimationCore::m_AnimationMatchesCache’ whose type uses the anonymous namespace [-Wsubobject-linkage]
                             99 | class CSimpleAnimationCore : public CHandleBase, public IAnimationCore
                                |       ^~~~~~~~~~~~~~~~~~~~
                          make[2]: Leaving directory '/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/src/dm'
                          make[1]: Leaving directory '/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/src'
                          make[1]: *** [Makefile:95: sub-dm-make_first-ordered] Error 2
                          make: *** [Makefile:50: sub-src-make_first] Error 2
                          09:19:15: The process "/usr/bin/make" exited with code 2.
                          Error while building/deploying project ogl-runtime (kit: Desktop)
                          When executing step "Make"
                          

                          Then I installed these packages to fix the problem
                          sudo apt install qt3d5-*

                          right now my error message is:

                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/SignalsImpl.cpp:1554:10: fatal error: SignalsImpl.moc: No such file or directory
                           1554 | #include "SignalsImpl.moc"
                                |          ^~~~~~~~~~~~~~~~~
                          compilation terminated.
                          make[2]: *** [Makefile:1033: .obj/SignalsImpl.o] Error 1
                          make[2]: *** Waiting for unfinished jobs....
                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMGuides.cpp:222:10: fatal error: Qt3DSDMGuides.moc: No such file or directory
                            222 | #include "Qt3DSDMGuides.moc"
                                |          ^~~~~~~~~~~~~~~~~~~
                          compilation terminated.
                          make[2]: *** [Makefile:1497: .obj/Qt3DSDMGuides.o] Error 1
                          In file included from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.cpp:50:
                          /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/StringConversionImpl.h: In member function ‘qt3ds::QT3DSU32 qt3ds::foundation::StringConversion<long long unsigned int>::ToStr(qt3ds::QT3DSU64, qt3ds::foundation::NVDataRef<char>)’:
                          /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/StringConversionImpl.h:157:86: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘qt3ds::QT3DSU64’ {aka ‘long long unsigned int’} [-Wformat=]
                            157 |             return static_cast<QT3DSU32>(_snprintf(buffer.begin(), buffer.size(), "%lu", item));
                                |                                                                                    ~~^   ~~~~
                                |                                                                                      |   |
                                |                                                                                      |   qt3ds::QT3DSU64 {aka long long unsigned int}
                                |                                                                                      long unsigned int
                                |                                                                                    %llu
                          /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/StringConversionImpl.h: In member function ‘qt3ds::QT3DSU32 qt3ds::foundation::StringConversion<long long int>::ToStr(qt3ds::QT3DSI64, qt3ds::foundation::NVDataRef<char>)’:
                          /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/StringConversionImpl.h:174:86: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘qt3ds::QT3DSI64’ {aka ‘long long int’} [-Wformat=]
                            174 |             return static_cast<QT3DSU32>(_snprintf(buffer.begin(), buffer.size(), "%ld", item));
                                |                                                                                    ~~^   ~~~~
                                |                                                                                      |   |
                                |                                                                                      |   qt3ds::QT3DSI64 {aka long long int}
                                |                                                                                      long int
                                |                                                                                    %lld
                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.cpp: In member function ‘virtual void {anonymous}::SNewMetaDataImpl::LoadMaterialClassXML(qt3dsdm::IDOMReader&, qt3dsdm::Qt3DSDMInstanceHandle, const TCharStr&, std::vector<qt3dsdm::SMetaDataLoadWarning>&, const TCharStr&)’:
                          /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.cpp:4015:56: warning: variable ‘value’ set but not used [-Wunused-but-set-variable]
                           4015 |                                         const char8_t *value = "";
                                |                                                        ^~~~~
                          In file included from /usr/include/string.h:495,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/3rdparty/EASTL/UnknownVersion/include/EASTL/algorithm.h:122,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/3rdparty/EASTL/UnknownVersion/include/EASTL/string.h:126,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaDataValue.h:30,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaDataTypes.h:30,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.h:31,
                                           from /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.cpp:33:
                          In function ‘void* memset(void*, int, size_t)’,
                              inlined from ‘void* qt3ds::intrinsics::memZero(void*, qt3ds::QT3DSU32)’ at /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/linux/Qt3DSLinuxIntrinsics.h:154:22,
                              inlined from ‘static void qt3ds::foundation::DiscriminatedUnionGenericBase<TBase, TBufferSize>::zeroBuf(char*) [with TBase = qt3dsdm::SMetaDataValueTraits; unsigned int TBufferSize = 36]’ at /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/Qt3DSDiscriminatedUnion.h:274:71,
                              inlined from ‘static void qt3ds::foundation::DiscriminatedUnionGenericBase<TBase, TBufferSize>::copyConstruct(char*, const char*, qt3ds::foundation::DiscriminatedUnionGenericBase<TBase, TBufferSize>::TIdType) [with TBase = qt3dsdm::SMetaDataValueTraits; unsigned int TBufferSize = 36]’ at /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/Qt3DSDiscriminatedUnion.h:294:24,
                              inlined from ‘qt3ds::foundation::DiscriminatedUnion<TUnionTraits, TBufferSize>::DiscriminatedUnion(const TThisType&) [with TUnionTraits = qt3ds::foundation::DiscriminatedUnionGenericBase<qt3dsdm::SMetaDataValueTraits, 36>; int TBufferSize = 32]’ at /home/ajax/Documents/qt3d/ogl-runtime/src/foundation/Qt3DSDiscriminatedUnion.h:64:35,
                              inlined from ‘qt3dsdm::SMetaDataData::SMetaDataData(const qt3dsdm::SMetaDataData&)’ at /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaDataValue.h:187:52,
                              inlined from ‘qt3dsdm::TMetaDataData {anonymous}::SNewMetaDataImpl::VerifyMetaDataDataType(qt3dsdm::AdditionalMetaDataType::Value, const TMetaDataData&)’ at /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.cpp:1362:16,
                              inlined from ‘void {anonymous}::SNewMetaDataImpl::SetPropertyBaseInfo(qt3dsdm::SMetaPropertyBase&, qt3dsdm::IMetaData::TStrType, qt3dsdm::IMetaData::TStrType, qt3dsdm::IMetaData::TStrType, qt3dsdm::IMetaData::TStrType, qt3dsdm::CompleteMetaDataType::Enum, const qt3dsdm::SValue&, const TMetaDataData&)’ at /home/ajax/Documents/qt3d/ogl-runtime/src/dm/systems/Qt3DSDMMetaData.cpp:1379:39:
                          /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71:33: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ offset [33, 36] from the object at ‘<anonymous>’ is out of the bounds of referenced subobject ‘qt3ds::foundation::DiscriminatedUnion<qt3ds::foundation::DiscriminatedUnionGenericBase<qt3dsdm::SMetaDataValueTraits, 36>, 32>::m_Data’ with type ‘char [32]’ at offset 0 [-Warray-bounds]
                             71 |   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
                                |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          make[2]: Leaving directory '/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/src/dm'
                          make[1]: Leaving directory '/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/src'
                          make[1]: *** [Makefile:95: sub-dm-make_first-ordered] Error 2
                          make: *** [Makefile:50: sub-src-make_first] Error 2
                          09:29:16: The process "/usr/bin/make" exited with code 2.
                          Error while building/deploying project ogl-runtime (kit: Desktop)
                          When executing step "Make"
                          
                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            Did you clean again in between ?
                            Are you building from the archive sources or from a git clone ?

                            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
                            • E Offline
                              E Offline
                              EmadDeve20
                              wrote on last edited by EmadDeve20
                              #15

                              Yes, I cleaned again and I use git clone!

                              I myself do not know where the problem really is, I was confused! I wanted qt 3d for the company I work for. I'm building a working interface to control a robot whose prototype has already been built. But my company wants a nicer version. My boss showed me a sample of it and I thought it was probably made with qt 3d so I tried to install it.
                              Video link: https://www.instagram.com/p/CR3HPScCzkJ/
                              Do you think this ui is made with qt 3d?

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

                                Could be, or it could also be the Unreal Engine.

                                I just realized that you wrote Qt3D and Qt 3D Studio and both are two different things.

                                So your issue is currently to build the module.

                                Which exact version are you trying to build ?
                                Which version of Qt do you have installed ?
                                Since you are using the package of your distribution, why not install the Qt3D package ?

                                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
                                • E Offline
                                  E Offline
                                  EmadDeve20
                                  wrote on last edited by EmadDeve20
                                  #17

                                  Well, in fact, if I want to use a 3D model in qt 3d, shouldn't I build that model in qt 3d studio?

                                  so i can use juts code for create a robot model like this link: https://www.instagram.com/p/CR3HPScCzkJ/?

                                  1 Reply Last reply
                                  0
                                  • E Offline
                                    E Offline
                                    EmadDeve20
                                    wrote on last edited by
                                    #18

                                    oh i got my answer! we can use blender application for 3d robot model!
                                    Is qt 3d like a blender??

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

                                      No, blender is a full featured 3D modeling application.

                                      If your talking about the Qt3D module, it can be used to build such applications.

                                      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
                                      • E Offline
                                        E Offline
                                        EmadDeve20
                                        wrote on last edited by EmadDeve20
                                        #20

                                        I can load and use a model from a blender in qt 3d؟
                                        You saw that robot inside the ui, right? I want to know how to build that robot!

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

                                          See this video

                                          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

                                          • Login

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