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.

DVSDK 2.00 rebuild failed

Other Parts Discussed in Thread: TVP5146

I rebuilt DVSDK 2.00 with following steps:

1. rebuild Linux Kernel 2.6.18 with montavista pro 5.0 gcc

2. rebuild DVSDK 2.00

Error occurs where

linux/Capture.c:49:35: error: media/davinci/tvp5146.h: No such file or directory

linux/Capture.c: In function 'Capture_detectVideoStd':

linux/Capture.c:512: error: 'TVP5146_AMUX_SVIDEO' undeclared (first use in this function)

every thing goes well with DVSDK 1.3.x and montavista pro 4.0.1.

anyone could help, thanks in advance.

  • Kenzo,

    Are you using the Linux Kernel that comes with DVSDK per GSG?  I suspect you may be using the Linux Kernel from MV Zone instead...

  • Hi Juan

    Linux Kernel I am using is LSP 2.0.14 from member area of TI.

    Follow the steps of GSG 2.0 , nothing wrong until DVSDK 2.0 rebuilding..... when compiling DMAI , Capture.c , error occurs. 

    If compiling with DVSDK 1.3 + MV Pro 4.0.1 , everything is ok.

  • Kenzo,

    Can you check your Rules.mak file to ensure it is pointing to the correct location of the Linux kernel source tree.  The header file is complaining about is one of the kernel header files, which could possibly imply that it cannot find the linux kernel source tree or that the wrong version of the source tree is found (which was my first guess in previous msg).

    FYI, I have personally installed DVSDK_2_00_00_22 per GSG and can confirm the DVSDK builds without errors, so I am pretty sure we can boil this down to a path problem of some sort...

  • Juan

    I followed every steps in GSG 2.0 again. errors still the same.

    DVSDK 2.10 of DM365 compiles OK...

  • Kenzo,

    Can you check your Rules.make definitions to ensure the LINUX_KERNEL_INSTALL_DIR path is isntalled correctly?  Your original error suggests that Capture.c is not finding the file "media/davinci/tvp5146.h".  If you installed everything per the GSG which would mean you are using the Linux kernel included in the DVSDK, then this file should be present under

    LINUX_KERNEL_INSTALL_DIR /include

    The Makefile in the build tree takes your Rules.make definition of LINUX_KERNEL_INSTALL_DIR  and appends 'include' to it.  Either your path in Rules.make is not correct or your kernel is not correctly installed (you can check for the existance of tvp5146.h file).

  • Juan

    LINUX_KERNEL_INSTALL_DIR is correctly modified to LSP to MVPro5, and successfully rebuild. This is the point I am mostly confused...