[Interest] Errors while building Qt 6 on Windows

EXT Mitch Curtis mitch.curtis at qt.io
Tue Feb 21 03:37:17 CET 2023


> -----Original Message-----
> From: Interest <interest-bounces at qt-project.org> On Behalf Of Alexey
> Edelev
> Sent: Monday, 20 February 2023 9:24 PM
> To: Daljit Singh <daljit97 at live.com>
> Cc: Qt Interest <interest at qt-project.org>
> Subject: Re: [Interest] Errors while building Qt 6 on Windows
> 
> Hi Daljit,
> 
> Please remove C:/Strawberry from path. before running configure. Or at
> least please make sure that it goes after the mingw provided by Qt.

Is this something that should be added to https://doc.qt.io/qt-6/windows-building.html#build-tools?
 
> Thanks!
> Regards,
> Alexey.
> 
> 
> пн, 20 февр. 2023 г. в 14:20, Daljit Singh <daljit97 at live.com
> <mailto:daljit97 at live.com> >:
> 
> 
> 	Hi all,
> 
> 	I’m trying to build Qt 6 on Windows 11, but I’m getting some errors
> when I run ./configure that I can’t understand the cause of.
> 
> 	I used the following instructions:
> 
> 
> 
> 	 git clone git://code.qt.io/qt/qt5.git <http://code.qt.io/qt/qt5.git>  qt
> 	 git checkout dev
> 	 perl ./init-repository --module-
> subset=qtbase,qtshadertools,qtdeclarative
> 
> 
> 
> 	However, when I run ./configure I get these errors:
> 
> 
> 
> 	CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:466
> (message):
> 	  Unable to build syncqt: Change Dir:
> 
> C:/Qt/6.5.0/qt6_source/qt/qtbase/src/tools/syncqt/configure_time_bins
> 
> 
> 
> 	  Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe && [1/1] Linking
> CXX
> 	  executable C:\Qt\6.5.0\qt6_source\qt\qtbase\bin\syncqt.exe
> 
> 	  FAILED: C:/Qt/6.5.0/qt6_source/qt/qtbase/bin/syncqt.exe
> 
> 	  cmd.exe /C "cd .  && C:\Strawberry\c\bin\c++.exe -O2 -g -
> DNDEBUG
> 	  CMakeFiles/syncqt.dir/main.cpp.obj -o
> 	  C:\Qt\6.5.0\qt6_source\qt\qtbase\bin\syncqt.exe
> 	  -Wl,--out-implib,libsyncqt.dll.a
> 	  -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -
> luser32
> 	  -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
> 	  -ladvapi32 && cd ."
> 
> 
> 	  C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-
> mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> 	  CMakeFiles/syncqt.dir/main.cpp.obj: in function
> 
> `std::filesystem::__cxx11::operator==(std::filesystem::__cxx11::path
> 	  const&, std::filesystem::__cxx11::path const&)':
> 
> 
> 	  C:/Strawberry/c/lib/gcc/x86_64-w64-
> mingw32/8.3.0/include/c++/bits/fs_path.h:514:
> 	  undefined reference to
> 
> `std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path
> 	  const&) const'
> 
> 
> 
> 	The full log can seen here https://pastebin.com/8jZ4pA3E
> <https://pastebin.com/8jZ4pA3E>
> 
> 
> 
> 	Does anyone have any clue on what might be the problem?
> 
> 
> 
> 	Best,
> 	Daljit
> 
> 	_______________________________________________
> 	Interest mailing list
> 	Interest at qt-project.org <mailto:Interest at qt-project.org>
> 	https://lists.qt-project.org/listinfo/interest
> 



More information about the Interest mailing list