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.

TDA4VMXEVM: Error during vision_apps build

Part Number: TDA4VMXEVM

Hello,

I'm trying to build the vision_apps for LINUX+TI-RTOS as per file:///home/user/psdk_rtos_auto_j7_06_00_00_00/vision_apps/docs/user_guide/BUILD_INSTRUCTIONS.html.

I end up with the below error: which says cmem.h missing.

Linking /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/C66/SYSBIOS/debug/app_utils_mem.lib
  ==>  new archive '/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/C66/SYSBIOS/debug/app_utils_mem.lib'
  ==>  building archive '/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/C66/SYSBIOS/debug/app_utils_mem.lib'
[C7X] Compiling C app_mem_sysbios.c
Linking /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/C71/SYSBIOS/debug/app_utils_mem.lib
  ==>  new archive '/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/C71/SYSBIOS/debug/app_utils_mem.lib'
  ==>  building archive '/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/C71/SYSBIOS/debug/app_utils_mem.lib'
[GCC] Compiling C99 app_mem_linux_cmem_proxy.c
/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/mem/src/app_mem_linux_cmem_proxy.c:71:10: fatal error: ti/cmem.h: No such file or directory
 #include <ti/cmem.h>
          ^~~~~~~~~~~
compilation terminated.
concerto/finale.mak:304: recipe for target '/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/debug/module/utils.mem.src/app_mem_linux_cmem_proxy.o' failed
make: *** [/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/debug/module/utils.mem.src/app_mem_linux_cmem_proxy.o] Error 1

Please support to fix this.

In general, I've many issues in building demo applications.

Please let me know, if there is any dependency on the installation folder or directory structure of PSDKLINUX and PSDKRTOS.

Thanks and Regards,
Pradeep

  • Hello Pradeep,

    The cmem.h file should be located at "/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/targetfs/usr/include/ti/cmem.h".  Please confirm if this is located at this path.

    If not, you may need to extract the PSDKLA as mentioned in the Build Instructions section of the user guide under "Quick steps to build vision apps for Linux+TI-RTOS mode".  This step requires you to download the PSDKLA and extract the targetfs from PSDKLA_PATH/filesystem/tisdk-rootfs-image-j7-evm.tar.xz.

    Regards,

    Lucas

  • Hallo Lucas,

    Thank you for the information.

    It helped to fix the issue.

    Now I made sure to follow the instructions mentioned.

    But now I ended up with the below new errors:

    ################################################################################################################

    Linking /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/libvx_target_kernels_sample_a72.a
    [GCC] Compiling C99 tivx_sample_node_api.c
    [GCC] Compiling C99 vx_kernels_sample_host.c
    [GCC] Compiling C99 vx_opengl_mosaic_host.c
    Linking /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/libvx_kernels_sample.a
    [GCC] Compiling C99 app_gl_egl_utils.c
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c: In function ‘appEglBindFrameBuffer’:
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:466:5: error: unknown type name ‘PFNGLCLIPCONTROLEXTPROC’; did you mean ‘PFNGLQUERYCOUNTEREXTPROC’?
         PFNGLCLIPCONTROLEXTPROC glClipControlEXT;
         ^~~~~~~~~~~~~~~~~~~~~~~
         PFNGLQUERYCOUNTEREXTPROC
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:473:14: error: ‘PFNGLCLIPCONTROLEXTPROC’ undeclared (first use in this function); did you mean ‘PFNGLQUERYCOUNTEREXTPROC’?
                 (PFNGLCLIPCONTROLEXTPROC)eglGetProcAddress("glClipControlEXT");
                  ^~~~~~~~~~~~~~~~~~~~~~~
                  PFNGLQUERYCOUNTEREXTPROC
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:473:14: note: each undeclared identifier is reported only once for each function it appears in
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:473:38: error: expected ‘;’ before ‘eglGetProcAddress’
                 (PFNGLCLIPCONTROLEXTPROC)eglGetProcAddress("glClipControlEXT");
                                          ^~~~~~~~~~~~~~~~~
                                          ;
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:538:22: error: ‘GL_UPPER_LEFT_EXT’ undeclared (first use in this function); did you mean ‘EGL_UPPER_LEFT_KHR’?
         glClipControlEXT(GL_UPPER_LEFT_EXT, GL_NEGATIVE_ONE_TO_ONE_EXT);
                          ^~~~~~~~~~~~~~~~~
                          EGL_UPPER_LEFT_KHR
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:538:41: error: ‘GL_NEGATIVE_ONE_TO_ONE_EXT’ undeclared (first use in this function); did you mean ‘GL_RELATIVE_MOVE_TO_NV’?
         glClipControlEXT(GL_UPPER_LEFT_EXT, GL_NEGATIVE_ONE_TO_ONE_EXT);
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                             GL_RELATIVE_MOVE_TO_NV
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:538:5: error: called object ‘glClipControlEXT’ is not a function or function pointer
         glClipControlEXT(GL_UPPER_LEFT_EXT, GL_NEGATIVE_ONE_TO_ONE_EXT);
         ^~~~~~~~~~~~~~~~
    /home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/src/a72/app_gl_egl_utils.c:466:29: note: declared here
         PFNGLCLIPCONTROLEXTPROC glClipControlEXT;
                                 ^~~~~~~~~~~~~~~~
    concerto/finale.mak:304: recipe for target '/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/module/utils.opengl.src.a72/app_gl_egl_utils.o' failed
    make: *** [/home/user/TI_new/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/module/utils.opengl.src.a72/app_gl_egl_utils.o] Error 1

    #######################################################################################################################

    Could you please support further on this ?

    Thanks and Regards,
    Pradeep

  • Pradeep,

    Please run psdk_rtos_auto/internal_docs/scripts/setup_psdk_rtos_auto_ti_internal.sh script to untar some of the important packages.

    Rgds,

    Brijesh

  • Hello Brijesh,

    setup_psdk_rtos_auto_ti_internal.sh is already executed and I see that some packages are installed at psdk_rtos_auto/internal_docs/scripts/.

    Still I have the same error.

    Any other step necessary ? Please let me know.

    Thanks and Regards,
    Pradeep

  • Hello Pradeep,

    This script must be run after doing the PSDKLA filesystem extraction.  In addition to downloading packages, it also extracts additional header files into the PSDKLA filesystem needed to build. 

    Additionally, this script must be run from the "workarea" directory, parallel with vision_apps.  Therefore, these packages should be installed at this level, rather than in the psdk_rtos_auto/internal_docs/scripts/. directory. 

    Please try re-running this script from this directory and rebuilding.

    Regards,

    Lucas