Déreférencement d'un pointeur de type incomplet
Bonjour,
Je compile l'exemple de ARDrone 2.0 sur Code::Blocks et j'ai des erreur sur le fichier ihm_stages_o_gtk.h à partir de la ligne 147 :
Code:
1 2 3 4 5 6
| video_decoder_config_t * dec_config;
dec_config = (video_decoder_config_t *) cfg->last_decoded_frame_info;
pixbuf_width = dec_config->src_picture->width;
pixbuf_height = dec_config->src_picture->height;
pixbuf_rowstride = dec_config->rowstride;
pixbuf_data = (uint8_t*) in->buffers[in->indexBuffer]; |
La structure video_decoder_config_t est définie dans le fichier video_stage_decoder.h (que j'ai bien sûr inclu à ihm_stages_o_gtk.h) :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| typedef struct _video_decoder_config_t
{
// Input data : dst_picture->format
// Output : all others
vp_api_picture_t *src_picture;
vp_api_picture_t *dst_picture;
uint32_t num_frames;
uint32_t num_picture_decoded;
uint32_t rowstride;
uint32_t bpp;
// Internal datas
bool_t vlibMustChangeFormat;
vlib_stage_decoding_config_t *vlibConf;
vp_api_io_data_t *vlibOut;
mp4h264_config_t *mp4h264Conf;
vp_api_io_data_t *mp4h264Out;
} video_decoder_config_t; |
Et j'obtiens à la compilation les erreurs suivantes :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| /home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c||In function output_gtk_stage_transform:|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|147|erreur: unknown type name video_decoder_config_t|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|148|erreur: video_decoder_config_t undeclared (first use in this function)|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|148|note: each undeclared identifier is reported only once for each function it appears in|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|148|erreur: expected expression before ) token|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|149|erreur: request for member src_picture in something not a structure or union|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|150|erreur: request for member src_picture in something not a structure or union|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|151|erreur: request for member rowstride in something not a structure or union|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c||In function draw_trackers_stage_transform:|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|336|erreur: déréférencement d'un pointeur de type incomplet|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|337|erreur: déréférencement d'un pointeur de type incomplet|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|341|erreur: déréférencement d'un pointeur de type incomplet|
/home/theresis/Projet_ARDrone_Final/App/Navigation/Sources/ihm/ihm_stages_o_gtk.c|389|erreur: déréférencement d'un pointeur de type incomplet|
||=== Build finished: 11 errors, 0 warnings ===| |
Je bloque totalement ... quelqu'un peux m'aider ?
Merci d'avance !