[Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?
Thiago Macieira
thiago.macieira at intel.com
Sat Oct 14 21:40:31 CEST 2023
On Saturday, 14 October 2023 08:59:01 PDT مهدي شينون wrote:
> Hi Haowei Hsu,
>
>
> According the log posted by you, cmake is picking libraries outside of
> MINGW64 environment i.e. from MSYS environment and `C:\Program Files\`
> which are both not compatible with MinGW-w64.
Why wouldn't they be?
The only one cmake says it found in Program Files is PostgreSQL:
-- [QtBase] Found PostgreSQL: C:/Program Files/PostgreSQL/14/lib/libpq.lib
(found version "14.5")
libpq is a C API, so it is ABI-compatible with MinGW.... provided it's the
same CRT of course. This is a .lib, so it's impossible to know if it's a
static library or a DLL import (because Windows is stupid this way and Visual
Studio makes it even worse), and it's likely trying to link the plugin will
fail, but the problem happened before that point, so it can't be the root
cause.
That said, it's a good idea to install the mingw64-postgresql package instead
and not depend on C:/Program Files.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5165 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20231014/2ab09894/attachment.bin>
More information about the Development
mailing list