Clutter-HelloWorld编译出错

编译打包和其他
回复
helloleo
帖子: 13
注册时间: 2010-03-05 22:21

Clutter-HelloWorld编译出错

#1

帖子 helloleo » 2010-03-16 11:39

输入make命令之后的错误信息:
gcc -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.6.2/mkspecs/linux-g++-64 -I. -I/usr/local/Trolltech/Qt-4.6.2/include/QtCore -I/usr/local/Trolltech/Qt-4.6.2/include/QtGui -I/usr/local/Trolltech/Qt-4.6.2/include -I. -I. -o helloclutter.o helloclutter.c
helloclutter.c:1:29: error: clutter/clutter.h: No such file or directory
helloclutter.c:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘key_press_callback’
helloclutter.c: In function ‘main’:
helloclutter.c:28: error: ‘ClutterStage’ undeclared (first use in this function)
helloclutter.c:28: error: (Each undeclared identifier is reported only once
helloclutter.c:28: error: for each function it appears in.)
helloclutter.c:28: error: ‘stage’ undeclared (first use in this function)
helloclutter.c:29: error: ‘ClutterActor’ undeclared (first use in this function)
helloclutter.c:29: error: ‘actor’ undeclared (first use in this function)
helloclutter.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘stage_bg’
helloclutter.c:30: error: ‘stage_bg’ undeclared (first use in this function)
helloclutter.c:30: error: expected expression before ‘{’ token
helloclutter.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘actor_fg’
helloclutter.c:31: error: ‘actor_fg’ undeclared (first use in this function)
helloclutter.c:31: error: expected expression before ‘{’ token
helloclutter.c:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
helloclutter.c:32: error: ‘text’ undeclared (first use in this function)
helloclutter.c:33: error: ‘gint’ undeclared (first use in this function)
helloclutter.c:33: error: expected ‘;’ before ‘xpos’
helloclutter.c:35: warning: implicit declaration of function ‘clutter_init’
helloclutter.c:37: warning: implicit declaration of function ‘CLUTTER_STAGE’
helloclutter.c:37: warning: implicit declaration of function ‘clutter_stage_get_default’
helloclutter.c:38: warning: implicit declaration of function ‘clutter_actor_set_size’
helloclutter.c:38: warning: implicit declaration of function ‘CLUTTER_ACTOR’
helloclutter.c:39: warning: implicit declaration of function ‘clutter_stage_set_title’
helloclutter.c:40: warning: implicit declaration of function ‘clutter_stage_set_color’
helloclutter.c:42: warning: implicit declaration of function ‘clutter_label_new_full’
helloclutter.c:43: error: ‘xpos’ undeclared (first use in this function)
helloclutter.c:44: error: ‘ypos’ undeclared (first use in this function)
helloclutter.c:45: warning: implicit declaration of function ‘clutter_actor_set_position’
helloclutter.c:47: warning: implicit declaration of function ‘clutter_container_add_actor’
helloclutter.c:47: warning: implicit declaration of function ‘CLUTTER_CONTAINER’
helloclutter.c:49: warning: implicit declaration of function ‘clutter_actor_show_all’
helloclutter.c:51: warning: implicit declaration of function ‘g_signal_connect’
helloclutter.c:51: warning: implicit declaration of function ‘G_CALLBACK’
helloclutter.c:51: error: ‘key_press_callback’ undeclared (first use in this function)
helloclutter.c:53: warning: implicit declaration of function ‘clutter_main’
make: *** [helloclutter.o] Error

不知道是什么问题?
回复