Since AMDTPowerProfileAPI.so has depenedencies on
AMDTOSWrappers and AMDTBaseTools shared libraries we are getting this errors.
These shared library is located in AMD_CodeXL_Linux_x86_64_1.8.9654 directory.
Assuming test program is located in
AMD_CodeXL_Linux_x86_64_1.8.XX/SDK/AMDTPowerProfile/bin/x86_64 directory as
test.cpp and we are also executing from the same directory, we can perform the
following steps to execute the test code.
- Set the LD_LIBRARY_PATH.
export LD_LIBRARY_PATH=export LD_LIBRARY_PATH=../../../../
- Set the linker flags
g++ test.cpp -I../../inc/ -L. -lAMDTPowerProfileAPI -L../../../../
-lAMDTOSWrappers -lAMDTBaseTools -o test