Re: 又是播放器!! Music_Me
发表于 : 2009-10-28 14:02

你没装gstreamer,不是程序的错哦imysl0 写了:lz还在吧?挺不错的,加油啊!
yecheng@yecheng-laptop:~/soft/Music_Me$ (pkg-config --cflags --libs gstreamer-0.10) -g -o music_me core.c core.h gui.h gui.c main.c `pkg-config --cflags --libs gtk+-2.0`
bash: 在未预料的“-g”附近出现语法错误
yecheng@yecheng-laptop:~/soft/Music_Me$ gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) -g -o music_me core.c core.h gui.h gui.c main.c `pkg-config --cflags --libs gtk+-2.0`
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found在包含自 core.c:1 的文件中:
core.h:4:20: 错误: gst/gst.h:没有该文件或目录
In file included from core.c:1:
core.h:14: 错误: expected specifier-qualifier-list before ‘GstElement’
core.c:147: 错误: expected ‘)’ before ‘*’ token
core.c: 在函数‘core_creat’中:
core.c:194: 错误: ‘GstBus’未声明(在此函数内第一次使用)
core.c:194: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
core.c:194: 错误: 所在的函数内也只报告一次。)
core.c:194: 错误: ‘bus’未声明(在此函数内第一次使用)
core.c:195: 错误: ‘GstElement’未声明(在此函数内第一次使用)
core.c:195: 错误: ‘play’未声明(在此函数内第一次使用)
core.c:197: 警告: 隐式声明函数‘gst_element_factory_make’
core.c:198: 警告: 隐式声明函数‘gst_pipeline_get_bus’
core.c:198: 警告: 隐式声明函数‘GST_PIPELINE’
core.c:199: 警告: 隐式声明函数‘gst_bus_add_watch’
core.c:199: 错误: ‘GstBusFunc’未声明(在此函数内第一次使用)
core.c:199: 错误: expected ‘)’ before ‘core_bus_call’
core.c:200: 警告: 隐式声明函数‘gst_object_unref’
core.c:201: 警告: 隐式声明函数‘gst_element_set_state’
core.c:201: 错误: ‘GST_STATE_NULL’未声明(在此函数内第一次使用)
core.c:203: 错误: ‘CORE’没有名为‘play’的成员
core.c:204: 错误: ‘CORE’没有名为‘bus’的成员
core.c:205: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:207: 错误: ‘CORE’没有名为‘pl’的成员
core.c:207: 错误: ‘CORE’没有名为‘mode’的成员
core.c:207: 错误: ‘CORE’没有名为‘repeat’的成员
core.c:207: 错误: ‘CORE’没有名为‘random’的成员
core.c:207: 错误: ‘CORE’没有名为‘volume’的成员
core.c:209: 错误: ‘CORE’没有名为‘random’的成员
core.c:211: 错误: ‘CORE’没有名为‘pl’的成员
core.c:217: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:218: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:220: 错误: ‘CORE’没有名为‘pl’的成员
core.c:220: 错误: ‘CORE’没有名为‘plnum’的成员
core.c: 在函数‘core_set_uri’中:
core.c:225: 警告: 隐式声明函数‘g_object_set’
core.c:225: 警告: 隐式声明函数‘G_OBJECT’
core.c:225: 错误: ‘CORE’没有名为‘play’的成员
core.c: 在函数‘core_play’中:
core.c:238: 错误: ‘GstState’未声明(在此函数内第一次使用)
core.c:238: 错误: expected ‘;’ before ‘state’
core.c:239: 错误: ‘GstClockTime’未声明(在此函数内第一次使用)
core.c:239: 错误: expected ‘;’ before ‘timeout’
core.c:240: 警告: 隐式声明函数‘gst_element_get_state’
core.c:240: 错误: ‘CORE’没有名为‘play’的成员
core.c:240: 错误: ‘state’未声明(在此函数内第一次使用)
core.c:240: 错误: ‘timeout’未声明(在此函数内第一次使用)
core.c:241: 错误: ‘GST_STATE_PAUSED’未声明(在此函数内第一次使用)
core.c:244: 错误: ‘CORE’没有名为‘play’的成员
core.c:244: 错误: ‘GST_STATE_NULL’未声明(在此函数内第一次使用)
core.c:248: 错误: ‘CORE’没有名为‘play’的成员
core.c:248: 错误: ‘GST_STATE_PLAYING’未声明(在此函数内第一次使用)
core.c:250: 错误: ‘CORE’没有名为‘vol’的成员
core.c:251: 错误: ‘CORE’没有名为‘vol’的成员
core.c:251: 警告: 隐式声明函数‘gst_bin_get_by_name’
core.c:251: 警告: 隐式声明函数‘GST_BIN’
core.c:251: 错误: ‘CORE’没有名为‘play’的成员
core.c: 在函数‘core_pause’中:
core.c:265: 错误: ‘CORE’没有名为‘play’的成员
core.c:265: 错误: ‘GST_STATE_PAUSED’未声明(在此函数内第一次使用)
core.c: 在函数‘core_quit’中:
core.c:272: 错误: ‘CORE’没有名为‘play’的成员
core.c:272: 错误: ‘GST_STATE_NULL’未声明(在此函数内第一次使用)
core.c:273: 警告: 隐式声明函数‘GST_OBJECT’
core.c:273: 错误: ‘CORE’没有名为‘play’的成员
core.c: 在函数‘core_change’中:
core.c:279: 错误: ‘GstState’未声明(在此函数内第一次使用)
core.c:279: 错误: expected ‘;’ before ‘state’
core.c:280: 错误: ‘GstClockTime’未声明(在此函数内第一次使用)
core.c:280: 错误: expected ‘;’ before ‘timeout’
core.c:281: 错误: ‘CORE’没有名为‘play’的成员
core.c:281: 错误: ‘state’未声明(在此函数内第一次使用)
core.c:281: 错误: ‘timeout’未声明(在此函数内第一次使用)
core.c:282: 错误: ‘GST_STATE_PLAYING’未声明(在此函数内第一次使用)
core.c: 在函数‘core_play_next’中:
core.c:299: 错误: ‘CORE’没有名为‘random’的成员
core.c:301: 错误: ‘CORE’没有名为‘pl’的成员
core.c:307: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:308: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:309: 错误: ‘CORE’没有名为‘pl’的成员
core.c:309: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:313: 错误: ‘CORE’没有名为‘repeat’的成员
core.c:314: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:315: 错误: ‘CORE’没有名为‘pl’的成员
core.c:315: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:317: 错误: ‘CORE’没有名为‘repeat’的成员
core.c:318: 错误: ‘CORE’没有名为‘pl’的成员
core.c:318: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:322: 错误: ‘CORE’没有名为‘repeat’的成员
core.c:324: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:325: 错误: ‘CORE’没有名为‘pl’的成员
core.c:325: 错误: ‘CORE’没有名为‘plnum’的成员
core.c:327: 错误: ‘CORE’没有名为‘repeat’的成员
core.c:333: 错误: ‘CORE’没有名为‘pl’的成员
core.c:334: 错误: ‘CORE’没有名为‘plnum’的成员
core.h:4:20: 错误: gst/gst.h:没有该文件或目录
core.h:14: 错误: expected specifier-qualifier-list before ‘GstElement’
在包含自 gui.h:6 的文件中:
core.h:4:20: 错误: gst/gst.h:没有该文件或目录
In file included from gui.h:6:
core.h:14: 错误: expected specifier-qualifier-list before ‘GstElement’
在包含自 gui.h:6 的文件中,
从 gui.c:1:
core.h:4:20: 错误: gst/gst.h:没有该文件或目录
In file included from gui.h:6,
from gui.c:1:
core.h:14: 错误: expected specifier-qualifier-list before ‘GstElement’
在包含自 gui.h:6 的文件中,
从 main.c:1:
core.h:4:20: 错误: gst/gst.h:没有该文件或目录
In file included from gui.h:6,
from main.c:1:
core.h:14: 错误: expected specifier-qualifier-list before ‘GstElement’
main.c: 在函数‘main’中:
main.c:24: 警告: 隐式声明函数‘gst_init’
新版本建议出deb包yy890521 写了:下一个版本的预览。界面有点难看。不想弄那些张扬的东西,低调一点好。
关键是功能,其他都不是重要的。
求购楼主的主题 还有中间那个便条程序..和右边栏的东西yy890521 写了:自己顶一下
主题已经没有了daniel_c 写了:求购楼主的主题 还有中间那个便条程序..和右边栏的东西yy890521 写了:自己顶一下
是gtk的吗?从界面上不太看得出来啊yy890521 写了:MusicMe 已经beta了![]()
是gtk的,可以更换主题。photor 写了:是gtk的吗?从界面上不太看得出来啊yy890521 写了:MusicMe 已经beta了![]()