LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1385|回复: 19

安装MPlayer时configure 和 make 遇到的问题

[复制链接]
发表于 2009-3-4 17:34:24 | 显示全部楼层 |阅读模式
还不太看得懂呢。请大大们指教一下。
从网上找到的方法,(http://www.svn8.com/linux/20080425/567.html)把all-*** 和 essential- ** 和主程序什么的一堆都按照他说的放在指定目录下后,输入:
./configure --enable-gui --enable-largefiles --enable-menu --prefix=/usr --confdir=/etc/mplayer --cc=gcc32
提示说gcc32找不到,用gcc4.3编译的,然后再make就不成了,出错如下:
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
vo_ivtv.c:84: error: 'IVTV_STOP_FL_HIDE_FRAME' undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in this function)
vo_ivtv.c:97: error: 'IVTV_IOC_START_DECODE' undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable 'sd1'
vo_ivtv.c:79: warning: unused variable 'sd'
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/nifei/Desktop/Mplyer Setup/3.2 download/MPlayer-1.0rc2/libvo'
make: *** [libvo/libvo.a] Error 2

那个帖子讲的是FC4下安装mplayer的方法,说gcc32一定要指定的,也见过有说在OpenSuse下不用指定gcc版本。嗯,还说要先确定几个rpm包是否安装了,在OpenSuse下也要这样么?

PS: 论坛搜索为虾米有时候可以跳转,有时候就在搜索设置页面不动呢/?
发表于 2009-3-4 19:21:57 | 显示全部楼层
自己作的安装mplayer的最简单的方法。
pre_install:
- You need a working development environment that can compile programs.
  On popular Linux distributions, this means having the glibc development
  package(s) installed.(你的以上原因是否是glibc-dev这个包没有安装)

- To compile MPlayer with X11 support, you need to have the X Window System
  development packages (like for XFree86 or X.Org) installed.
- For the GUI you need the GTK development packages.(means GTK-dev)
-get the source code:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
(个人以为这一步是必要的,因为我试过从别的地方的code,都不好用,于是下载最新的果然好用)

1.install the binaray codes
untar or (unzip) the codes files into one file which should be used in step 2.
- make sure they have the right user and group ID.
- chmod +x codes
2.  ./configure --prefix=/opt/mplayer \ #for examples
            --codecsdir=/opt/mplayer/codes   \ #the binary codoes you installed in step 1
            --enable-gui  --enable-menu #maybe useless
3.make ,
4.make install.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-4 19:30:38 | 显示全部楼层
谢楼上。看到这个帖子
http://www.linuxsir.cn/bbs/archive/index.php/t-3471.html
可是所有http://www2.mplayerhq.hu/MPlayer/cvs/MPlayer-current.tar.bz2
的链接都无效,mplayer下没有cvs这一级,这是怎么回事呢?
回复 支持 反对

使用道具 举报

发表于 2009-3-4 19:39:01 | 显示全部楼层
不如我的方法简单,其实那个gui我也安装了但是没有什么用处!还是返朴归真的好用。对了没有府上那个解码的codes的下载,自己搜搜把,在mplayer的官方网站,如果是amd64的用户,也要下载amd_essential,一般all-***,和windows-all-***就搞定所以格式的影音了。
回复 支持 反对

使用道具 举报

发表于 2009-3-4 21:47:09 | 显示全部楼层
用Opensuse就没有必要自己编译安装Mplayer加源安装就可以了。
回复 支持 反对

使用道具 举报

发表于 2009-3-4 22:54:02 | 显示全部楼层
用不用我给你发一个 src.rpm 你直接 rpmbuild 就行了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-5 09:34:52 | 显示全部楼层
Post by Thruth;1956350
用不用我给你发一个 src.rpm 你直接 rpmbuild 就行了。


感激不尽啊。。nifeinifei@gmail.com

家里没有网络,每天下一点东西回去做试验,就是make不过。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-5 09:47:41 | 显示全部楼层
Post by zpcat;1956263
不如我的方法简单,其实那个gui我也安装了但是没有什么用处!还是返朴归真的好用。对了没有府上那个解码的codes的下载,自己搜搜把,在mplayer的官方网站,如果是amd64的用户,也要下载amd_essential,一般all-***,和windows-all-***就搞定所以格式的影音了。


你的方法不是完全看的懂,刚刚开始学习,系统都不是自己装的。我研究研究先。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-5 10:13:45 | 显示全部楼层
Post by chanshun8;1956325
用Opensuse就没有必要自己编译安装Mplayer加源安装就可以了。


不太清楚加源安装和编译安装的区别,刚google了一下,加源安装是不是有网络呢?
回复 支持 反对

使用道具 举报

发表于 2009-3-5 10:40:08 | 显示全部楼层
回复 支持 反对

使用道具 举报

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

本版积分规则

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