If using pre-built AOCL-Compression library, it can be linked to your application at compile time. Native API set will be called in this scenario.
Follow these steps to integrate AOCL-Compression into your application:
Make necessary changes in your build system to link your application to AOCL-Compression library. A Sample CMakeLists file is shown for your reference.
Build the application.
If the library is linked via dynamic linking, before running the application, ensure that it is pointing to the correct AOCL-Compression library. If not, use these steps to ensure right dependency:
On Linux:
LD_LIBRARY_PATHenvironment variable can be used to set directories where the dynamic linker should search for libraries before looking in the default system locations. Add AOCL-Compression library path to it as follows:export LD_LIBRARY_PATH="lib/directory/path/of/AOCL-Compression": $LD_LIBRARY_PATHOn Windows:
PATHenvironment variable is used by the OS to search for shared libraries (DLLs) required by a program at runtime.set PATH="lib/directory/path/of/AOCL-Compression";%PATH%
Run the application.