Package config is enabled for AOCL-BLAS, AOCL-LAPACK, AOCL-ScaLAPACK and AOCL-Utils libraries.
Set PKG_CONFIG_PATH:
After installing aocl-linux-<compiler>-5.2.0.tar.gz file on your system, set PKG_CONFIG_PATH to the package config file where .pc files are located.
$ export PKG_CONFIG_PATH=<INSTALL_PATH>/lib/pkgconfig:$PKG_CONFIG_PATH After setting the path, compile the code using the pkg-config commands. An example for aocl-utils is shown here:
$ g++ cpuid_example.cc `pkg-config --cflags --libs aocl-utils`
Note: Package config has support to link with shared binaries only. For static linking, you need a work around to keep only static binaries in the PKG_CONFIG_PATH or build library with only static.