nasa / bplib

Apache License 2.0
30 stars 13 forks source link

Allow use of dependent libs installed in non-system locations #113

Closed jphickey closed 2 years ago

jphickey commented 2 years ago

The BPv7 implementation currently depends on TinyCBOR (https://github.com/intel/tinycbor) but this might not be available as an installable system package in many Linux distros, and for the ones that do have it, it is probably an older version.

Therefore, it is likely that users will compile the latest version and install it manually, and that may also mean it is installed somewhere other than the standard /usr/lib or /usr/local/lib. Since the pkg-config facility is used to locate this package, this should be OK, the user just has to set PKG_CONFIG_DIR environment variable to wherever they typically install their dependencies.

However, two issues were noted when trying to use a non-standard location: