Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

3D Install Qt6



  • In the instructions for conan it states that the three entries must be prepended to the $PATH environment variable. With Win 10 I have not choice but to permanently add the entries; however, with Mint Linux I am not sure. I assume the I will use /home/bob/Qt/Tools/Cmake/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Ninja:$PATH, but leaves me with two question: 1. What linux command do I use, export? 2. Will the environment variables be permanently set? Thanks in advance for the indulgence, I learned Unix over 30 years ago and have forgotten it.


  • Lifetime Qt Champion

    Hi,

    export is the right command for the terminal.

    If you want to make it permanent, you should modify your .bashrc, .bash_profile or corresponding shell configuration file.



  • @SGaist One question still remains: will those changes be required later?


  • Lifetime Qt Champion

    I haven't read the content of these instructions so I currently do not know their scope.

    Can you point me to them ?



  • @ofmrew I tried:

    export /home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
    bash: export: `/home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin': not a valid identifier

    They are in Qt Forum at: Qt6 Add-on src package build using Conan package manager



  • @ofmrew said in 3D Install Qt6:

    export /home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH

    My mistake I forgot to assign to PATH:

    export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH

    That worked.



  • @ofmrew Trying to install 3D I used and got:

    bob@bob-linux:~$ export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
    bob@bob-linux:~$ cd /home/bob/Qt/Conan3D
    bob@bob-linux:~/Qt/Conan3D$ conan install qt3d/6.0.0@qt/final --build=missing --profile=G:/Tools/Conan/profiles/'''qt-6.0.0-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deploy

    Command 'conan' not found, did you mean:

    command 'conman' from deb conman (0.2.7-1build2)

    Try: sudo apt install <deb name>

    It looks like the environment variables were not set. Should I just modify the code to show the paths?


  • Lifetime Qt Champion

    Where is the Conan executable locate ?



  • @ofmrew It is located in /home/bob/Qt/Tools/Conan which is one of the paths prepended to PATH.


  • Lifetime Qt Champion

    You have a typo in your export, it's Tools not tools.



  • @SGaist Thanks. My eyes are not what they used to be.

    I made the change but it failed because the profiles should reference qt-6.0.1-gcc-x86_64. But when I make that change I get:

    bob@bob-linux:~$ export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
    bob@bob-linux:~$ cd /home/bob/Qt/Conan3D
    bob@bob-linux:~/Qt/Conan3D$ conan install qt3d/6.0.0@qt/final --build=missing --profile=G:/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deploy
    ERROR: Profile not found: G:/Tools/Conan/profiles/qt-6.0.1-gcc-x86_64
    bob@bob-linux:~/Qt/Conan3D$

    This is a copy of the file name: qt-6.0.1-gcc-x86_64. Am I going blind?


  • Lifetime Qt Champion

    Something I find strange is that there are three quotes around the profile name.



  • @SGaist I copied this from the instructions: --profile=G:/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64'''

    One more question. If I am going to use QtCreator for the 3D programming should I use -g=qmake?


  • Lifetime Qt Champion

    I would try without all the quotes.

    No, Qt Creator can handle both cmake and qmake project.
    And I think it's unrelated in this context, Qt 6 used cmake as build system.



  • @SGaist Still cannot find it:

    conan install qt3d/6.0.0@qt/final --build=missing --profile=G:/Tools/Conan/profiles/qt-6.0.1-gcc-x86_64 -s build_type=Release -g cmake_paths -g=cmake -g deploy
    ERROR: Profile not found: G:/Tools/Conan/profiles/qt-6.0.1-gcc-x86_64


  • Lifetime Qt Champion

    Wait... why are you using a Windows style path while building on Linux ?



  • @SGaist Switching between Linux and Win 10 has its hazards. Made the change and got deep into it all the way to:
    CMake Generate step failed. Build files cannot be regenerated correctly.
    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 120
    self.run('%s "%s" %s' % (self._get_qtcmake(), self.source_folder, cmake.command_line))
    ConanException: Error 1 while executing /home/bob/Qt/6.0.1/gcc_64/bin/qt-cmake "/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="7.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="/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/_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
    using:
    export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
    cd /home/bob/Qt/Conan3D
    conan install qt3d/6.0.1@qt/final --build=missing --profile=/home/bob/Qt/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deploy

    What did I screw up this time?



  • @ofmrew I got a number of CMake Errors before the line: CMake Generate step failed. Build files cannot be regenerated correctly. I did not include them because there is a limit on the size of a post, been down that road already today. An example is:

    CMake Error at /home/bob/Qt/6.0.1/gcc_64/lib/cmake/Qt6/QtModuleHelpers.cmake:48 (add_library):
    Target "3DExtras" links to target "XKB::XKB" 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/extras/CMakeLists.txt:7 (qt_internal_add_module)

    Any suggestions?


  • Lifetime Qt Champion

    Missing libxkbcommon related development package ?



  • @SGaist said in 3D Install Qt6:

    libxkbcommon

    What is that and were do I find it?


  • Lifetime Qt Champion

    It's one dependency of the xcb plugin and your distribution package manager should provide it.



  • @SGaist It is not included in the Mint Software Manager.



  • @ofmrew Installed it. Now I get:

    -export PATH=/home/bob/Qt/Tools/bin:/home/bob/Qt/Tools/Conan:/home/bob/Qt/Tools/Ninja:$PATH
    bob@bob-linux:/$ cd /home/bob/Qt/Conan3D
    bob@bob-linux:~/Qt/Conan3D$ conan install qt3d/6.0.1@qt/final --build=missing --profile=/home/bob/Qt/Tools/Conan/profiles/'''qt-6.0.1-gcc-x86_64''' -s build_type=Release -g cmake_paths -g=cmake -g deploy
    Configuration:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=7.5
    os=Linux
    [options]
    qt6=6.0.1
    [build_requires]
    [env]
    QT_PATH=/home/bob/Qt/6.0.1/gcc_64
    qt3d/6.0.1@qt/final: WARN: Package binary is corrupted, removing: 9105b5b4ab5d474532cfc28699da368141e8a4cf
    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:9105b5b4ab5d474532cfc28699da368141e8a4cf - Build

    Installing (downloading, building) binaries...
    qt3d/6.0.1@qt/final: WARN: Build folder is dirty, removing it: /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
    qt3d/6.0.1@qt/final: Copying sources to build folder
    qt3d/6.0.1@qt/final: Building your package in /home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf
    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: /home/bob/Qt/6.0.1/gcc_64
    CMAKE_PREFIX_PATH for 'qt3d/6.0.1' build is: /home/bob/Qt/6.0.1/gcc_64
    -- The CXX compiler identification is GNU 9.3.0
    -- The C compiler identification is GNU 9.3.0
    -- Check for working CXX compiler: /usr/bin/g++
    -- Check for working CXX compiler: /usr/bin/g++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Check if compiler accepts -pthread
    -- Check if compiler accepts -pthread - yes
    -- Found Threads: TRUE
    -- Performing Test HAVE_STDATOMIC
    -- Performing Test HAVE_STDATOMIC - Success
    -- Found WrapAtomic: TRUE
    -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    -- Found WrapOpenGL: TRUE
    -- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
    -- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "0.10.0", minimum required is "0.5.0")
    -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
    -- Could NOT find WrapOpenSSLHeaders (missing: WrapOpenSSLHeaders_FOUND)
    -- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
    -- Could NOT find Qt6Gamepad (missing: Qt6Gamepad_DIR)
    -- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
    -- Could NOT find Qt6ShaderTools (missing: Qt6ShaderTools_DIR)
    -- Check for feature set changes
    -- Using installed syncqt found at: /home/bob/Qt/6.0.1/gcc_64/libexec/syncqt.pl
    -- Running syncqt for module: 'Qt3DCore'
    -- Performing Test HAVE_DASH_UNDEFINED_SYMBOLS
    -- Performing Test HAVE_DASH_UNDEFINED_SYMBOLS - Success
    -- Performing Test HAVE_DASH_DASH_NO_UNDEFINED
    -- Performing Test HAVE_DASH_DASH_NO_UNDEFINED - Success
    -- Running syncqt for module: 'Qt3DLogic'
    -- Running syncqt for module: 'Qt3DInput'
    -- Running syncqt for module: 'Qt3DRender'
    -- Running syncqt for module: 'Qt3DExtras'
    -- Running syncqt for module: 'Qt3DAnimation'
    -- Running syncqt for module: 'Qt3DQuick'
    -- Running syncqt for module: 'Qt3DQuickRender'
    -- Running syncqt for module: 'Qt3DQuickScene2D'
    -- Running syncqt for module: 'Qt3DQuickExtras'
    -- Running syncqt for module: 'Qt3DQuickInput'
    -- Running syncqt for module: 'Qt3DQuickAnimation'
    -- Could NOT find WrapAssimp (missing: WrapAssimp_FOUND) (Required is at least version "5")
    -- Performing Test Assimp
    -- Performing Test Assimp - Failed
    -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
    -- Performing Test Autodesk FBX
    -- Performing Test Autodesk FBX - Failed
    -- The following packages have been found:

    • Qt6BuildInternals
    • Qt6CoreTools (required version >= 6.0.1)
    • Qt6Core
    • Qt6Concurrent
    • Qt6WidgetsTools (required version >= 6.0.1)
    • OpenGL
    • XKB (required version >= 0.5.0), XKB API common to servers and clients., http://xkbcommon.org
    • Qt6GuiTools (required version >= 6.0.1)
    • Qt6Widgets
    • Qt6QmlTools (required version >= 6.0.1)
    • Qt6Qml
    • Qt6Quick
    • Qt6OpenGL
    • Qt6 (required version >= 6.0.1)

    -- The following OPTIONAL packages have not been found:

    • OpenSSL
    • WrapOpenSSLHeaders
    • Qt6Gamepad
    • Vulkan
    • Qt6ShaderTools
    • WrapAssimp (required version >= 5)
    • ZLIB

    Configure summary:

    Qt3D Core:
    Use SSE2 instructions .................. yes
    Use AVX2 instructions .................. no
    Animation aspect ....................... yes
    Extras aspect .......................... yes
    Input aspect ........................... yes
    Logic aspect ........................... yes
    Render aspect .......................... yes
    Qt3D Scene Parsers:
    Assimp ................................. yes
    System Assimp .......................... no
    Qt3D Geometry Loaders:
    Autodesk FBX ........................... no
    Qt3D Renderers:
    OpenGL Renderer ........................ yes
    RHI Renderer ........................... yes

    -- Configuring done
    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)

    -- Generating done
    CMake Warning:
    Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DATAROOTDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    CONAN_COMPILER
    CONAN_COMPILER_VERSION
    CONAN_CXX_FLAGS
    CONAN_C_FLAGS
    CONAN_EXPORTED
    CONAN_IN_LOCAL_CACHE
    CONAN_LIBCXX
    CONAN_SHARED_LINKER_FLAGS
    

    CMake Generate step failed. Build files cannot be regenerated correctly.
    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 120
    self.run('%s "%s" %s' % (self._get_qtcmake(), self.source_folder, cmake.command_line))
    ConanException: Error 1 while executing /home/bob/Qt/6.0.1/gcc_64/bin/qt-cmake "/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="7.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="/home/bob/.conan/data/qt3d/6.0.1/qt/final/build/9105b5b4ab5d474532cfc28699da368141e8a4cf/_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


  • Lifetime Qt Champion

    Well, Mint seems to have it.



  • @SGaist Not really I had to find it on the Web.


  • Lifetime Qt Champion

    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 should have waited, I found zlib1g-dev, is that what I need to install?



  • @ofmrew Again, I also found zlib 1.2.11, but no way to install.



  • @ofmrew I installed zlib1g-dev and it might be working!



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


  • Lifetime Qt Champion

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

    From memory, you need that SDK.



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


  • Lifetime Qt Champion

    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.


  • Lifetime Qt Champion

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


  • Lifetime Qt Champion

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



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



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


Log in to reply