Forums - Undefined reference to HP_profile when adding sysMon Markers

1 post / 0 new
Undefined reference to HP_profile when adding sysMon Markers
john.richardson1
Join Date: 24 Mar 20
Posts: 1
Posted: Mon, 2020-05-11 06:18

When adding sysMon Markers enable and disable apis to application code, in my case to examples/fastcv/cornerApp/src/cornerApp.c, and building using 

make tree V=android_Debug_aarch64 CDSP=1

The build fails due to undefined reference when linking

hexagon_sdk-3-5-1/examples/fastcv/cornerApp/src/cornerApp.c:157: undefined reference to `HP_profile`

hexagon_sdk-3-5-1/examples/fastcv/cornerApp/src/cornerApp.c:171: undefined reference to `HP_profile`

clang++: error linker command failed with exit code 1 (use -v to see invocation)

I followed the instructions under 'Using Sysmon Markers' in the documentation. Namely adding the #include <sysmon_marker.h> (also tried extern HP_profile(uint_32 Marker ID, boolean enable);) and then calling the HP_profile function.

It is not clear which library this API is attached to for linking and there are no examples of its use in the codebase.

Am I missing some important steps here?

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.