[Interest] qmake, pkg-config and "Requires"

René Hansen renehh at gmail.com
Mon Oct 22 16:23:29 CEST 2018


After upgrading to the latest XCode, I had to recompile some native libs
and ran into an old familiar bug.

Basically it seems qmake doesn't now what to do whenever it runs into a
`Requires` directive in a pkg-config file. Here's for example openssl:

prefix=/usr/local/Cellar/openssl/1.0.2p
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: OpenSSL
Description: Secure Sockets Layer and cryptography libraries and tools
Version: 1.0.2p
Requires: libssl libcrypto

If I don't uncomment the last line, qmake will spit out the following
generic error:

Project ERROR: /usr/local/opt/openssl/lib/pkgconfig/openssl.pc development
package not found

Now, the solution I've resorted to is to just uncomment any "Requires" in
all dependant libraries .pc files, (all the way down), and add each one
manually. Tedious.

Have I missed something in the docs, or is this simply not something qmake
knows how to handle?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181022/1e3541fa/attachment.html>


More information about the Interest mailing list