Building Qt Applications with MSVC2022
-
Hello,
I've developed a small (very small) Qt Application on MacOS and now, I want to build it on Windows11 using MSVC2022. I've used the online installer to install Qt. Now, I fail to see, what value to pass toQt6_ROOTwhen building the application, using CMake.I've installed Qt under C:\Qt and under C:\Qt\6.11.1\mingw_64 folder that contains the package informations for CMakes
find_package(). I reran the installation to see, if there is support for other compilers / runtimes that I had to include, but I found nothing.Now, I'm a little bit puzzled. Is it possible to use Qt with MSVC2022 with CMake? If so, how?
best regards
Torsten -
Hello,
I've developed a small (very small) Qt Application on MacOS and now, I want to build it on Windows11 using MSVC2022. I've used the online installer to install Qt. Now, I fail to see, what value to pass toQt6_ROOTwhen building the application, using CMake.I've installed Qt under C:\Qt and under C:\Qt\6.11.1\mingw_64 folder that contains the package informations for CMakes
find_package(). I reran the installation to see, if there is support for other compilers / runtimes that I had to include, but I found nothing.Now, I'm a little bit puzzled. Is it possible to use Qt with MSVC2022 with CMake? If so, how?
best regards
Torsten@Torsten-Robitzki said in Building Qt Applications with MSVC2022:
C:\Qt\6.11.1\mingw_64
this is not for MSVC compiler.
Install Qt for MSVC and also install Microsoft Visual Studio build toos (to get the compiler, it is not provided via Qt installer). -
How to install Qt for MSVC? I have not found any support for MSVC in the online installer?
-
T Torsten Robitzki has marked this topic as solved
-
Ok, I rerun the installer again and finally found the option und "Qt".
Thanks a lot!