免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4349 | 回复: 2
打印 上一主题 下一主题

CentOS X86_64 安装配置VLC问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-11 02:51 |只看该作者 |倒序浏览
[root@nginx_bak ~]# uname -a
Linux nginx_bak 2.6.18-274.12.1.el5 #1 SMP Tue Nov 29 13:37:46 EST 2011 x86_64 x86_64 x86_64 GNU/Linux


make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec/omxil'
make[5]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec/omxil'
make[5]: Entering directory `/usr/local/src/vlc/vlc/modules/codec'
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 `top_srcdir="../.." top_builddir="../.." ../../vlc-config --cflags plugin libx264_plugin.la` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -rpath '/usr/local/lib/vlc/plugins/codec' -avoid-version -module -export-symbol-regex ^vlc_entry -shrext .so -rpath "/usr/local/lib/vlc/plugins/codec" -no-undefined `top_srcdir="../.." top_builddir="../.." ../../vlc-config --ldflags plugin libx264_plugin.la`  -o libx264_plugin.la   libx264_plugin_la-x264.lo  `top_srcdir="../.." top_builddir="../.." ../../vlc-config -libs plugin libx264_plugin.la` ../../src/libvlccore.la ../../compat/libcompat.la
gcc -std=gnu99 -shared  .libs/libx264_plugin_la-x264.o -Wl,--whole-archive ../../compat/.libs/libcompat.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/usr/local/src/vlc/vlc/src/.libs -lx264 -lpthread -L/usr/local/src/vlc/x264-snapshot-20100524-2245 -lm ../../src/.libs/libvlccore.so  -mtune=athlon64 -Wl,-soname -Wl,libx264_plugin.so -o .libs/libx264_plugin.so
/usr/bin/ld: /usr/local/src/vlc/x264-snapshot-20100524-2245/libx264.a(cabac-a.o): relocation R_X86_64_PC32 against `x264_cabac_range_lps' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[5]: *** [libx264_plugin.la] Error 1
make[5]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/vlc/vlc/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/vlc/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vlc/vlc'
make: *** [all] Error 2


请问如何解决?

论坛徽章:
0
2 [报告]
发表于 2011-12-11 10:09 |只看该作者
根据网上资料,说要在Makefile文件里面,给GCC 加参数-fPIC,具体怎么操作?

论坛徽章:
0
3 [报告]
发表于 2014-05-09 11:09 |只看该作者
本帖最后由 zhbobo2001 于 2014-05-09 11:11 编辑

我也遇到问题了,我在google上搜到结果,这么装比较简单
Open the terminal and follow few steps

cd /etc/yum.repos.d/

wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo

yum install vlc
我是这么装上的


http://superuser.com/questions/6 ... 2-0-7-in-centos-6-4
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP