一个人的天空007 2018-06-02 07:17 采纳率: 0%
浏览 1126
已结题

ubuntu 交叉编译vlc 源码时,make出错

ubuntu版本号:14.04.5
vlc源码:vlc2.2.4
在liunux上交叉编译vlc2.2.4源码,使得能够在windows上运行

$ export PKG_CONFIG_LIBDIR=$HOME/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/contrib/i586-mingw32msvc/lib/pkgconfig

$ sudo ../extras/package/win32/configure.sh --host=i586-mingw32msvc
出现以下错误
checking for DV1394... yes
checking for DVDREAD... no
configure: error: Library dvdread > 4.9.0 needed for dvdread was not found

重新执行
$ bash ../extras/package/win32/configure.sh --host=i586-mingw32msvc --disable-dvdread --disable-goom
结果如下

libvlc configuration

version : 2.2.4
system : mingw32
architecture : i586 mmx sse sse2
optimizations : yes
vlc aliases : cvlc rvlc qvlc svlc nvlc

To build vlc and its plugins, type make', or./compile' if you like nice colors.

接下来执行 & sudo make 时,出现以下错误

CC network/rootbind.lo
CC network/tls.lo
CC text/charset.lo
CC text/strings.lo
CC text/unicode.lo
../../extras/package/win32/../../../src/text/unicode.c: In function ‘vlc_towc’:
../../extras/package/win32/../../../src/text/unicode.c:125: warning: ‘cp’ may be used uninitialized in this function
../../extras/package/win32/../../../src/text/unicode.c: In function ‘IsUTF8’:
../../extras/package/win32/../../../src/text/unicode.c:125: warning: ‘cp’ may be used uninitialized in this function
../../extras/package/win32/../../../src/text/unicode.c:125: note: ‘cp’ was declared here
../../extras/package/win32/../../../src/text/unicode.c: In function ‘EnsureUTF8’:
../../extras/package/win32/../../../src/text/unicode.c:125: warning: ‘cp’ may be used uninitialized in this function
../../extras/package/win32/../../../src/text/unicode.c:125: note: ‘cp’ was declared here
../../extras/package/win32/../../../src/text/unicode.c: In function ‘vlc_strcasestr’:
../../extras/package/win32/../../../src/text/unicode.c:125: warning: ‘cp’ may be used uninitialized in this function
../../extras/package/win32/../../../src/text/unicode.c:125: note: ‘cp’ was declared here
../../extras/package/win32/../../../src/text/unicode.c:125: warning: ‘cp’ may be used uninitialized in this function
../../extras/package/win32/../../../src/text/unicode.c:125: note: ‘cp’ was declared here
../../extras/package/win32/../../../src/text/unicode.c:125: warning: ‘cp’ may be used uninitialized in this function
../../extras/package/win32/../../../src/text/unicode.c:125: note: ‘cp’ was declared here
CC text/url.lo
../../extras/package/win32/../../../src/text/url.c:185:3: warning: #warning Drive letter-relative path not implemented!
../../extras/package/win32/../../../src/text/url.c: In function ‘vlc_path2uri’:
../../extras/package/win32/../../../src/text/url.c:188: error: ‘ENOTSUP’ undeclared (first use in this function)
../../extras/package/win32/../../../src/text/url.c:188: error: (Each undeclared identifier is reported only once
../../extras/package/win32/../../../src/text/url.c:188: error: for each function it appears in.)
../../extras/package/win32/../../../src/text/url.c:502:19: error: idna.h: No such file or directory
../../extras/package/win32/../../../src/text/url.c: In function ‘vlc_idna_to_ascii’:
../../extras/package/win32/../../../src/text/url.c:518: error: implicit declaration of function ‘idna_to_ascii_8z’
../../extras/package/win32/../../../src/text/url.c:518: error: ‘IDNA_ALLOW_UNASSIGNED’ undeclared (first use in this function)
../../extras/package/win32/../../../src/text/url.c:518: error: ‘IDNA_SUCCESS’ undeclared (first use in this function)
make[3]: *** [text/url.lo] Error 1
make[3]: Leaving directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32'
make: *** [all] Error 2

请教各位大师,出现这种错误该如何解决?

  • 写回答

3条回答 默认 最新

  • threenewbee 2018-06-02 15:59
    关注

    看了下,主要都是警告性质的提示,把你的编译器的警告级别降低,或者按照文档说明,换兼容版本的gcc

    评论

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)