Can't find Qt3DExtras
-
I want to put my 3D object into my UI, but I can't use the lib Qt3DExtras like below:

I installed the Qt3D with:

some other libs can be found such as Qt3DCore

but Qt3DExtras can not be found

is there any other ways to install it?@JackczyAf There is no class called Qt3DWindow.
Also, did you addfind_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras)and
find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore)to your CMakeLists.txt file?
-
@JackczyAf There is no class called Qt3DWindow.
Also, did you addfind_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras)and
find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore)to your CMakeLists.txt file?
-
@jsulm
Yes I did
like I said, could not find the package "Qt53DExtas", and there is no error with "Qt3DCore":

But I add these packages at the same time:


@JackczyAf Did you install Qt3D? I'm not sure, but could be that it is not installed by default.
-
@JackczyAf Did you install Qt3D? I'm not sure, but could be that it is not installed by default.
@jsulm
yes I installed it
I just checked the system folder "/usr/lib/x86_64-linux-gnu" and "/usr/lib/x86_64-linux-gnu/cmake" and I found that some files of Qt3DExtras are lost:
there's no "libQt53DExtras.prl"

there's no folder "Qt53DExtras", equals to there's no files "Qt53DExtrasConfig.cmake" and "Qt53DExtrasConfigVersion.cmake":

I'm wondering that if I create these files manually, will it works?
-
@jsulm
yes I installed it
I just checked the system folder "/usr/lib/x86_64-linux-gnu" and "/usr/lib/x86_64-linux-gnu/cmake" and I found that some files of Qt3DExtras are lost:
there's no "libQt53DExtras.prl"

there's no folder "Qt53DExtras", equals to there's no files "Qt53DExtrasConfig.cmake" and "Qt53DExtrasConfigVersion.cmake":

I'm wondering that if I create these files manually, will it works?
-