Why i got error in building qt 3d studio?
-
I tried to build a qt 3d studio from this address but it was not successful,I got an error in step 6 !
my error message is:
Project ERROR: Unknown module(s) in QT: quick-private make[1]: *** [Makefile:174: sub-ogl-runtime-static-qmake_all] Error 3 make: *** [/home/ajax/Documents/qt3d/build-ogl-runtime-Desktop-Debug/Makefile:44: sub-src-qmake_all] Error 2 21:40:44: The process "/usr/bin/make" exited with code 2. Error while building/deploying project ogl-runtime (kit: Desktop) When executing step "qmake
how can i fix it?
-
Hi,
If you are using your distribution Qt packages, you shall install the "-private" variants as well.
-
Which distribution are you using ?
-
ubuntu 20
-
Then look for "qtdeclarative5-private-dev" and friends.
-
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 :(
-
@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. -
Because I had an error before installing this
qtbase5-gles-dev
package! So what is this package? Isn't this good for me? -
Yes, I'm right when I delete this package, I'm having trouble making it!
-
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 ? -
Aha ...
so right now i remove thisqtbase5-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"
-
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"
-
Did you clean again in between ?
Are you building from the archive sources or from a git clone ? -
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? -
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 ? -
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/?
-
oh i got my answer! we can use blender application for 3d robot model!
Is qt 3d like a blender?? -
No, blender is a full featured 3D modeling application.
If your talking about the Qt3D module, it can be used to build such applications.
-
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!