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: tda4 api

Part Number: TDA4VM

hi ti;

I have a question, I'm using sdk 8.5 I want to package ti-processor-sdk-rtos-j721e-evm-08_05_00_11/vision_apps/apps/basic_demos/app_single_cam/app_single_cam_main.h into a dynamic library. How do I compile a dynamic library for use by external functions ?

  • Hi,

    May I know why are you looking to make an application as dynamic library? Could you elaborate your usecase here?

    Regards,

    Nikhil

  • I have an AVM Panorama program that needs to be transplanted to the tda4 platform. What I want to do is to encapsulate camera image data on the tda4 platform and provide it to AVM in the form of dynamic library

  • Or do you have any other good suggestions?

  • Hi

    Is the AVM program also using OpenVX framework?

    If yes, then to capture a data, you would only require to add a capture node in the application.

    Regards,

    Nikhil

  • NO,AVM is a cross-platform soft A architecture, we use the existing picture has been cross-compiled on tda4 A72 core, now need openv architecture to pass the camera buffer, so my idea is to encapsulate openxv function to generate dynamic library, Support aarch64-none-linux-gnu-gcc compilation, you have tried this

  • Can this idea be realized, I like to do as little as possible to change the avm program

  • Hi,

    We are creating tivision_apps.so dynamic library in vision_apps. 

    You can refer the concerto.mak file in vision_apps/modules/concerto.mak, where the TARGETTYPE is dsmo 

    You can follow the same approach for your usecase or add the required in this concerto file to make it part of tivision_apps.so 

    Regards,

    Nikhil

  • hi ti

    I have generated a dynamic library according to the process you said, but in use, there are the following series of errors, my library code does not have these functions, do you need to connect to other library files

    fs@Box:~/sensor_drv$ cd ..
    fs@Box:~$ /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu-gcc main_linux_arm.c -L. -lvx_app_single_cam
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: warning: libti_rpmsg_char.so.0, needed by ./libvx_app_single_cam.so, not found (try using -rpath or -rpath-link)
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `tivxScalarIntermediateNode'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `rpmsg_char_exit'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `rpmsg_char_init'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `rpmsg_char_open'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `tivxTestKernelsUnLoadKernels'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `tivxTestKernelsLoadKernels'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `rpmsg_char_close'
    /home/fs/ti-processor-sdk-linux-j7-evm-08_05_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: ./libvx_app_single_cam.so: undefined reference to `tivxScalarSourceNode'
    collect2: error: ld returned 1 exit status
    fs@Box:~$ 
    

  • Hi,

    If you trying to make the single cam application as a dynamic library, then you would have to include all the static libs that it is dependent on.

    Regards,

    Nikhil