hardware: VEYE-MIPI-327E, Raspberry 3B+
system: Raspbian GNU / Linux 8 (jessie)
When I run ./buildme to build the .so file, I get this error:
(vRMS) pi@raspberrypi:~/raspberrypi/D_mipi_rpi/libdmipicam $ ./buildme
RaspiCamControl.c: In function ‘raspicamcontrol_set_annotate’:
RaspiCamControl.c:1608:4: error: unknown type name ‘MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T’
MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T annotate =
^
RaspiCamControl.c:1609:7: warning: braces around scalar initializer
{{MMAL_PARAMETER_ANNOTATE, sizeof(MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T)}};
^
RaspiCamControl.c:1609:7: warning: (near initialization for ‘annotate’)
RaspiCamControl.c:1609:41: error: ‘MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T’ undeclared (first use in this function)
{{MMAL_PARAMETER_ANNOTATE, sizeof(MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T)}};
^
RaspiCamControl.c:1609:41: note: each undeclared identifier is reported only once for each function it appears in
RaspiCamControl.c:1609:7: warning: excess elements in scalar initializer
{{MMAL_PARAMETER_ANNOTATE, sizeof(MMAL_PARAMETER_CAMERA_ANNOTATE_V4_T)}};
^
RaspiCamControl.c:1609:7: warning: (near initialization for ‘annotate’)
RaspiCamControl.c:1615:16: error: ‘MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V4’ undeclared (first use in this function)
char tmp[MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V4];
^
RaspiCamControl.c:1618:15: error: request for member ‘enable’ in something not a structure or union
annotate.enable = 1;
^
RaspiCamControl.c:1624:30: error: request for member ‘text’ in something not a structure or union
strftime(annotate.text, MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3, string, &tm );
^
RaspiCamControl.c:1627:29: error: request for member ‘text’ in something not a structure or union
strncpy(annotate.text, string, MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3);
^
RaspiCamControl.c:1629:18: error: request for member ‘text’ in something not a structure or union
annotate.text[MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3-1] = '\0';
^
RaspiCamControl.c:1634:28: error: request for member ‘text’ in something not a structure or union
if(strlen(annotate.text)){
^
RaspiCamControl.c:1639:26: error: request for member ‘text’ in something not a structure or union
strncat(annotate.text, tmp, MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3 - strlen(annotate.text) - 1);
^
RaspiCamControl.c:1639:92: error: request for member ‘text’ in something not a structure or union
strncat(annotate.text, tmp, MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3 - strlen(annotate.text) - 1);
^
RaspiCamControl.c:1644:28: error: request for member ‘text’ in something not a structure or union
if(strlen(annotate.text)){
^
RaspiCamControl.c:1649:26: error: request for member ‘text’ in something not a structure or union
strncat(annotate.text, tmp, MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3 - strlen(annotate.text) - 1);
^
RaspiCamControl.c:1649:92: error: request for member ‘text’ in something not a structure or union
strncat(annotate.text, tmp, MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V3 - strlen(annotate.text) - 1);
^
RaspiCamControl.c:1653:18: error: request for member ‘show_shutter’ in something not a structure or union
annotate.show_shutter = MMAL_TRUE;
^
RaspiCamControl.c:1656:18: error: request for member ‘show_analog_gain’ in something not a structure or union
annotate.show_analog_gain = MMAL_TRUE;
^
RaspiCamControl.c:1659:18: error: request for member ‘show_lens’ in something not a structure or union
annotate.show_lens = MMAL_TRUE;
^
RaspiCamControl.c:1662:18: error: request for member ‘show_caf’ in something not a structure or union
annotate.show_caf = MMAL_TRUE;
^
RaspiCamControl.c:1665:18: error: request for member ‘show_motion’ in something not a structure or union
annotate.show_motion = MMAL_TRUE;
^
RaspiCamControl.c:1668:18: error: request for member ‘show_frame_num’ in something not a structure or union
annotate.show_frame_num = MMAL_TRUE;
^
RaspiCamControl.c:1671:18: error: request for member ‘enable_text_background’ in something not a structure or union
annotate.enable_text_background = MMAL_TRUE;
^
RaspiCamControl.c:1673:15: error: request for member ‘text_size’ in something not a structure or union
annotate.text_size = text_size;
^
RaspiCamControl.c:1677:18: error: request for member ‘custom_text_colour’ in something not a structure or union
annotate.custom_text_colour = MMAL_TRUE;
^
RaspiCamControl.c:1678:18: error: request for member ‘custom_text_Y’ in something not a structure or union
annotate.custom_text_Y = text_colour&0xff;
^
RaspiCamControl.c:1679:18: error: request for member ‘custom_text_U’ in something not a structure or union
annotate.custom_text_U = (text_colour>>8)&0xff;
^
RaspiCamControl.c:1680:18: error: request for member ‘custom_text_V’ in something not a structure or union
annotate.custom_text_V = (text_colour>>16)&0xff;
^
RaspiCamControl.c:1683:18: error: request for member ‘custom_text_colour’ in something not a structure or union
annotate.custom_text_colour = MMAL_FALSE;
^
RaspiCamControl.c:1687:18: error: request for member ‘custom_background_colour’ in something not a structure or union
annotate.custom_background_colour = MMAL_TRUE;
^
RaspiCamControl.c:1688:18: error: request for member ‘custom_background_Y’ in something not a structure or union
annotate.custom_background_Y = bg_colour&0xff;
^
RaspiCamControl.c:1689:18: error: request for member ‘custom_background_U’ in something not a structure or union
annotate.custom_background_U = (bg_colour>>8)&0xff;
^
RaspiCamControl.c:1690:18: error: request for member ‘custom_background_V’ in something not a structure or union
annotate.custom_background_V = (bg_colour>>16)&0xff;
^
RaspiCamControl.c:1693:18: error: request for member ‘custom_background_colour’ in something not a structure or union
annotate.custom_background_colour = MMAL_FALSE;
^
RaspiCamControl.c:1695:15: error: request for member ‘justify’ in something not a structure or union
annotate.justify = justify;
^
RaspiCamControl.c:1696:15: error: request for member ‘x_offset’ in something not a structure or union
annotate.x_offset = x;
^
RaspiCamControl.c:1697:15: error: request for member ‘y_offset’ in something not a structure or union
annotate.y_offset = y;
^
RaspiCamControl.c:1700:16: error: request for member ‘enable’ in something not a structure or union
annotate.enable = 0;
^
RaspiCamControl.c:1702:80: error: request for member ‘hdr’ in something not a structure or union
return mmal_status_to_int(mmal_port_parameter_set(camera->control, &annotate.hdr));
^