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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to