+ -
当前位置:首页 → 问答吧 → 安装MPlayer时configure 和 make 遇到的问题

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

时间:2009-03-04

来源:互联网

还不太看得懂呢。请大大们指教一下。
从网上找到的方法,(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: 论坛搜索为虾米有时候可以跳转,有时候就在搜索设置页面不动呢/?

作者: nifeinifei   发布时间: 2009-03-04

自己作的安装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.

作者: zpcat   发布时间: 2009-03-05

谢楼上。看到这个帖子
http://www.linuxsir.org/bbs/archive/...hp/t-3471.html
可是所有http://www2.mplayerhq.hu/MPlayer/cvs...urrent.tar.bz2
的链接都无效,mplayer下没有cvs这一级,这是怎么回事呢?

作者: nifeinifei   发布时间: 2009-03-05

不如我的方法简单,其实那个gui我也安装了但是没有什么用处!还是返朴归真的好用。对了没有府上那个解码的codes的下载,自己搜搜把,在mplayer的官方网站,如果是amd64的用户,也要下载amd_essential,一般all-***,和windows-all-***就搞定所以格式的影音了。

作者: zpcat   发布时间: 2009-03-05

用Opensuse就没有必要自己编译安装Mplayer加源安装就可以了。

作者: chanshun8   发布时间: 2009-03-05

用不用我给你发一个 src.rpm 你直接 rpmbuild 就行了。

作者: Thruth   发布时间: 2009-03-05

引用:
作者: Thruth
用不用我给你发一个 src.rpm 你直接 rpmbuild 就行了。
感激不尽啊。。[email protected]

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

作者: nifeinifei   发布时间: 2009-03-05

引用:
作者: zpcat
不如我的方法简单,其实那个gui我也安装了但是没有什么用处!还是返朴归真的好用。对了没有府上那个解码的codes的下载,自己搜搜把,在mplayer的官方网站,如果是amd64的用户,也要下载amd_essential,一般all-***,和windows-all-***就搞定所以格式的影音了。
你的方法不是完全看的懂,刚刚开始学习,系统都不是自己装的。我研究研究先。

作者: nifeinifei   发布时间: 2009-03-05

引用:
作者: chanshun8
用Opensuse就没有必要自己编译安装Mplayer加源安装就可以了。
不太清楚加源安装和编译安装的区别,刚google了一下,加源安装是不是有网络呢?

作者: nifeinifei   发布时间: 2009-03-05

http://www.linuxsir.org/bbs/thread345786.html

作者: Thruth   发布时间: 2009-03-05

我按过源里的,还不如自己编译的好用呢?有一些毛病。

作者: zpcat   发布时间: 2009-03-05

引用:
作者: zpcat
我按过源里的,还不如自己编译的好用呢?有一些毛病。
很弱地再问一下,什么叫源里的?

作者: nifeinifei   发布时间: 2009-03-05

楼上的问题我也有点疑惑
网上有一键安装的 yum文件
还有什么包的源,到yast里面去添加
我是新手现在还没搞明白这些东西~~

作者: xjh312   发布时间: 2009-03-05

只的是在yast里面添加软件源,这样就可以在yast里面搜索安装了。
另外,suse有一件安装的方法安装软件http://software.opensuse.org/search
到此网页搜索mplayer,有一键安装的快捷方式完成以上的动作。

作者: zpcat   发布时间: 2009-03-05

引用:
作者: nifeinifei
不太清楚加源安装和编译安装的区别,刚google了一下,加源安装是不是有网络呢?
加源安装当然你的电脑是要可以上网才行,和编译安装的没有什么区别。

作者: chanshun8   发布时间: 2009-03-06

$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
整个新版本的mplayer,建rpm或编译随人啦。编译时可以加中文语言参数

作者: fanb   发布时间: 2009-03-06

引用:
作者: nifeinifei
还不太看得懂呢。请大大们指教一下。
从网上找到的方法,(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: 论坛搜索为虾米有时候可以跳转,有时候就在搜索设置页面不动呢/?
LZ后来的问题应该是ivtv的问题。
./configure 加上参数: --disable-ivtv 在试试看。

作者: tideice   发布时间: 2009-03-06

引用:
作者: tideice
LZ后来的问题应该是ivtv的问题。
./configure 加上参数: --disable-ivtv 在试试看。
终于有人看我编译的错误了,涕零。今天回去就试试!

作者: nifeinifei   发布时间: 2009-03-06

引用:
作者: fanb
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
整个新版本的mplayer,建rpm或编译随人啦。编译时可以加中文语言参数
我想问用rpmbuild需不需要有网络,鄙视我吧。。。

作者: nifeinifei   发布时间: 2009-03-06

引用:
作者: nifeinifei
我想问用rpmbuild需不需要有网络,鄙视我吧。。。
刚查了一下,rpm是不需要有网络的对吗?我能不能把rpm打包的软件理解成linux下的setup.exe呢?

作者: nifeinifei   发布时间: 2009-03-06