Qt Installation Error On Windows System
-
Hi, I'm trying to build Qt SourceCode on my Windows, but there are some errors while configuring the source code, I attached the image also, to help me to resolve an issue.
My Configure Path:../configure -prefix /home/dell-s/STask/Qt6-SourceCode/Qtbugfix -skip qtdoc -skip qttranslations -skip qt3d -skip qtandroidextras -skip webkit -skip pdf -skip qtwebengine -skip qtopcua -skip qtwebview -skip qtmultimedia -skip qtspeech -skip qttools -nomake tests -nomake examples -no-openssl -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -- -DQT_BUILD_TESTS_BY_DEFAULT=OF
I referred to the QtDocumentaion:https://wiki.qt.io/Building_Qt_6_from_Git
-
Hi and welcome to devnet,
From the looks of it you are not using the correct command prompt such as
x64 Native Tools Command Prompt for VS 2022')
as explained in the article you linked. -
Okay, I used what you suggested using the x64 Native Tools Command Prompt for VS 2022') but I got the same error that I posted as an issue.
-
I tried CMD also,if anyone tried tell me how to resolve it
-
Remove perl from your path so MSVC is correctly picked up instead the gcc from perl as you can see in the output.
-
@Shrishashank said in Qt Installation Error On Windows System:
-xcb -xcb-xlib -bundled-xcb-xinput
Why are you setting the X option on windows? are you trying to cross compile from windows to linux?
-
This post is deleted!
-
@Christian-Ehrlicher I did try to (Remove Perl from your path so MSVC ) is giving the same issue
-
@Shrishashank said in Qt Installation Error On Windows System:
is giving the same issue
For sure not - then gcc. exe from the perl path would not get picked up - start with a clean build dir!
what doescl.exe
prints out? -
okay, now I have configured it after giving your suggestions, Thank You to everyone.
I have one more issue now while building help me resolve it.
showing it failed while I was building using this command as suggested in Documentation: cmake --build . --parallel 4
-
@Shrishashank
Read the final error message at least. It tells you that you are mixing x86 and x64 object files/libraries. Looks like you are building for 64-bit but asking it to link with a 32-bit version of the "zip" library stuff. -
Pass
-qt-zlib
to make sure the qt zlib is used and not from somewhere in your OS. -
@Christian-Ehrlicher Do you mean I need to pass in Cmake
-
@Shrishashank said in Qt Installation Error On Windows System:
Do you mean I need to pass in Cmake
What does this mean? You don't call cmake anywhere but configure.bat - and this batch file has a '--help' option where you can find all possible options. One of them is '-qt-zlib'.
-
@Christian-Ehrlicher Okay I get it now, ThankYou
-
Thank You to Everyone who helped me resolve this issue. I'm successfully building the Qt source code.
-
-
-
Hello all, Six days ago, I posted that this issue was solved, but I encountered one more issue while building Qt-SourceCode on Windows.
Could you help me to resolve this issue.