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'
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
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
请教各位大师,出现这种错误该如何解决?