What is pkg-config WRT macports
Richard L. Hamilton
rlhamil at smart.net
Sat Dec 26 09:33:45 UTC 2020
pkg-config* is part of the pkgconfig package (presumably installed, or you would have gotten a message that it, rather than some library, was missing). I gather** it's a tool used to retrieve configuration information about how libraries built with some associated tools were configured...and that the libftdi1 (which apparently you don't have) should have made information available for pkg-config to retrieve.***
It looks like you're doing something on your own...which would not have known to make sure libftdi1 was already installed. Or maybe some environment variable (the PKG_CONFIG_PATH that it mentions, maybe?) wasn't set right. But those are just guesses.
* discovered as follows:
sh-3.2$ type pkg-config
pkg-config is /opt/local/bin/pkg-config
sh-3.2$ port provides /opt/local/bin/pkg-config
/opt/local/bin/pkg-config is provided by: pkgconfig
** man pkg-config
*** after installing libftdi1, the following files containing information retrievable by pkg-config can be found:
sh-3.2$ port contents libftdi1 | fgrep .pc
/opt/local/lib/pkgconfig/libftdi1.pc
/opt/local/lib/pkgconfig/libftdipp1.pc
> On Dec 26, 2020, at 04:14, Christoph Kukulies <kuku at kukulies.org> wrote:
>
> I’m stumbling accross some build errors in a package named „blackmagic“:
>
> $ git clone https://github.com/blacksphere/blackmagic.git <https://github.com/blacksphere/blackmagic.git>
> Cloning into 'blackmagic'...
> remote: Enumerating objects: 5, done.
> remote: Counting objects: 100% (5/5), done.
> remote: Compressing objects: 100% (5/5), done.
> remote: Total 9237 (delta 0), reused 0 (delta 0), pack-reused 9232
> Receiving objects: 100% (9237/9237), 3.15 MiB | 1.36 MiB/s, done.
> Resolving deltas: 100% (6867/6867), done.
> $ cd blackmagic/
> $ make PROBE_HOST=hosted
> GIT include/version.h
> Package libftdi1 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libftdi1.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libftdi1' found
> Package hidapi-libusb was not found in the pkg-config search path.
> Perhaps you should add the directory containing `hidapi-libusb.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'hidapi-libusb' found
>
> Now I’m wondering: is that pkg-config a part of macports or in other words, can macports help in supplying the issing packages?
>
> Merry Christmas, Happy Seasons,
>
> Christoph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20201226/644531e0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2814 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20201226/644531e0/attachment.bin>
More information about the macports-users
mailing list