3D Install Qt6
-
IIRC, Qt provides a set of shortcut for command prompts preconfigured for use. You should use these.
As for your PATH changes, did you check where exactly g++ is located ?
-
@SGaist I am learning more than I never wanted to know about Linux and Win 10. Back in 1990 when I was at the announcement of Win NT I would have loved this stuff, but now I just want to program 3D graphics.
- I searched for g++ and did not find it, but I did find a number of g++ prefixed by a compiler.
- Does the Installer actually install mingw or just a module, i.e., do I need to install mingw64 on my computer. One post in stackoverflow "https://stackoverflow.com/questions/22873884/how-do-i-run-configure-with-mingw" states that both mingw and msys must be installed. I that correct? If so, then do I follow the steps that post suggest?
-
You do not need to install MinGW independently. The online installer as well as the Maintenance Tool gives you the option to install the version used for the pre-built binaries.
-
No, it does not.
-
@ofmrew Back to Mint Linux. I found an Internet post on how to test the Vulkan installataion: https://linuxconfig.org/install-and-test-vulkan-on-linux. I installed Steam and DoTA 2. It seemed to run without a problem. So now I am really confused about the conan message: /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;It occurred at: [ 48%] Building CXX object src/render/CMakeFiles/3DRender.dir/surfaces/vulkaninstance.cpp.o
The final part of the log:
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 .
If the Vulkan game DoTA runs, which implies that Vulkan is correctly installed, then (1) is it a bug or is there an error in my statement:
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=qmake -g qmake_paths -g cmake_paths -g=cmake -g deployWhat is my next move?
-
No include missing from that file ?
-
I meant is there any include statement missing from that file ? It should not but who knows.
-
@SGaist I looked but I could not see any problem. I was about to run a validation on the installation of Valkan, but then I used the maintenance tool to get the latest. There seems to be that some files are out of synch, for example qt3d/6.0.1@qt/final is required but then --profile=/home/bob/Qt/Tools/Conan/profiles/'''qt-6.0.2-gcc-x86_64''' is required. Now I get:
conan install qt3d/6.0.1@qt/final --build=missing --profile=/home/bob/Qt/Tools/Conan/profiles/'''qt-6.0.2-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.2
[build_requires]
[env]
QT_PATH=/home/bob/Qt/6.0.2/gcc_64
qt3d/6.0.1@qt/final is locked by another concurrent conan process, wait...
If not the case, quit, and do 'conan remove --locks', which does nothing!MY question is: has anyone actually downloaded qt63d and got it to work, for me neither win 10 nor mint linux has been successful.
Maybe someone should look at this!
-
@ofmrew I think I found the problem:
Vulkan Configurator
Vulkan Development Status:- Layers override: "Validation" configuration
- $VULKAN_SDK environment variable not set
- Could not find a Vulkan Loader.
However, this is where my lack of Linux skills is killing me: I am not sure how to permanently set the environment variables. I have easily set then in Windows 10, but my use of vi was last in 1990 and even then my skills were only marginal. I would appreciate some help.
-
I wonder if related to this Conan bug ?
Maybe clearing the cache might help.
-
Back to win 10 3D install. For anyone that might wonder how to execute conan on win 10: click the start button, then type cmd and you should see an option like Qt 6.02 (MinGW 8.1.0 64-bit) select it and you will have the correct Command Prompt.
I got past finding Vulkan, but then:
-- Found Vulkan: C:/VulkanSDK/1.2.170.0/Lib/vulkan-1.lib
-- 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 Qt6Gamepad (missing: Qt6Gamepad_DIR)
-- Could NOT find Qt6ShaderTools (missing: Qt6ShaderTools_DIR)
-- Check for feature set changes
CMake Error at C:/Qt/6.0.2/mingw81_64/lib/cmake/Qt6/QtSyncQtHelpers.cmake:7 (message):
Perl needs to be available to build Qt.
Call Stack (most recent call first):
C:/Qt/6.0.2/mingw81_64/lib/cmake/Qt6/QtSyncQtHelpers.cmake:12 (qt_ensure_perl)
C:/Qt/6.0.2/mingw81_64/lib/cmake/Qt6/QtModuleHelpers.cmake:194 (qt_ensure_sync_qt)
src/core/CMakeLists.txt:7 (qt_internal_add_module)-- Configuring incomplete, errors occurred!
See also "C:/Users/rwill/.conan/data/qt3d/6.0.1/qt/final/build/0f29c7292f66ab3b189fa2809bdfcf230d253f0f/CMakeFiles/CMakeOutput.log".
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-devLook like I am missing OpenSSL and Perl. Do I need to install those or should they have been installed? Making some progress!