Package config (.pc files) is enabled for AOCL-BLAS, AOCL-LAPACK,
AOCL-ScaLAPACK, AOCL-Utils, and other libraries that ship pkg-config metadata
under the installed tree.
Set
PKG_CONFIG_PATH:After installation,
.pcfiles live under<INSTALL_ROOT>/lib/pkgconfig, where that directory is INSTALL_ROOT (it containslib,include,amd-libs.cfg, and the generated module file). The master installer (install.shfor AOCC or GCC) already extendsPKG_CONFIG_PATHin bothamd-libs.cfg(export PKG_CONFIG_PATH=...) and the generated Environment Modules file (prepend-pathforPKG_CONFIG_PATHpointing at$AOCLhome/lib/pkgconfig). Sourcingamd-libs.cfgor loading that module therefore picks up pkg-config metadata for that INSTALL_ROOT.To set
PKG_CONFIG_PATHexplicitly, use:$ export PKG_CONFIG_PATH=<INSTALL_ROOT>/lib/pkgconfig:$PKG_CONFIG_PATH
After
PKG_CONFIG_PATHis set, compile usingpkg-config. An example for AOCL-Utils:$ g++ cpuid_example.cc `pkg-config --cflags --libs aocl-utils`
Note
Package config is oriented toward shared libraries. For static linking you may need to adjust
PKG_CONFIG_PATHor use the static.pcvariants where the package provides them.