This problem i had also in previous releases.
I've installed openssl, pcre2, curl, zlib, ncurses ect. from source.
My installation structure is "/own/dep/..."
The .pc-files (PKG-Config) are in /usr/share/pkgconfig and if i test each of them with pkg-config (e.g "pkg-config zlib --libs / --cflags") all is fine.
For compiling mariadb i set the cmake-options:
but zlib, libfmt, pcre2-8 and ncurses are not found:
Why mariadb doesn't find these packages while others like openssl and curl are found?
The output of pkg-config (libdir | includedir | libs | cflags):
- -L/own/dep/zlib/lib -lz
- -L/own/dep/libfmt/lib -lfmt
- -L/own/dep/pcre2/lib -lncurses -lpcre2-posix
- -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/own/dep/libncurses/include/ncurses -I/own/dep/libncurses/include
libpcre2-8 / libpcre2-posix
- -L/own/dep/pcre2/lib -lpcre2-8 / -lpcre2-posix
I know that i can use additional options like -DZLIB_... or -DCURSES_...
But why, as i said mariadb found openssl and curl with pkg-config but not the others?
Other programs like nginx and php found all of them!