Error on Qt 6 Building from source for Windows Based
-
@Lemat said in Error on Qt 6 Building from source for Windows Based:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe
I'm not very familiar with Windows build environment, but is that OK?
I mean, it looks like the 64 bit version of cl.exe is being used, but it's strange that the Visual Studio installation went to the x86 folder, as a 32 bit application?Could you please describe your environment? i.e. Windows OS version and platform, same for Visual Studio.
wrote on 26 Jan 2021, 11:46 last edited by@Pablo-J-Rogina
Windows 10 Professional 20H2 19042.685 X64
Microsoft Visual Studio Community 2019
Version 16.8.4i use this same MSVC version to build my Qt x64 apps.
-
@Lemat said in Error on Qt 6 Building from source for Windows Based:
"C:\PROGRA~2\Microsoft Visual Studio\2019\COMMUN~1\VC\AUXILI~1\Build\vcvars64.bat" -o CMakeFiles\cmTC_ea43b.dir\CMakeCXXCompilerABI.cpp.obj -c "C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompilerABI.cpp"
This looks strange. This should be the call to the compiler, but instead vcvars64.bat is called. Can you show your script you created as described in the link (qt6vars.cmd)?
-
or what is the right compiler path ? this one ?: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64
@Lemat I think that path is correct. Visual Studio itself is a x86 application, but it has compiler which generates x86_64 binaries.
-
@Lemat I think that path is correct. Visual Studio itself is a x86 application, but it has compiler which generates x86_64 binaries.
-
wrote on 26 Jan 2021, 12:00 last edited by
should i set a real compiler path in the system environment variable CXX ?? i don't know the real compiler file name. my actual Qt 5.15.2 has detected it automatically. i am looking in her settings to find the compiler file name, but nothing.
-
should i set a real compiler path in the system environment variable CXX ?? i don't know the real compiler file name. my actual Qt 5.15.2 has detected it automatically. i am looking in her settings to find the compiler file name, but nothing.
@Lemat I don't think so. It should work as described on that web page. I don't know why it doesn't work for you.
-
wrote on 26 Jan 2021, 16:23 last edited by
i really need help for that. i tried anything, but nothing. Maybe cmake version ?
-
wrote on 26 Jan 2021, 16:27 last edited by
Tools used:
Cmake version: 3.18.4 x64
Python: 3.7.3 x64
ActivePerl: 5.28 x64
Ninja: 1.10.2 -
Hi,
IIRC, cmake 3.19.2 or newer is recommended but I don't have the source at hand.
-
You should update your cmake version.
-
wrote on 27 Jan 2021, 11:12 last edited by
i tried with cmake 3.19.3, problem still exist
-
Did you restart from a clean state ?
-
What did you do to ensure a clean state ?
-
wrote on 12 Feb 2021, 22:29 last edited by
I Installed Qt 6.0.1 with the online Installer. Too bad for me. Many features such as QWebEngine are removed
-
I Installed Qt 6.0.1 with the online Installer. Too bad for me. Many features such as QWebEngine are removed
wrote on 13 Feb 2021, 00:51 last edited by@Lemat That and other modules will be added in the new versions during the year, read https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond. So you have 2 options: 1) wait or 2) manually compile the modules
-
@Lemat That and other modules will be added in the new versions during the year, read https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond. So you have 2 options: 1) wait or 2) manually compile the modules
wrote on 13 Feb 2021, 09:30 last edited by@eyllanesc ,that is okay !. i just leaned on doc.qt.io. Waiting is the best option for me after failing on this subject title. laugh.
-
Use 5.15 and you're fine. Don't know why everyone needs to use Qt6 when it's documented that it's not feature complete... Qt6 does not have any advantage for an average user at the current state.