红联Linux门户
Linux帮助

fedora 12 的audacious ape 插件编译问题

发布时间:2009-12-09 19:19:59来源:红联作者:maoyang8888
[i=s] 本帖最后由 maoyang8888 于 2009-12-10 09:41 编辑 [/i]

现在我的播放器就差ape不 能播放了,个人喜欢ape音乐,没办法:ha3nd

ape的解码器是装了 是mac-3.99-7.u4b5 还有 mac-devel-3.99-7.u4b5 也装了,是在 添加/删除软件 里装的

我在官网下的audacious ape插件 audacious-mac-0.3.10 编译出现了问题
audacious-mac-0.3.10 地址:http://www.netswarm.net/misc/audacious-mac-0.3.10.tar.gz

首先配置:
./configure --enable-local=yes (为什么要加--enable-local=yes ,我在INSTALL文档里看到这样一句话:
Note: when configuring, there is a option for local install -- --enable-local=yes.
so you can install it in ~/.bmp/Plugins.所以加上了,不加也通不过)

接下来 就是make了:
问题来了
[root@localhost audacious-mac-0.3.10]# make
make all-recursive
make[1]: Entering directory `/root/mao/audacious-mac-0.3.10'
Making all in src
make[2]: Entering directory `/root/mao/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
mkdir .libs
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: invalid conversion from 'void (*)(char*)' to 'Tuple* (*)(gchar*)'
mac.cpp:48: error: cannot convert 'Tuple* (*)(gchar*)' to 'gchar**' in initialization
mac.cpp:48: error: invalid conversion from 'int (*)(gchar*, VFSFile*)' to 'gboolean'
mac.cpp:48: error: cannot convert 'gchar**' to 'gboolean (*)(Tuple*, VFSFile*)' in initialization
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 `/root/mao/audacious-mac-0.3.10/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/mao/audacious-mac-0.3.10'
make: *** [all] 错误 2

问题好像出在mac.cpp 里第48行 ,看上去是数据类型转换出了问题 , 现在把它贴出来希望高手解决
#include "config.h"
#include "mac.h"
#include
#include
#include
#include
#include
#include
const gchar *fmts[] = { "mac", "ape", "apl", NULL };
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,
}; //------------>>>>这就是在mac.cpp里的 48 行(这里我删掉了一些空行)
InputPlugin *mac_plugin_infolist[] = { &mac_plugin_info, NULL };

本人湖北公安人 ,交一下linux朋友
QQ :104692629
QQ 群:13285030
文章评论

共有 4 条评论

  1. zhdw 于 2010-01-19 10:33:43发表:

    还没用到Fedora 12 继续 10中

  2. 天空的心情 于 2010-01-19 01:25:34发表:

    3# bumblebee


    我也遇到这个问题了!按照你说的修改以后,还是没解决问题。请赐教。

  3. bumblebee 于 2010-01-07 09:45:11发表:

    我这样修改后可以,你试试
    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,
    NULL, //add
    0, //add
    0, //add
    };

  4. maoyang8888 于 2009-12-11 13:32:32发表:

    看来没戏了,自己顶一下 。
    我找了个 工具把ape全转flac了:0wpoi2