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

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个回答

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

aqiasi007
一个人的天空007 请问如何设置降低编译器的警告级别,我用的是交叉编译工具链
一年多之前 回复

‘ENOTSUP’ undeclared (first use in this function), 这个参数之前没有定义

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!