我在fedora12上装了audacious2,据说把mac和audacious-mac装上以后,就可以播放ape。但是在编译audacious-mac-0.3.10的时候,就报错了:
[root@localhost audacious-mac-0.3.10]# make
make all-recursive
make[1]: Entering directory `/home/kinglaw/下载/audacious-mac-0.3.10'
Making all in src
make[2]: Entering directory `/home/kinglaw/下载/audacious-mac-0.3.10/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/libmowgli -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -Wall -pedantic -DBUILD_CROSS_PLATFORM -DHAVE_MKDTEMP -g -O2 -MT libaudacious_mac_la-mac.lo -MD -MP -MF ".deps/libaudacious_mac_la-mac.Tpo" -c -o libaudacious_mac_la-mac.lo `test -f 'mac.cpp' || echo './'`mac.cpp; \
then mv -f ".deps/libaudacious_mac_la-mac.Tpo" ".deps/libaudacious_mac_la-mac.Plo"; else rm -f ".deps/libaudacious_mac_la-mac.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/libmowgli -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -Wall -pedantic -DBUILD_CROSS_PLATFORM -DHAVE_MKDTEMP -g -O2 -MT libaudacious_mac_la-mac.lo -MD -MP -MF .deps/libaudacious_mac_la-mac.Tpo -c mac.cpp -fPIC -DPIC -o .libs/libaudacious_mac_la-mac.o
mac.cpp:48: error: too many initializers for 'InputPlugin'
mac.cpp:48: error: cannot convert 'mowgli_boolean_t' to 'PluginPreferences*' in initialization
mac.cpp:48: error: cannot convert 'void (*)(InputPlayback*)' to 'gchar**' in initialization
mac.cpp:48: error: invalid conversion from 'void (*)(InputPlayback*)' to 'GList* (*)(gchar*)'
mac.cpp:48: error: invalid conversion from 'void (*)(InputPlayback*, short int)' to 'gint (*)(const gchar*)'
mac.cpp:48: error: invalid conversion from 'void (*)(InputPlayback*, int)' to 'gint (*)(const gchar*, VFSFile*)'
mac.cpp:48: error: invalid conversion from 'void (*)(char*)' to 'void (*)(const gchar*, gint, gint, gint, gint)'
mac.cpp:48: error: invalid conversion from 'Tuple* (*)(gchar*)' to 'void (*)(const gchar*)'
mac.cpp: In function 'Tuple* get_song_tuple_from_iapedec(gchar*, IAPEDecompress*)':
mac.cpp:120: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:121: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:122: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:123: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:124: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:125: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:128: warning: deprecated conversion from string constant to 'wchar_t*'
mac.cpp:129: warning: deprecated conversion from string constant to 'wchar_t*'
make[2]: *** [libaudacious_mac_la-mac.lo] 错误 1
make[2]: Leaving directory `/home/kinglaw/下载/audacious-mac-0.3.10/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/kinglaw/下载/audacious-mac-0.3.10'
make: *** [all] 错误 2
报错说初始化参数太多的地方是
InputPlugin mac_plugin_info =
{
NULL,
NULL,
(gchar *)"Monkeys Audio Codec Player " VERSION,
NULL,
NULL,
mac_about,
NULL,
FALSE,
NULL,
NULL,
mac_play_file,
mac_stop,
mac_pause,
mac_seek,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
mac_file_info_box,
NULL,
mac_get_song_tuple,
NULL,
NULL,
mac_is_our_file_from_vfs,
(gchar **)fmts,
mac_mseek,
};
苦思N遍,依旧无果,望各路英雄施以援手,不胜感激!


hyqhyq_3 于 2010-02-04 22:58:18发表:
mac?不懂,不过现在我的rhythmbox可以播放ape
jiangnan641020 于 2010-02-04 17:43:34发表:
我是做任务的。