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.

AM62A7: EdgeAI 6D pose cpp build error

Part Number: AM62A7


Hello,

I quickly tried pulling the edge-gst-apps-6d-pose demo from the ti GitHub page:

https://github.com/TexasInstruments/edgeai-gst-apps-6d-pose

And following the build instructions for the cpp app (basically just calling the build script)

This results in the following build errors:

In file included from /opt/edgeai-gst-apps-6d-pose/apps_cpp/common/src/edgeai_inference_pipe.cpp:37:
/opt/edgeai-gst-apps-6d-pose/apps_cpp/common/../utils/include/edgeai_perfstats.h:44:10: fatal error: utils/perf_stats/include/app_perf_stats.h: No such file or directory
   44 | #include <utils/perf_stats/include/app_perf_stats.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [common/CMakeFiles/edgeai_common.dir/build.make:160: common/CMakeFiles/edgeai_common.dir/src/edgeai_inference_pipe.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/edgeai-gst-apps-6d-pose/apps_cpp/common/src/post_process_image_object_6d_pose_estimation.cpp: In constructor 'ti::edgeai::common::PostprocessImageObject6DPoseEstimation::PostprocessImageObject6DPoseEstimation(const ti::post_process::PostprocessImageConfig&, const ti::edgeai::common::DebugDumpConfig&)':
/opt/edgeai-gst-apps-6d-pose/apps_cpp/common/src/post_process_image_object_6d_pose_estimation.cpp:135:18: error: 'const struct ti::post_process::PostprocessImageConfig' has no member named 'dataset'
  135 |     if (m_config.dataset == "ycbv")
      |                  ^~~~~~~
make[2]: *** [common/CMakeFiles/edgeai_common.dir/build.make:146: common/CMakeFiles/edgeai_common.dir/src/post_process_image_object_6d_pose_estimation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:178: common/CMakeFiles/edgeai_common.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Where is this app_perf_stats.h header file supposed to be?

I also see this demo was originally intended for TDA4, and supported SDK version is 8.6. Is there any change in SDK 9 which would cause this build error? I'm currently running SDK 9.0.

Munan

  • Hello Munan,

    Looks like this demo was built for 8.6 SDK and has not yet been ported to work for 9.0. I would recommend trying this on the 8.6 version of the SDK.

    It looks like a file is not being found (app_perf_statsh). My best guess is that some paths for include files changed between the releases. 

    root@am62axx-evm:/opt/edgeai-gst-apps# find /usr/include/ -name app_perf_stats.h
    /usr/include/processor_sdk/app_utils/utils/perf_stats/include/app_perf_stats.h
    

    That file is present, but a cmake configuration file probably needs to have a path modified. The second error may have a similar root cause, but I'm not immediately sure.

    Best,
    Reese

  • Hi Reese,

    Thanks for the feedback, once I created this post I realized I should probably also try with 8.6 so will try and get the demo going there on a new SD card. Or just let me know if there's any changes you'd like me to try and I can check it out.

    Regards,

    Munan

  • Hi Reese,

    Quick update here, I did get the cpp app built on SDK 8.6 and things seem to be working about as expected. I see most if not all demos for the edge-ai-gst apps are still targeting 8.6 any idea when they'll be updated for the latest SDK?

    Regards,

    Munan

  • Hi Munan,

    Glad you have that working for 8.6. I can't answer for all demos here, but we're migrating several of them to 9.0. For example, I've updated the retail-checkout demo for 9.0. I don't believe have a timeline for all of these. I can contact several demo owners on this to emphasize that we should track the SDK release.

    Best,
    Reese

  • Hey Reese,

    Appreciate the feedback, I'll mark this as closed for now.

    Munan