码迷,mamicode.com
首页 > 其他好文 > 详细

VLC编译问题

时间:2015-02-04 14:22:20      阅读:395      评论:0      收藏:0      [点我收藏+]

标签:

在Ubuntu下编译VLC源代码生成的VLC无法播放Youtube视频(比如https://www.youtube.com/watch?v=mDp-ABzpRX8)

错误提示如下:

zlf@ubuntu:~/vlc-2.1.5$ ./vlc
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x9872a98] main libvlc: 正在以默认界面运行 vlc,使用 cvlc 将 vlc 运行在无界面的状态下。
[0x9931448] main tls client error: TLS client plugin not available
[0xb5d034d8] main input error: open of `https://www.youtube.com/watch?v=mDp-ABzpRX8‘ failed

原因是缺少TLS客户端插件,因此需要将GNUTLS库编译进来。

 

下载GNUTLS库,最新版本3.3.12,configure时报错,缺少依赖库Libnettle,而且只能适配2.7.1,nettle3.0还不行。

zlf@ubuntu:~/gnutls-3.3.12$ ./configure --prefix=/usr
configure: error:
  ***
  *** Libnettle 2.7.1 was not found. Note that this version of gnutls doesnt support nettle 3.0.

 

又去下载NETTLE库,编译安装,再运行GNUTLS的configure,NETTLE倒是检查通过,但依然报错,还需要HOGWEED库和GMP。
zlf@ubuntu:~/gnutls-3.3.12$ ./configure --prefix=/usr
..................
checking for NETTLE... yes
checking for HOGWEED... no
configure: error:
  ***
  *** Libhogweed (nettles companion library) was not found. Note that you must compile nettle with gmp support.
 
下载GMP库,编译安装:How to Install GMP in Ubuntu

下载HOGWEED库,编译安装。
 
然后,需要重新配置安装NETTLE,可以参考这篇文章(遇到的一模一样的问题及解决方案)。
 
再再次重新配置编译GNUTLS,
configure正常通过,但make时又报错了,典型的undefined reference to的error问题。
 
../lib/.libs/libgnutls.so: undefined reference to `nettle_umac96_set_key../lib/.libs/libgnutls.so: undefined reference to `nettle_salsa20_crypt../lib/.libs/libgnutls.so: undefined reference to `nettle_umac128_update../lib/.libs/libgnutls.so: undefined reference to `nettle_umac96_set_nonce../lib/.libs/libgnutls.so: undefined reference to `nettle_salsa20_set_key../lib/.libs/libgnutls.so: undefined reference to `nettle_umac128_set_nonce../lib/.libs/libgnutls.so: undefined reference to `nettle_umac128_set_key../lib/.libs/libgnutls.so: undefined reference to `nettle_umac96_digest../lib/.libs/libgnutls.so: undefined reference to `nettle_salsa20_set_iv../lib/.libs/libgnutls.so: undefined reference to `nettle_umac128_digest../lib/.libs/libgnutls.so: undefined reference to `nettle_salsa20r12_crypt../lib/.libs/libgnutls.so: undefined reference to `nettle_umac96_updatecollect2: ld returned 1 exit status
make[4]: *** [psktool] Error 1
make[4]: Leaving directory `/home/zlf/gnutls-3.3.12/srcmake[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/zlf/gnutls-3.3.12/srcmake[2]: *** [all] Error 2
make[2]: Leaving directory `/home/zlf/gnutls-3.3.12/srcmake[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zlf/gnutls-3.3.12make: *** [all] 错误 2

VLC编译问题

标签:

原文地址:http://www.cnblogs.com/siikee/p/4272104.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!