您发布的malic代码我make不过...求指导

Viagragu 发布于 2012/06/29 16:30
阅读 393
收藏 0

@springfieldking 你好,想跟你请教个问题:  

malic代码中报错,我使用Ubuntu10.04,configure成功,make出错在malic_common.c和malic_common.h上,错误信息如下,求指导

In file included from malic_common.c:27:
malic_common.h:198: error: expected declaration specifiers or ‘...’ before ‘MalibFilter’
malic_common.h:199: error: expected ‘)’ before ‘*’ token
malic_common.h:200: error: expected declaration specifiers or ‘...’ before ‘MalibFrame’
malic_common.h:202: error: expected ‘)’ before ‘*’ token
malic_common.h:204: error: expected ‘)’ before ‘*’ token
malic_common.h:205: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
malic_common.h:208: error: expected declaration specifiers or ‘...’ before ‘MalibFrame’
malic_common.h:210: error: expected declaration specifiers or ‘...’ before ‘MalibFrame’
malic_common.h:217: error: expected ‘)’ before ‘*’ token
malic_common.h:219: error: expected ‘)’ before ‘*’ token
malic_common.h:235: error: expected declaration specifiers or ‘...’ before ‘MalibGtkDisplay’
malic_common.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
malic_common.c:31: error: expected declaration specifiers or ‘...’ before ‘MalibFilter’
malic_common.c: In function ‘set_malib_frame_data_to_csu_image’:
malic_common.c:34: error: ‘MalibFrame’ undeclared (first use in this function)
malic_common.c:34: error: (Each undeclared identifier is reported only once
malic_common.c:34: error: for each function it appears in.)
malic_common.c:34: error: ‘from_frame’ undeclared (first use in this function)
malic_common.c:35: error: ‘MalibBuffer’ undeclared (first use in this function)
malic_common.c:35: error: ‘buffer’ undeclared (first use in this function)
malic_common.c:36: error: ‘filter’ undeclared (first use in this function)
malic_common.c:37: warning: implicit declaration of function ‘MALIB_OBJECT_COUNT_REFERENCES’
malic_common.c:39: warning: implicit declaration of function ‘malib_holder_increment_frame’
malic_common.c:39: error: ‘MalibHolder’ undeclared (first use in this function)
malic_common.c:39: error: expected expression before ‘)’ token
malic_common.c:41: warning: implicit declaration of function ‘malib_buffer_get_current_frame’
malic_common.c:41: error: ‘MalibFilter’ undeclared (first use in this function)
malic_common.c:41: error: expected expression before ‘)’ token
malic_common.c:42: warning: implicit declaration of function ‘malib_filter_calc_output_image_size’
malic_common.c: At top level:
malic_common.c:55: error: expected ‘)’ before ‘*’ token
malic_common.c💯 error: expected declaration specifiers or ‘...’ before ‘MalibFrame’
malic_common.c: In function ‘malic_draw_line’:
malic_common.c:125: error: ‘frame’ undeclared (first use in this function)
malic_common.c:103: warning: unused variable ‘height’
malic_common.c: At top level:
malic_common.c:152: error: expected ‘)’ before ‘*’ token
malic_common.c:166: error: expected ‘)’ before ‘*’ token
malic_common.c:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
malic_common.c:190: error: expected declaration specifiers or ‘...’ before ‘MalibFrame’
malic_common.c: In function ‘set_resized_csu_image_from_frame’:
malic_common.c:197: warning: implicit declaration of function ‘MALIB_FRAME_DEFAULT_NUM_COLORS’
malic_common.c:197: error: ‘prev_frame’ undeclared (first use in this function)
malic_common.c:233: warning: ‘return’ with a value, in function returning void
malic_common.c:197: warning: unused variable ‘colors’
malic_common.c:195: warning: unused variable ‘j’
malic_common.c:193: warning: unused variable ‘cv_next_image’
malic_common.c:193: warning: unused variable ‘cv_prev_image’
malic_common.c:192: warning: unused variable ‘cv_next_size’
malic_common.c:192: warning: unused variable ‘cv_prev_size’
malic_common.c:191: warning: unused variable ‘new_image’
malic_common.c: At top level:
malic_common.c:236: error: expected declaration specifiers or ‘...’ before ‘MalibFrame’
malic_common.c: In function ‘set_resized_csu_image_from_cv_frame’:
malic_common.c:245: error: ‘prev_frame’ undeclared (first use in this function)
malic_common.c:286: warning: ‘return’ with a value, in function returning void
malic_common.c:240: warning: unused variable ‘cv_tmp_image’
malic_common.c:240: warning: unused variable ‘cv_prev_image’
malic_common.c:239: warning: unused variable ‘cv_next_size’
malic_common.c:239: warning: unused variable ‘cv_prev_size’
malic_common.c:238: warning: unused variable ‘new_image’
malic_common.c: In function ‘get_biggest_width_face_num’:
malic_common.c:290: warning: unused variable ‘j’
malic_common.c: At top level:
malic_common.c:356: error: expected ‘)’ before ‘*’ token
malic_common.c:370: error: expected ‘)’ before ‘*’ token
malic_common.c: In function ‘malic_cv_remove_inside_rect_with_angle_seq’:
malic_common.c:498: warning: unused variable ‘k’
malic_common.c: At top level:
malic_common.c:533: error: expected declaration specifiers or ‘...’ before ‘MalibGtkDisplay’
malic_common.c: In function ‘malic_toggle_running_clicked’:
malic_common.c:534: error: ‘MalibSink’ undeclared (first use in this function)
malic_common.c:534: error: ‘sink’ undeclared (first use in this function)
malic_common.c:535: error: ‘MalibSinkStatus’ undeclared (first use in this function)
malic_common.c:535: error: expected ‘;’ before ‘status’
malic_common.c:537: error: expected expression before ‘)’ token
malic_common.c:538: error: ‘status’ undeclared (first use in this function)
malic_common.c:538: warning: implicit declaration of function ‘malib_sink_get_status’
malic_common.c:539: warning: implicit declaration of function ‘malib_sink_set_status’
malic_common.c:539: error: ‘MALIB_SINK_RUNNING’ undeclared (first use in this function)
malic_common.c:540: error: ‘MALIB_SINK_HALT’ undeclared (first use in this function)
malic_common.c: In function ‘malic_pixmap_update’:
malic_common.c:560: warning: passing argument 1 of ‘gtk_widget_ref’ from incompatible pointer type
/usr/local/include/gtk/gtkwidget.h:422: note: expected ‘struct GtkWidget *’ but argument is of type ‘struct GtkPixmap *’
malic_common.c: In function ‘makeMalicFaceGraphWithImgData’:
malic_common.c:577: warning: implicit declaration of function ‘setFaceGraphMembers’
malic_common.c: In function ‘face_graph_deepcopy’:
malic_common.c:592: warning: implicit declaration of function ‘grm_jet_new_and_copy’
malic_common.c: In function ‘malic_int_value_label_update’:
malic_common.c:602: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’

加载中
返回顶部
顶部