LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: aaccdd

手把手教你编译安装MPlayer-1.0pre5

[复制链接]
 楼主| 发表于 2004-7-29 22:40:52 | 显示全部楼层
由于MPlayer内建了live支持,所以在线播放不需要--enable-live,如果想要该支持,查看live.com网站。复制几个conf文件到~/.mplayer目录下,以后用户修改自己的配置,直接改这些文件


能不能详细讲讲,谢谢了
请看前面的贴子,已经谈到这个问题。:thank
如果我使用--enable-live --with-livelibdir=/usr/local/lib/live 那我事先下的live.2004.07.27.tar.gz要不要先编译呀 ,还是解压后直接复制到/usr/local/lib/live

只需要这样:
1,解压、复制目录到/usr/local/lib/,即成为/usr/local/lib/live
2,进入该目录,然后
# ./genMakefiles linux && make
3,开始编译mplayer-时加上-enable-live --with-livelibdir=/usr/local/lib/live

编译mplayer还没有成功过,今天一定要搞好,给自己点信心

兄弟不要着急,慢慢来。
 楼主| 发表于 2004-7-29 22:42:32 | 显示全部楼层
configure的时候没有出错,可是Make的时候最后提示:

源码:
make[1]: *** [libdha.so.1.0] Error 1
make[1]: Leaving directory `/mnt/h/software/MPlayer-1.0pre5/libdha'
make: *** [libdha/libdha.so] 错误 2



请问这是怎么回事?

请把你的步骤说一下。
发表于 2004-7-29 22:56:10 | 显示全部楼层
就是按你说的一步一步来的。曾经提示缺少libpng和libpng-devel,我下了两个RPM包给解决了,后来提示没有GTK的包,我也安上了。Configure的时候没什么时,提示“Successful”。一make,到最后的最后 就出现我说的那个错误了。我编译了两次,一次用的是all那个解码器包,第二次用的是essenstial那个包,都不行。
发表于 2004-7-29 23:18:35 | 显示全部楼层
安脆换成FC2得了,那些烦人得依赖关系就解决了,我原来用RH9时为了装gimp2费了老鼻子劲,装好后字体和浏览器又出现问题了暴郁闷:p :p :p ,现在好了不会再为安装新软件出现XX工具版本低得提示了;)
 楼主| 发表于 2004-7-29 23:23:14 | 显示全部楼层
这个错误与解码器无关,
是mplayer目录下/libdha/libdha.so.1.0编译的错误
加上--disable-vidix试试看
发表于 2004-7-30 00:24:35 | 显示全部楼层
只需要这样:
1,解压、复制目录到/usr/local/lib/,即成为/usr/local/lib/live
2,进入该目录,然后
# ./genMakefiles linux && make
3,开始编译mplayer-时加上-enable-live --with-livelibdir=/usr/local/lib/live

然后再make时就出现了这个
make[1]: Entering directory `/mnt/Disk2/Download/mplayer/MPlayer-1.0pre5/libmpdemux'
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=athlon -mcpu=athlon -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I../loader  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   -I/usr/include/cdda  -I/usr/local/lib/live/liveMedia/include -I/usr/local/lib/live/UsageEnvironment/include -I/usr/local/lib/live/BasicUsageEnvironment/include -I/usr/local/lib/live/groupsock/include -o demux_rtp.o demux_rtp.cpp
/usr/local/lib/live/UsageEnvironment/include/UsageEnvironment.hh: In function `
   void demux_close_rtp(demuxer_t*)':
/usr/local/lib/live/UsageEnvironment/include/UsageEnvironment.hh:79: error: `
   virtual UsageEnvironment::~UsageEnvironment()' is protected
demux_rtp.cpp:410: error: within this context
make[1]: *** [demux_rtp.o] Error 1
make[1]: Leaving directory `/mnt/Disk2/Download/mplayer/MPlayer-1.0pre5/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] 错误 2


    quote:由于MPlayer内建了live支持,所以在线播放不需要--enable-live,如果想要该支持,查看live.com网站。复制几个conf文件到~/.mplayer目录下,以后用户修改自己的配置,直接改这些文件


    能不能详细讲讲,谢谢了

请看前面的贴子,已经谈到这个问题。      


怎么没看见呀,在哪里呀   急
 楼主| 发表于 2004-7-30 00:45:56 | 显示全部楼层
3,编译安装MPlayer:
tar MPlayer-1.0pre5.tar.bz2
cd MPlayer-1.0pre5
./configure --enable-gui --with-codecsdir=/usr/lib/codecs --with-win32libdir=/usr/lib/codecs --with-reallibdir=/usr/lib/codecs --with-xanimlibdir=/usr/lib/codecs --disable-inet6 --language=zh_CN
make
make install
cd etc/
cp codecs.conf gui.conf input.conf sample.conf ~/.mplayer/
mv ~/.mplayer/sample.conf ~/.mplayer/config
这里
 楼主| 发表于 2004-7-30 00:50:46 | 显示全部楼层
注意一点:
编译时,要把源码包解压至linux分区,
不要放在fat分区.
发表于 2004-7-30 00:55:36 | 显示全部楼层
[root@localhost MPlayer-1.0pre5]# cd etc/
[root@localhost etc]# cp codecs.conf gui.conf input.conf sample.conf ~/.mplayer/
cp: stat‘gui.conf’失败: 没有那个文件或目录
cp: stat‘sample.conf’失败: 没有那个文件或目录


我是在reiserfs下复制在ext3下编译的
发表于 2004-7-30 01:17:55 | 显示全部楼层
状态(working正常,crashing崩溃,untested未测试,problems有问题)

对于又问题 崩溃 或未测试的有什么办法吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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