mingw32.lib missing from distribution
-
I just downloaded Qt 6.6.2. It was the "Desktop" installation package.
I'm on a 64-bit machine using Win 11.
I'm trying to build the calcuator example from the demos dir.
The link fails because it cannot find mingw32.lib, which is not present in the distribution.
I was using the default mingw_64 compiler (it's the default kit), but for whatever reason that it was attempting to follow build instructions in a *.vcxproj file. (Why? Isn't that a MSVC++ thing?)
I was unable to bulid the calculator example using the default mingw_64 kit.
I have MSVC installed (VS 2022 v17.9), so I used MSVC as another kit for the calculator example project.
However, building with MSVC fails because it needs ming32.lib to remap the symbols. The link fails because it cannot find definitions for another of the functions declared in QtCore.
So what is the intended mechanism for building the Qt examples on Windows? Has anyone been able to do this successfully, using either the mingw_64 compiler or MSVC 2022?
Does anyone have a mingw32.lib in their Qt distribution? If you don't have that lib, how were you able to build a Qt project without it?
-
@matthewjheaney said in mingw32.lib missing from distribution:
However, building with MSVC fails because it needs ming32.lib to remap the symbols.
Building with MSVC should not require ming32.lib. I guess you did not do a complete rebuild after your first attempt to build with MinGW. So, delete build folder and build again with MSVC.
-
@matthewjheaney i suspect that in your environment there any other unix-ish things in your %PATH%, like. cygwin, or msys, perl, ruby, ... or other versions of mingw which are conflicting with Mingw of the kit
-
I had been trying link to .a files on a Windows machine. That's why I thought I needed the mingw32.lib file.
But that's not how a Windows build works. I learned from the video here:
that what I should have done is used a custom install to bring in the Windows library files, then link those in the normal way.
Thanks everyone for the responses.