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.

Compiler/TDA4VMXEVM: Building TDA4 RTOS has this kind of linking error

Part Number: TDA4VMXEVM

Tool/software: TI C/C++ Compiler

Hi Champs:

I got those errors in the linking stage.

Can someone guide me how to solve it?

BR Rio

Required system library libvx_utils.a
Required system library libvx_kernels_hwa_tests.a
Required system library libvx_kernels_hwa.a
Required system library libvx_tiovx_tidl_tests.a
Required system library libvx_kernels_tidl.a
Required system library libvx_tutorial.a
Required system library libstdc++.so
Required system library libm.so
Required system library librt.so
Required system library libpthread.so
Required system library libticmem.so
Required system library libion.so
Required system library librpmsg_char_helper.so

Linking /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/vx_app_c7x_kernel.out

/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lticmem
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lion
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lrpmsg_char_helper
collect2: error: ld returned 1 exit status
make: [concerto/finale.mak:205: /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/vx_app_c7x_kernel.out] Error 1 (ignored)
Linking /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/vx_app_tidl.out
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lticmem
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lion
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lrpmsg_char_helper
collect2: error: ld returned 1 exit status
make: [concerto/finale.mak:205: /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/vx_app_tidl.out] Error 1 (ignored)
Required system library libvx_kernels_imaging.a
Required system library libvx_target_kernels_imaging_aewb.a
Linking /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/vx_app_single_cam.out
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lticmem
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lion
/opt/psdk_rtos_auto_j7_06_00_01_00/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lrpmsg_char_helper
collect2: error: ld returned 1 exit status
make: [concerto/finale.mak:205: /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/vx_app_single_cam.out] Error 1 (ignored)
[GCC] Compiling C99 vx_opengl_mosaic_target.c
In file included from /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/kernels/sample/a72/gpu_render1x1.h:68,
from /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/kernels/sample/a72/vx_opengl_mosaic_target.c:71:
/opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/utils/opengl/include/app_gl_egl_utils.h:70:10: fatal error: EGL/egl.h: No such file or directory
#include <EGL/egl.h>
^~~~~~~~~~~
compilation terminated.
make: *** [concerto/finale.mak:305: /opt/psdk_rtos_auto_j7_06_00_01_00/vision_apps/out/J7/A72/LINUX/release/module/kernels.sample.a72/vx_opengl_mosaic_target.o] Error 1

  • I have checked my installed folder, I did have the egl.h

    Which one is the correct one I need to include.

    oot@ubuntu:/opt/psdk_rtos_auto_j7_06_00_01_00# find . -name "egl.h"
    ./vision_apps/kernels/srv/gpu/3dsrv/Include/EGL/egl.h
    ./psdk_rtos_auto/scripts/targetfs/usr/include/GLES/egl.h
    ./psdk_rtos_auto/scripts/targetfs/usr/include/EGL/egl.h

    BR Rio

  • You need to install PSDKLA and extract the filesystem to ${PSDKRA_PATH}/targetfs as mentioned here

    vision_apps/docs/user_guide/ENVIRONMENT_SETUP.html

    The targetfs needs to be at ${PSDKRA_PATH}/targetfs, looks like you have it at ${PSDKRA_PATH}/psdk_rtos_auto/scripts/targetfs

    regards
    Kedar

  • Thank you very much.

    It works.

    I would like the future release can have the RA release to merge the 3 compilers + bootfs/rootfs.

    Thus, we don't need to do this manually.

    BR Rio