building qt from sources - CMake Error at cmake/FindQt5.cmake
-
@GALAV , can you post the branch / version of Qt Creator that you are trying to build?
-
So master branch ...
I assume you have checked that C:\Qt\6.3.1\msvc2019_64 contains a valid Qt 6 installation?
Can you re-run cmake with --trace argument, log this to a file and upload the dump somewhere to inspect? E.g.
del CMakeCache.txt && cmake --trace -DCMAKE_BUILD_TYPE=Debug -G Ninja -DCMAKE_PREFIX_PATH=C:\Qt\6.3.1\msvc2019_64 C:\Users\Administrator\Desktop\QT-CREATOR-SRC >trace.log 2>&1
-
wrote on 18 Jul 2022, 10:23 last edited by
thanks for providing the command.
it seems i don't have the privileges to attach a log file.
-
thanks for providing the command.
it seems i don't have the privileges to attach a log file.
wrote on 18 Jul 2022, 10:42 last edited byhttps://ctxt.io/2/AADgjVtcFw -- tracelog
-
CMake thinks the bitness of the Qt version does not match the bitness of the compiler. And indeed, it seems you're trying to build with the x86 compiler, but the Qt version you reference is 64bit.
If you indeed want to build an x86 binary, you most likely have to build Qt yourself. The installer only offers 64 bit binaries by default.
If choosing x86 was an accident, set up the build environment to 64 bit. For instance, launch cmd.exe and run
"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64
-
wrote on 19 Jul 2022, 12:27 last edited by GalHA
-
@GalHA , Qt Creator master branch now expects Qt 6.2.
https://lists.qt-project.org/pipermail/qt-creator/2022-July/009050.html
So you need to install Qt 6.2 or newer.
-
@GalHA , Qt Creator master branch now expects Qt 6.2.
https://lists.qt-project.org/pipermail/qt-creator/2022-July/009050.html
So you need to install Qt 6.2 or newer.
-
wrote on 20 Jul 2022, 07:44 last edited by
-
@GALAV , cool, then let's mark this thread as solved :)
20/21