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 beta2 compilation error

Other Parts Discussed in Thread: OMAP3530

Hi, I just downloaded the new beta of DVSDK (also the new linux package SDK 1.0.2). I tried to compile the src code in the new DVSDK location and got compilation error as follows:

make -C /net/netscratch/sheng/dvsdk_3_00_00_29/dmai_1_20_00_04 o3530_al
make[1]: Entering directory `/net/netscratch/sheng/dvsdk_3_00_00_29/dmai_1_20_00_04'
make[2]: Entering directory `/net/netscratch/sheng/dvsdk_3_00_00_29/dmai_1_20_00_04/packages/ti/sdo/dmai'
Compiling obj/Buffer.o3530.o470MV from Buffer.c..
Compiling obj/BufferGfx.o3530.o470MV from BufferGfx.c..
...

Compiling obj/ce/Vdec.o3530.o470MV from ce/Vdec.c..
Compiling obj/ce/Venc1.o3530.o470MV from ce/Venc1.c..
Compiling obj/ce/Venc.o3530.o470MV from ce/Venc.c..
Compiling obj/linux/Capture.o3530.o470MV from linux/Capture.c..
Compiling obj/linux/Cpu.o3530.o470MV from linux/Cpu.c..
Compiling obj/linux/Display.o3530.o470MV from linux/Display.c..
Compiling obj/linux/Display_fbdev.o3530.o470MV from linux/Display_fbdev.c..
linux/Display_fbdev.c:46:29: error: video/omapfbdev.h: No such file or directory
linux/Display_fbdev.c: In function 'Display_fbdev_get':
linux/Display_fbdev.c:411: error: 'FBIO_WAITFORVSYNC' undeclared (first use in this function)
linux/Display_fbdev.c:411: error: (Each undeclared identifier is reported only once
linux/Display_fbdev.c:411: error: for each function it appears in.)
make[2]: *** [obj/linux/Display_fbdev.o3530.o470MV] Error 1
make[2]: Leaving directory `/net/netscratch/sheng/dvsdk_3_00_00_29/dmai_1_20_00_04/packages/ti/sdo/dmai'
make[1]: *** [o3530_al] Error 2
make[1]: Leaving directory `/net/netscratch/sheng/dvsdk_3_00_00_29/dmai_1_20_00_04'
make: *** [dmai] Error 2

I looked into this Display_fbdev.c in the dmai package: at line 46,

#ifdef Dmai_Device_omap3530
/* OMAP specific kernel headers */
#include <video/omapfbdev.h>
#else
/* Davinci specific kernel headers */
#include <video/davincifb_ioctl.h>
#endif

it tried to find this include file video/omapfbdev.h, however, it failed to pick this up. Anyone could shed light on this error? How to get around this?

 

Thank you.

 

 

 

  • Hi,

    The omapfbdev.h file should be on the linux kernel headers. Please verify that you installed the 1.0.2 and decompress the kernel source, and verify the Rules.make file in your DVSDK directory points to the right direction of the kernel source code.

    Diego Dompe

    RidgeRun Engineering.

  • Thank you. Silly typo in the Rules.make. It rolls on now...

    BTW, in case someone knows, in the step of building u-boot (before compiling the uImage cuz it needs uboot/tools), I uncompressed the uboot src from the sdk 1.0.2 package and got stuck in compiling uboot/examples/..., see below:

    make[1]: Entering directory `/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/examples'
    arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt-iss/omap3evm/toolchain/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv7a -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
    arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt-iss/omap3evm/toolchain/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv7a -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
    arm-none-linux-gnueabi-ar crv libstubs.a  stubs.o
    a - stubs.o
    make[1]: *** No rule to make target `hello_world.srec', needed by `all'.  Stop.
    make[1]: Leaving directory `/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/examples'
    make: *** [examples] Error 2

    I had to comment out the following 2 lines in the Makefile of u-boot/examples to compile th!e package succesfully.

    #SREC   = hello_world.srec
    #BIN    = hello_world.bin hello_world

    Is it expected or I missed something here?

    Thanks!!!

     

     

     

  • I was able to build U-Boot properly without having to modify any Makefile by hand (I did not see this hello_world build error), I just untarred the source tree and than ran 'make omap3evm_config' followed by 'make'.

  • Hi Bernie, thanks for the reply.

    I tried again, still got the error, can you please post the compilation log after going into the examples directory? See below, I would like to see what your make process happens after stubs.

    make[1]: Entering directory `/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/examples'
    arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt-iss/omap3evm/toolchain/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv7a -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
    arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt-iss/omap3evm/toolchain/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv7a -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
    arm-none-linux-gnueabi-ar crv libstubs.a  stubs.o
    a - stubs.o
    make[1]: *** No rule to make target `hello_world.srec', needed by `all'.  Stop.
    make[1]: Leaving directory `/net/netscratch/sheng/OMAP35x_SDK_1.0.2/board_utilities/u-boot/examples'
    make: *** [examples] Error 2

     

    Thank you!

  • It looks like mine is skipping the examples directory, attached is the build output and warnings this is after a 'make clean', 'make omap3evm_config', than 'make > build_output'.

     

  • Hmm it seems the forum software is allowing only one attachment per post, so here are the warnings.

  • This may be related to make 3.81 vs make 3.80. I have the same error and am using make 3.81 on a ubuntu 8.04 machine.

    The following patch to the Makefile may solve this and I am going to try this and report back...

    https://dev.openwrt.org/attachment/ticket/1680/at91-uboot.patch

     

    Regards,

    --Gunter

  • Just wanted to confirm that the above patch fixed this issue with make 3.81

     

    Regards,

    --Gunter