Closed haxrob closed 7 years ago
So typically pkg-config looks in /usr/lib/pkgconfig if we write something around this it should be geared around that it should point to the location where the pkg-config files for dependencies are (which are prefix relative in lib/pkgconfig). Do you have a suggestion for wording? If so please submit a pull request with a change to the README.
@packetflare:
Could you expand on your steps, I just completed the following steps with out issues:
: ~ $; rpm --query centos-release
centos-release-7-1.1503.el7.centos.2.8.x86_64
: ~ $; sudo yum groupinstall 'Development Tools'
...
: ~ $; sudo yum install asciidoc libusb-devel
...
: ~ $; cd yubico-c
: ~/yubico-c $; autoreconf -i && ./configure && make && sudo make install
...
: ~/yubico-c $; cd ../yubikey-personalization
: ~/yubico-c $; autoreconf -i && ./configure && make && sudo make install
...
Further:
: ~ $; pkg-config --list-all | grep libusb
libusb libusb - USB access library (libusb-1.0 compat wrapper)
Are you perchance building and installing libusb
from source ? (In which case, the default prefix is /usr/local).
In general, Yubico projects depend on their dependencies being installed via the appropriate package manager for each distribution.
Install the development package as:
apt install libopencv-dev
--credit: https://stackoverflow.com/users/6481121/ipor-sircer
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
was required when building for CentOS/RHEL 6 and 7.This is actually noted in a forum post here, although the information was never propagated into the respective README. It would be useful information for those running into compilation issues on the above Linux distributions.