Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. 3D Install Qt6
Forum Updated to NodeBB v4.3 + New Features

3D Install Qt6

Scheduled Pinned Locked Moved Solved Qt 6
79 Posts 2 Posters 31.1k 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 SGaist

    Looks like Vulkan is not as optional as stated in your logs above.

    From memory, you need that SDK.

    O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #33

    @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?

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

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      O 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #35

        @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.

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

          @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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          O 1 Reply Last reply
          0
          • SGaistS SGaist

            @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.

            O Offline
            O Offline
            ofmrew
            wrote on last edited by
            #37

            @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-utils

            But 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?

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

              Looks like there's a missing include in the cpp file that triggers the error.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              O 1 Reply Last reply
              0
              • SGaistS SGaist

                Looks like there's a missing include in the cpp file that triggers the error.

                O Offline
                O Offline
                ofmrew
                wrote on last edited by
                #39

                @SGaist That looks like one of the downloaded files: /home/bob/Qt/6.0.1/gcc_64/include/QtGui, but I am not sure if it is my problem or a bug? Any ideas?

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  ofmrew
                  wrote on last edited by
                  #40

                  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 deploy

                  cmd /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.

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

                    What if you use backslashes for the path to the profile ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    O 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      What if you use backslashes for the path to the profile ?

                      O Offline
                      O Offline
                      ofmrew
                      wrote on last edited by
                      #42

                      @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.

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

                        IIRC, you have the option to get it from the MaintenanceTool.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        O 1 Reply Last reply
                        0
                        • O ofmrew

                          @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.

                          O Offline
                          O Offline
                          ofmrew
                          wrote on last edited by
                          #44

                          @ofmrew I looked at Qt\Tools and there is a CMake_64. Should this have been used?

                          1 Reply Last reply
                          0
                          • SGaistS SGaist

                            IIRC, you have the option to get it from the MaintenanceTool.

                            O Offline
                            O Offline
                            ofmrew
                            wrote on last edited by
                            #45

                            @SGaist I do not see CMake as something that can be installed, unless I am looking in the wrong place. Any help would be appreciated.

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

                              There's a separate entry in the Maintenance Tool to select Conan as well. You should found it there.

                              How did you install the current version you have ?

                              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
                              • O ofmrew

                                @SGaist I do not see CMake as something that can be installed, unless I am looking in the wrong place. Any help would be appreciated.

                                O Offline
                                O Offline
                                ofmrew
                                wrote on last edited by
                                #47

                                @ofmrew I got CMake installed, but now I get:
                                Microsoft Windows [Version 10.0.19041.804]
                                (c) 2020 Microsoft Corporation. All rights reserved.

                                C:\Users\rwill>cd c:\Qt\Conan3D
                                The system cannot find the path specified.

                                C:\Users\rwill>
                                C:\Users\rwill>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
                                Configuration:
                                [settings]
                                arch=x86_64
                                arch_build=x86_64
                                build_type=Release
                                compiler=gcc
                                compiler.libcxx=libstdc++11
                                compiler.version=5
                                os=Windows
                                os_build=Windows
                                [options]
                                qt6=6.0.2
                                [build_requires]
                                [env]
                                CC=gcc
                                CXX=g++
                                QT_PATH=C:\Qt\6.0.2/mingw81_64
                                qt3d/6.0.1@qt/final: WARN: Package binary is corrupted, removing: 0f29c7292f66ab3b189fa2809bdfcf230d253f0f
                                Installing package: qt3d/6.0.1@qt/final
                                Requirements
                                qt3d/6.0.1@qt/final from local cache - Cache
                                Packages
                                qt3d/6.0.1@qt/final:0f29c7292f66ab3b189fa2809bdfcf230d253f0f - Build

                                Installing (downloading, building) binaries...
                                qt3d/6.0.1@qt/final: WARN: Build folder is dirty, removing it: C:\Users\rwill.conan\data\qt3d\6.0.1\qt\final\build\0f29c7292f66ab3b189fa2809bdfcf230d253f0f
                                qt3d/6.0.1@qt/final: Copying sources to build folder
                                qt3d/6.0.1@qt/final: Building your package in C:\Users\rwill.conan\data\qt3d\6.0.1\qt\final\build\0f29c7292f66ab3b189fa2809bdfcf230d253f0f
                                qt3d/6.0.1@qt/final: Generator txt created conanbuildinfo.txt
                                qt3d/6.0.1@qt/final: Calling build()
                                CMAKE_PREFIX_PATH for 'qt3d/6.0.1' build is: C:\Qt\6.0.2/mingw81_64
                                CMAKE_PREFIX_PATH for 'qt3d/6.0.1' build is: C:\Qt\6.0.2/mingw81_64
                                CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
                                CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
                                CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
                                CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
                                -- Configuring incomplete, errors occurred!
                                qt3d/6.0.1@qt/final:
                                qt3d/6.0.1@qt/final: ERROR: Package '0f29c7292f66ab3b189fa2809bdfcf230d253f0f' build failed
                                qt3d/6.0.1@qt/final: WARN: Build folder C:\Users\rwill.conan\data\qt3d\6.0.1\qt\final\build\0f29c7292f66ab3b189fa2809bdfcf230d253f0f
                                ERROR: qt3d/6.0.1@qt/final: Error in build() method, line 120
                                self.run('%s "%s" %s' % (self._get_qtcmake(), self.source_folder, cmake.command_line))
                                ConanException: Error 1 while executing C:\Qt\6.0.2\mingw81_64\bin\qt-cmake.bat "C:\Users\rwill.conan\data\qt3d\6.0.1\qt\final\build\0f29c7292f66ab3b189fa2809bdfcf230d253f0f" -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="5" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="C:\Users\rwill.conan\data\qt3d\6.0.1\qt\final\build\0f29c7292f66ab3b189fa2809bdfcf230d253f0f_install_tmp" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DCMAKE_VERBOSE_MAKEFILE="ON" -Wno-dev

                                Any Ideas?

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

                                  AFAIK, it should target Ninja.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  O 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    AFAIK, it should target Ninja.

                                    O Offline
                                    O Offline
                                    ofmrew
                                    wrote on last edited by
                                    #49

                                    @SGaist I am not sure I understand. What should tartget Ninja.

                                    And what about the message:
                                    qt3d/6.0.1@qt/final: WARN: Package binary is corrupted, removing: 0f29c7292f66ab3b189fa2809bdfcf230d253f0f

                                    I checked and the path to ninja is in PATH.

                                    What do I need to do?

                                    O 1 Reply Last reply
                                    0
                                    • O ofmrew

                                      @SGaist I am not sure I understand. What should tartget Ninja.

                                      And what about the message:
                                      qt3d/6.0.1@qt/final: WARN: Package binary is corrupted, removing: 0f29c7292f66ab3b189fa2809bdfcf230d253f0f

                                      I checked and the path to ninja is in PATH.

                                      What do I need to do?

                                      O Offline
                                      O Offline
                                      ofmrew
                                      wrote on last edited by
                                      #50

                                      @ofmrew Another question, does the message:
                                      CMAKE_PREFIX_PATH for 'qt3d/6.0.1' build is: C:\Qt\6.0.2/mingw81_64
                                      CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
                                      CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
                                      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
                                      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
                                      indicate a problem with the CMake installation and if so how can I check it?

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

                                        Did you open a command prompt pre-configured for MinGW ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        O 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          Did you open a command prompt pre-configured for MinGW ?

                                          O Offline
                                          O Offline
                                          ofmrew
                                          wrote on last edited by
                                          #52

                                          @SGaist I have heard that, but I well look it up.

                                          O 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 Extensions
                                          • Unsolved