Why i got error in building qt 3d studio?
-
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! -
Thank You @SGaist !
This video is very useful :D -
Thank You @SGaist Your video is very useful! my Os is ubuntu and i am python developer! so qt has qt 3d quick tutorial for python developers or i have to learn C++?
i searchedqt quick 3d python tutorial
this in my browser and after that this link show mehttps://doc.qt.io/qt-5/quick3d-examples.html
so we have link for python developer or i have to learn C++? -
how can i install
QtQuick3D 1.15
?
i try installQtQuick3D
with thishttps://github.com/qt/qtquick3d
source but inqmake qtquick3d.pro
step i gotCannot find file: qtquick3d.pro.
Error! so i think i need this library for my qml for using(glb/gltf)
file UI right? -
You are on the dev branch which is for Qt 6. You need to checkout the branch matching the Qt version you want to use.
As for QtQuick3D and Python, it looks like there's currently no pre-built bindings available and I currently don't know what their status are.
-
For my last question, if I use qt quick 3d and write backend with c++, I can use blender these right?
This road is inunderstand for me so what I need to know for create a ui like Instagram link in past post?
-
Do you mean use Blender to create the assets like the robot arm ?
-
Yes that's right