QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3646|回复: 14

求助,编译安装audacious,libmcs 7.0 make 出错

[复制链接]
发表于 2008-10-3 19:01:29 | 显示全部楼层 |阅读模式
admin@localhost libmcs-0.7.1]$ make
Entering directory src.
Entering directory libmcs.
Successfully generated dependencies.
Successfully compiled mcs_backends.c.
Successfully compiled mcs_handle_factory.c.
Successfully compiled mcs_init.c.
Successfully compiled mcs_loader.c.
Successfully compiled mcs_util.c.
Successfully linked libmcs.so.
Leaving directory libmcs.
Entering directory backends.
Entering directory default.
Successfully generated dependencies.
Successfully compiled keyfile.c.
Successfully linked keyfile.so.
Leaving directory default.
Entering directory gconf.
Successfully generated dependencies.
Successfully compiled gconf.c.
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libgconf-2.so when searching for -lgconf-2
/usr/bin/ld: skipping incompatible /usr/lib/libORBit-2.so when searching for -lORBit-2
/usr/bin/ld: skipping incompatible /usr/lib/libgthread-2.0.so when searching for -lgthread-2.0
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libgobject-2.0.so when searching for -lgobject-2.0
/usr/bin/ld: skipping incompatible /usr/lib/libglib-2.0.so when searching for -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
Successfully linked gconf.so.
Leaving directory gconf.
Entering directory kconfig.
kconfig.cc:47:21: 错误:kconfig.h:没有那个文件或目录
kconfig.cc:48:26: 错误:kapplication.h:没有那个文件或目录
kconfig.cc:49:26: 错误:kcmdlineargs.h:没有那个文件或目录
Failed to generate dependencies!
make[7]: *** [depend] 错误 1
make[6]: *** [all] 错误 1
make[5]: *** [subdirs] 错误 1
make[4]: *** [all] 错误 1
make[3]: *** [subdirs] 错误 1
make[2]: *** [all] 错误 1
make[1]: *** [subdirs] 错误 1
make: *** [all] 错误 1
 楼主| 发表于 2008-10-3 19:03:39 | 显示全部楼层
kconfig 文件夹下的 kconfig.cc开头:

/*
* This is mcs; a modular configuration system.
*
* Copyright (c) 2007 Diego Pettenò <[email protected]>
* Copyright (c) 2007 William Pitcock <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright notice,
*    this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
*    notice, this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
*
* 3. The name of the author may not be used to endorse or promote products
*    derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

extern "C" {

  #include "libmcs/mcs.h"

/* ***************************************************************** */

  extern mcs_backend_t mcs_backend;
}

/* Work around a stupid Qt3 namespace bug. */
#define FALSE 0
#define TRUE  1

#include <kconfig.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <assert.h>
回复

使用道具 举报

 楼主| 发表于 2008-10-3 19:07:37 | 显示全部楼层
他们说我缺少kde开发库,但是我似乎已经有了的阿。

[admin@localhost ~]$ rpm -q kdebase
kdebase-3.5.8-5.fc8

[admin@localhost ~]$ rpm -q kdevelop
kdevelop-3.5.0-4.fc8

而且提示缺少的文件,用find命令可以找到

[admin@localhost default]$ find /usr -name kconfig.h
/usr/include/kde/kconfig.h

[admin@localhost default]$ find /usr -name kcmdlineargs.h
/usr/include/kde/kcmdlineargs.h

[admin@localhost default]$ find /usr -name kcmdlineargs.h
/usr/include/kde/kcmdlineargs.h

[admin@localhost default]$ find /usr -name assert.h
/usr/include/assert.h
回复

使用道具 举报

发表于 2008-10-3 22:00:59 | 显示全部楼层
你用的哪个发行版?
回复

使用道具 举报

发表于 2008-10-3 23:00:29 | 显示全部楼层
应该在 kdelibs-devel 里面?或者 kdebase-devel 里面。不过我觉得得这个有一个参数可以关掉,也就是不让 mcs 使用 kconfig 。
回复

使用道具 举报

 楼主| 发表于 2008-10-4 12:25:30 | 显示全部楼层
原帖由 hillwood 于 2008-10-3 22:00 发表
你用的哪个发行版?


我用的是fc 8
回复

使用道具 举报

 楼主| 发表于 2008-10-4 12:26:37 | 显示全部楼层
原帖由 jiangtao9999 于 2008-10-3 23:00 发表
应该在 kdelibs-devel 里面?或者 kdebase-devel 里面。不过我觉得得这个有一个参数可以关掉,也就是不让 mcs 使用 kconfig 。


您的意思是,我需要装这两个包么?

我试看看能不能关掉kconfig
回复

使用道具 举报

发表于 2008-10-4 12:42:17 | 显示全部楼层
编译软件必须装对应的 devel 。

除非你不用这个功能。就不需要对应功能的 devel 。

[ 本帖最后由 jiangtao9999 于 2008-10-4 12:45 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2008-10-4 14:11:21 | 显示全部楼层
[admin@localhost ~]$ rpm -q kdelibs-devel
kdelibs-devel-3.5.8-7.fc8
kdelibs-devel-3.5.8-7.fc8

[admin@localhost ~]$ rpm -q kdebase-devel
kdebase-devel-3.5.8-5.fc8
kdebase-devel-3.5.8-5.fc8

似乎我也已经有了
回复

使用道具 举报

 楼主| 发表于 2008-10-4 14:13:54 | 显示全部楼层
./configure --disable-kconfig

我把kconfig关掉后,已经把audacious,和audacious-plugins安装上去了。

但是碰到一个我觉得更麻烦的事情。就是无法运行他。不知道版主有什么办法能让他运行起来么?

我在./configure时,没有给他设置安装路径。

[admin@localhost ~]$ whereis audacious
audacious: /usr/lib64/audacious     /usr/local/bin/audacious     /usr/share/audacious

[admin@localhost images]$ /usr/local/bin/audacious
/usr/local/bin/audacious: error while loading shared libraries: libaudclient.so.1: cannot open shared object file: No such file or directory


[admin@localhost images]$ whereis  libaudclient.so.1
libaudclient.so: /usr/local/lib/libaudclient.so.1  /usr/local/lib/libaudclient.so

感觉好麻烦阿 。

[ 本帖最后由 shuai3352_ 于 2008-10-4 14:21 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2008-10-4 14:32:46 | 显示全部楼层
我在audacious 的官方网站上看到:

  It says that it can't find libaudacious.so (or something like that)

Odds are likely that your system is looking in the wrong place for the Audacious libraries. Previous versions of Audacious used a program called libtool which generated a launcher script for Audacious which worked around things like these. Additionally, it is probably likely that you compiled Audacious from source in this case and your system is not properly configured to check where Audacious has installed it's dependencies.

The solution here is to update your ld.so.conf. The following code (as root) will probably solve the problem.

# echo '/usr/local/lib' >> /etc/ld.so.conf
# ldconfig

If you are running on x86-64, you may need to specify /usr/local/lib64 instead of /usr/local/lib as your search path.


于是,我照样学样,

[root@localhost images]# echo '/usr/local/lib' >> /etc/ld.so.conf
[root@localhost images]# /sbin/ldconfig

这样运行之后,出现了更让我头疼的信息。

[root@localhost images]# /usr/local/bin/audacious
段错误

这回更不知道是什么回事了。
回复

使用道具 举报

发表于 2008-10-4 15:43:40 | 显示全部楼层
重新编译一下试试
回复

使用道具 举报

发表于 2008-10-4 15:44:50 | 显示全部楼层
另外 Fedora 8 的 yum 里面有 audacious 。
mp3 的支持可以找 freshrpm 一类的第三方源解决。
回复

使用道具 举报

 楼主| 发表于 2008-10-4 21:32:48 | 显示全部楼层
重新编译后,还是一样的。以现在我的水平,只能放弃了。

看来也只能用yum来装了。

谢谢版主。
回复

使用道具 举报

发表于 2008-10-4 23:02:50 | 显示全部楼层
出现段错误很难判断问题所在,一般都是编译环境有问题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-25 20:25 , Processed in 0.124373 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表