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.

how to make examples in DVSDK

Hello,

I found some example for DM355 in "DVSDK_1_30_00_40/PSP_01_20_00_014/examples".

How I can make it in my EVM board.

Please help me.

  • Due to other software components the examples are written on top of (codec engine, kernel driver header files,...), compiling on the EVM would require we move all this software to the target file system (not very common to have large file-systems on target) and the build would be awfly slow. 

    For this reason, building is more commonly done on the faster host PC.  If you go thru our Getting Started Guide (GSG), it will step you thru building many of the software components on the host PC side; once you complete the steps as outlined in the GSG, you can simply type make in the examples directory to build those examples.

  • I gave make command in “dvsdk_1_30_00_40/PSP_01_20_00_014/examples/fbdev” path.

    I got an error for make command, that error follows,

    [bala@localhost fbdev]$ make

    gcc –c fbdev_capture.c

    In file included from fbdev_capture.c:8:

    fbdev_display.h:22:97: media/davinci/davinci_vpfe.h: No such file or directory

    fbdev_display.h:23:35: video/davincifp_ioctl.h: No such file or directory

    fbdev_capture.c: In function ‘SetDataFormat’:

    fbdev_capture.c:147:error: ‘VPFE_STD_AUTO’ undeclared (first use in this function:

    fbdev_capture.c:147:error: (Each undeclared identifier is reported only once

    fbdev_capture.c:147:error: for each function it appears in.)

    make: *** [fbdev_capture.o] Error 1

    [bala@localhost fbdev]$

  • This tells me that your Rules.make has not been properly set yet (one of the steps in Getting Started Guide).  As I mentioned in my previous post, it is important that you go thru Getting Started Guide successfully and build the entire DVSDK tree before attempting to build indivivual examples.  I tried this yesterday and was able to build the examples.

  • Sorry for this delay.

    I already build the full DVSDK folder as per mention in GSG. I can run the demo program in command prompt.

    After build the DVSDK folder only I tried to build the example directory in "dvsdk_1_30_00_40/PSP_01_20_00_014/examples/ " with same Rules.make file. What’s wrong with me, how to get out from this issue.

  • I was able to build the PSP examples after properly modifying the Makefile to point to a copy of the LSP, the build error you are getting indicates that it could not find a header file which should exist within the LSP thus you probably have a typo or error in the LSP path in your Makefile. Your Makefile should have something like LINUXKERNEL_INSTALL_DIR = /home/user/workdir/lsp/ti-davinci or something similar, it has to point to the folder that contains your Linux kernel tree (i.e. that which contains folders like arch, crypto, Documentation, drivers, fs, include, etc...). With the Makefile pointing to the Kernel tree just run make within the examples directory and you should be able to build all the examples.