public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* libmariadb.pc missing for MinGW toolchains
       [not found] <fdc4e6ab93454c7a8694aac51bd1638a@liebherr.com>
@ 2021-12-11 12:27 ` Manuel Schmitz
  0 siblings, 0 replies; only message in thread
From: Manuel Schmitz @ 2021-12-11 12:27 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

Pkg-config does not detect installed MariaDB Connector/C for MinGW, e.g.
when building some software that connects to MariaDB or MySQL.

The reason is that the pkg-config files are missing in the registries of
pkg-config. (These files could be part of future
mingw64-*-mariadb-connector-c v2.3.3 packages.)

As a quick fix, the attached "libmariadb.pc" files can be placed in the
following directories:
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/

This will enable auto-detection of the MariaDB C connector by Meson,
CMake etc..

Best regards,

Manuel Schmitz

[-- Attachment #2: libmariadb.pc-i686-w64-mingw32 --]
[-- Type: application/octet-stream, Size: 254 bytes --]

prefix=/usr/i686-w64-mingw32/sys-root/mingw
includedir=${prefix}/include/mariadb/
libdir=${prefix}/lib/

Name: libmariadb
Version: 2.3.3
Description: MariaDB Connector/C
Cflags: -I${includedir}
Libs: -L${libdir} -llibmariadb -lz -liconv -lssl -lcrypto



[-- Attachment #3: libmariadb.pc-x86_64-w64-mingw32 --]
[-- Type: application/octet-stream, Size: 256 bytes --]

prefix=/usr/x86_64-w64-mingw32/sys-root/mingw
includedir=${prefix}/include/mariadb/
libdir=${prefix}/lib/

Name: libmariadb
Version: 2.3.3
Description: MariaDB Connector/C
Cflags: -I${includedir}
Libs: -L${libdir} -llibmariadb -lz -liconv -lssl -lcrypto



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-11 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <fdc4e6ab93454c7a8694aac51bd1638a@liebherr.com>
2021-12-11 12:27 ` libmariadb.pc missing for MinGW toolchains Manuel Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).