This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Add appLogGetGlobalTimeInUsec() into C++ program

Part Number: TDA4VM

Hi all,

I used TDA4 (j721s2), SDK 8.4.
I have a C++ code (my_app_main.cpp) that run on Linux.
I want to call appLogGetGlobalTimeInUsec() API in my C++ code.
I known, the include file is "utils/console_io/include/app_log.h" about appLogGetGlobalTimeInUsec().

Q1:
I tried to add my C++ code under vision_apps/apps/basic_demo.
Duplicate app_single_cam directory.
cp -R app_single_cam app_my_cpp
Modified the CSOURCES of concerto.mak under app_my_cpp directory.
CSOURCES := my_cpp_main.cpp

It always can't find my_cpp_main.cpp file when "make vision_apps"
It seem only access C file under vision_apps.
Is it possible use C++ file under vision_apps?


Q2:
If I don't put my_app_main.cpp under vision_apps directory.
I can create a CMakelists.txt.
my_app_main.cpp build success before add appLogGetGlobalTimeInUsec().
Is it posssible to link a specail libary ?
Then my_cpp_main.cpp can call appLogGetGlobalTimeInUsec().
What is the special library name?

Best regards

-Jason