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.

error in example-davinci

 

 

 

Hi all,

 

 

I am getting the following errors while cross compiling the file  capture_prev_rsz_ss_raw_bayer.c from the davinci-demo-examples.

I tried to search for the structure definition rsz_channel_config but i couldn't find anywhere/

 

Please guide me.

 

 

mayank@mayank-laptop:~/DM355SDK789311/fs/fs/usr/share/myprojects/examples-davinci$ /opt/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc capture_prev_rsz_ss_raw_bayer.c
capture_prev_rsz_ss_raw_bayer.c: In function ‘init_resizer’:
capture_prev_rsz_ss_raw_bayer.c:319: error: storage size of ‘rsz_chan_config’ isn’t known
capture_prev_rsz_ss_raw_bayer.c:353: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:353: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:353: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:353: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:366: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:366: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:366: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:366: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:377: error: ‘IMP_MODE_SINGLE_SHOT’ undeclared (first use in this function)
capture_prev_rsz_ss_raw_bayer.c:377: error: (Each undeclared identifier is reported only once
capture_prev_rsz_ss_raw_bayer.c:377: error: for each function it appears in.)
capture_prev_rsz_ss_raw_bayer.c:381: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:381: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:381: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c:381: error: invalid application of ‘sizeof’ to incomplete type ‘struct rsz_channel_config’
capture_prev_rsz_ss_raw_bayer.c: In function ‘init_previewer’:
capture_prev_rsz_ss_raw_bayer.c:395: error: storage size of ‘prev_chan_config’ isn’t known
capture_prev_rsz_ss_raw_bayer.c:397: error: storage size of ‘cap’ isn’t known
capture_prev_rsz_ss_raw_bayer.c:398: error: storage size of ‘mod_param’ isn’t known
capture_prev_rsz_ss_raw_bayer.c:435: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:435: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:435: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:435: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:446: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:446: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:446: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:446: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:510: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:510: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:510: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:510: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_channel_config’
capture_prev_rsz_ss_raw_bayer.c:518: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_cap’
capture_prev_rsz_ss_raw_bayer.c:518: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:518: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_cap’
capture_prev_rsz_ss_raw_bayer.c:518: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_cap’
capture_prev_rsz_ss_raw_bayer.c:560: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_module_param’
capture_prev_rsz_ss_raw_bayer.c:560: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:560: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_module_param’
capture_prev_rsz_ss_raw_bayer.c:560: error: invalid application of ‘sizeof’ to incomplete type ‘struct prev_module_param’
capture_prev_rsz_ss_raw_bayer.c: In function ‘do_preview_resize’:
capture_prev_rsz_ss_raw_bayer.c:580: error: storage size of ‘convert’ isn’t known
capture_prev_rsz_ss_raw_bayer.c:584: error: ‘IMP_BUF_IN’ undeclared (first use in this function)
capture_prev_rsz_ss_raw_bayer.c:601: error: ‘IMP_BUF_OUT1’ undeclared (first use in this function)
capture_prev_rsz_ss_raw_bayer.c:605: error: invalid application of ‘sizeof’ to incomplete type ‘struct imp_convert’
capture_prev_rsz_ss_raw_bayer.c:605: error: array type has incomplete element type
capture_prev_rsz_ss_raw_bayer.c:605: error: invalid application of ‘sizeof’ to incomplete type ‘struct imp_convert’
capture_prev_rsz_ss_raw_bayer.c:605: error: invalid application of ‘sizeof’ to incomplete type ‘struct imp_convert’
capture_prev_rsz_ss_raw_bayer.c: In function ‘configCCDCraw’:
capture_prev_rsz_ss_raw_bayer.c:625: error: unknown field ‘enable’ specified in initializer
capture_prev_rsz_ss_raw_bayer.c: In function ‘SetDataFormat’:
capture_prev_rsz_ss_raw_bayer.c:764: error: ‘V4L2_PIX_FMT_SBGGR16’ undeclared (first use in this function)
capture_prev_rsz_ss_raw_bayer.c: In function ‘main’:
capture_prev_rsz_ss_raw_bayer.c:1089: error: ‘IMP_MODE_SINGLE_SHOT’ undeclared (first use in this function)

 

 

Thanks and Regards,

Mayank