3D Install Qt6
-
You are missing the zlib development package.
-
Looks like ZLIB is missing, what is that?
CMake Error at /home/bob/Qt/6.0.1/gcc_64/lib/cmake/Qt6/QtPluginHelpers.cmake:50 (add_library):
Target "AssimpSceneImportPlugin" links to target "ZLIB::ZLIB" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/plugins/sceneparsers/assimp/CMakeLists.txt:7 (qt_internal_add_plugin)CMake Error at /home/bob/Qt/6.0.1/gcc_64/lib/cmake/Qt6/QtPluginHelpers.cmake:50 (add_library):
Target "AssimpSceneImportPlugin" links to target "ZLIB::ZLIB" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/plugins/sceneparsers/assimp/CMakeLists.txt:7 (qt_internal_add_plugin) -
@ofmrew I spoke too soon.
home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp: In lambda function:
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp:54:34: error: invalid use of incomplete type ‘class QVulkanInstance’
54 | QVulkanInstance* v = new QVulkanInstance;
| ^~~~~~~~~~~~~~~
In file included from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/qbackingstore.h:46,
from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/QtGui:17,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCoreDepends:4,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCore:3,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx:5,
from <command-line>:
/home/bob/Qt/6.0.1/gcc_64/include/QtGui/qwindow.h:94:7: note: forward declaration of ‘class QVulkanInstance’
94 | class QVulkanInstance;
| ^~~~~~~~~~~~~~~
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp:61:14: error: invalid use of incomplete type ‘class QVulkanInstance’
61 | v->setLayers({ "VK_LAYER_KHRONOS_validation" });
| ^~
In file included from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/qbackingstore.h:46,
from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/QtGui:17,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCoreDepends:4,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCore:3,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx:5,
from <command-line>:
/home/bob/Qt/6.0.1/gcc_64/include/QtGui/qwindow.h:94:7: note: forward declaration of ‘class QVulkanInstance’
94 | class QVulkanInstance;
| ^~~~~~~~~~~~~~~
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp:63:15: error: invalid use of incomplete type ‘class QVulkanInstance’
63 | if (!v->create())
| ^~
In file included from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/qbackingstore.h:46,
from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/QtGui:17,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCoreDepends:4,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCore:3,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx:5,
from <command-line>:
/home/bob/Qt/6.0.1/gcc_64/include/QtGui/qwindow.h:94:7: note: forward declaration of ‘class QVulkanInstance’
94 | class QVulkanInstance;
| ^~~~~~~~~~~~~~~
make[2]: *** [src/render/CMakeFiles/3DRender.dir/build.make:3815: src/render/CMakeFiles/3DRender.dir/surfaces/vulkaninstance.cpp.o] Error 1
make[2]: Leaving directory '/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf'
make[1]: *** [CMakeFiles/Makefile2:2164: src/render/CMakeFiles/3DRender.dir/all] Error 2
make[1]: Leaving directory '/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf'
make: *** [Makefile:144: all] Error 2
qt3d/6.0.1@qt/final:
qt3d/6.0.1@qt/final: ERROR: Package '9105b5b4ab5d474532cfc28699da368141e8a4cf' build failed
qt3d/6.0.1@qt/final: WARN: Build folder /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
ERROR: qt3d/6.0.1@qt/final: Error in build() method, line 121
self.run('cmake --build . %s' % cmake.build_config)
ConanException: Error 2 while executing cmake --build -
@SGaist Thanks for all your help so far, but exactly what do I need because I have looked and I have yet to find an installer for the Vulkan SDK and QVulkanInstance. I am at a loss. You should know because Qt is part of the Khronos group. Please help, we are so close to having 3D installed.
One other question: can I have both -g=cmake and -g qmake and it I have the latter do I need a -g qmake_paths?
-
The page I linked provides a link to the SDK download page.
@ofmrew said in 3D Install Qt6:
You should know because Qt is part of the Khronos group..
I think there's a mistake here. I do not work for the Qt Company.
-
@SGaist Sorry about that, bad assumption on my part. It makes the help even more outstanding. Can you answer the question: can I have both -g=cmake and -g qmake and it I have the latter do I need a -g qmake_paths?
Also, do you know of a good reference on installing Valkan, I downloaded the sdk from the URL you provided, but I am stuck on how to proceed. Thanks.
-
@ofmrew said in 3D Install Qt6:
Can you answer the question: can I have both -g=cmake and -g qmake and it I have the latter do I need a -g qmake_paths?
Sorry, that one I currently do not know.
@ofmrew said in 3D Install Qt6:
Also, do you know of a good reference on installing Valkan, I downloaded the sdk from the URL you provided, but I am stuck on how to proceed. Thanks.
Which distribution are you using ? For Ubuntu based there are easy to follow instructions.
-
@SGaist said in 3D Install Qt6:
Ubuntu
I got these and executed them:
Ubuntu
AMD It's best to enable a PPA for the latest Mesa drivers. There is a PPA that packages and releases the latest changes straight from Mesa's Git. Add the PPA to your system and update. Then, upgrade your system. It will automatically upgrade your existing Mesa packages.$ sudo add-apt-repository ppa:oibaf/graphics-drivers
$ sudo apt update
$ sudo apt upgrade
When it's done, install the Vulkan packages.apt install libvulkan1 mesa-vulkan-drivers vulkan-utils
NVIDIA Ubuntu also has a great repository for the NVIDIA proprietary drivers. Add it to your system, and update Apt.
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt upgrade
Now, install your drivers and Vulkan.
$ sudo apt install nvidia-graphics-drivers-396 nvidia-settings vulkan vulkan-utilsBut the conan install failed:
final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx -o CMakeFiles/3DRender.dir/surfaces/vulkaninstance.cpp.o -c /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp: In lambda function:
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp:54:34: error: invalid use of incomplete type ‘class QVulkanInstance’
54 | QVulkanInstance* v = new QVulkanInstance;
| ^~~~~~~~~~~~~~~
In file included from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/qbackingstore.h:46,
from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/QtGui:17,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCoreDepends:4,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCore:3,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx:5,
from <command-line>:
/home/bob/Qt/6.0.1/gcc_64/include/QtGui/qwindow.h:94:7: note: forward declaration of ‘class QVulkanInstance’
94 | class QVulkanInstance;
| ^~~~~~~~~~~~~~~
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp:61:14: error: invalid use of incomplete type ‘class QVulkanInstance’
61 | v->setLayers({ "VK_LAYER_KHRONOS_validation" });
| ^~
In file included from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/qbackingstore.h:46,
from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/QtGui:17,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCoreDepends:4,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCore:3,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx:5,
from <command-line>:
/home/bob/Qt/6.0.1/gcc_64/include/QtGui/qwindow.h:94:7: note: forward declaration of ‘class QVulkanInstance’
94 | class QVulkanInstance;
| ^~~~~~~~~~~~~~~
/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/surfaces/vulkaninstance.cpp:63:15: error: invalid use of incomplete type ‘class QVulkanInstance’
63 | if (!v->create())
| ^~
In file included from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/qbackingstore.h:46,
from /home/bob/Qt/6.0.1/gcc_64/include/QtGui/QtGui:17,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCoreDepends:4,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/include/Qt3DCore/Qt3DCore:3,
from /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/src/render/CMakeFiles/3DRender.dir/cmake_pch.hxx:5,
from <command-line>:
/home/bob/Qt/6.0.1/gcc_64/include/QtGui/qwindow.h:94:7: note: forward declaration of ‘class QVulkanInstance’
94 | class QVulkanInstance;
| ^~~~~~~~~~~~~~~
make[2]: *** [src/render/CMakeFiles/3DRender.dir/build.make:3815: src/render/CMakeFiles/3DRender.dir/surfaces/vulkaninstance.cpp.o] Error 1
make[2]: Leaving directory '/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf'
make[1]: *** [CMakeFiles/Makefile2:2164: src/render/CMakeFiles/3DRender.dir/all] Error 2
make[1]: Leaving directory '/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf'
make: *** [Makefile:144: all] Error 2
qt3d/6.0.1@qt/final:
qt3d/6.0.1@qt/final: ERROR: Package '9105b5b4ab5d474532cfc28699da368141e8a4cf' build failed
qt3d/6.0.1@qt/final: WARN: Build folder /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
ERROR: qt3d/6.0.1@qt/final: Error in build() method, line 121
self.run('cmake --build . %s' % cmake.build_config)
ConanException: Error 2 while executing cmake --build .What could be the problem?
-
Looks like there's a missing include in the cpp file that triggers the error.
-
Since the Linux 3D install is at a deadend, I am trying Win 10 but with no success. I am trying:
cd c:\Qt\Conan3D
conan.exe install qt3d/6.0.1@qt/final --build=missing --profile=C:/Qt/Tools/Conan/profiles/'''qt-6.0.2-mingw81_64''' -s build_type=Release -g cmake_paths -g=cmake -g qmake_paths -g=qmake -g deploycmd /k
I checked that the files and directories are correct and the only thing I sees that could cause a problem is "/" versus ""; howevr, I tried it both ways but still got the erro that the Profile was not found.
-
What if you use backslashes for the path to the profile ?
-
@SGaist It was that and the three quotes. The following worked:
cd c:\Qt\Conan3D
conan.exe install qt3d/6.0.1@qt/final --build=missing --profile=C:\Qt\Tools\Conan\profiles\qt-6.0.2-mingw81_64 -s build_type=Release -g cmake_paths -g=cmake -g qmake_paths -g=qmake -g deploy
cmd /k
But I got this error:
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
CMake 3.15.0 or higher is required. You are running version 3.10.1
How do I get a version of cmake that will work with conan on Win 10. -
IIRC, you have the option to get it from the MaintenanceTool.