3D Install Qt6
-
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.
-
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 ?
-
@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 - BuildInstalling (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-devAny Ideas?
-
AFAIK, it should target Ninja.
-
-
@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? -
Did you open a command prompt pre-configured for MinGW ?
-
@ofmrew I have two questions:
- In the post "Qt3D 6.0.2 on Windows using MinGW 8.1.0" I note that all of the files use "/". So am I to assume that conan will make the conversion?
- In that same post it was stated "More specifically I opened the appropriate Qt MinGW 8.1.0 command prompt" and executed "conan.exe . . .". Is it absolutely necessary to do that step and if so why is it not noted?
I hope that the documentation writers will look at all of the post being made about the troubles we are having with conan.
-
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.