在ubuntu上交叉编译vlc源码,最后打包时报错

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

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

$ sudo ../extras/package/win32/configure.sh --host=i686-w64-mingw32

libvlc configuration

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

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

接下来执行 & sudo make
Making all in test
make[2]: Entering directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/test'
make[2]: Nothing to be done for
all'.
make[2]: Leaving directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/test'
make[2]: Entering directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32'
GEN cvlc
GEN rvlc
GEN qvlc
GEN svlc
GEN vlc.exe
make[2]: Leaving directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32'
make[1]: Leaving directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32'

最后执行打包$ sudo make package-win32-zip时报错
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_dummy_plugin.la’
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_mpjpeg_plugin.dll.a’
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_asf_plugin.la’
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_mp4_plugin.la’
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_ps_plugin.la’
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_ps_plugin.dll.a’
removed ‘/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/vlc-2.2.4/plugins/mux/libmux_mpjpeg_plugin.la’
rm -f -- stamp-npapi.tmp
if test -d npapi-vlc; then \
cd npapi-vlc && \
git fetch origin && \
git reset --hard origin/master; \
git submodule update; \
else \
git clone https://code.videolan.org/videolan/npapi-vlc.git npapi-vlc && \
cd npapi-vlc && \
git submodule update --init; \
fi
HEAD is now at d64081f Update deinterlace functions to recent API changes
git --git-dir=npapi-vlc/.git describe --long --always > stamp-npapi.tmp
if diff stamp-npapi.tmp stamp-npapi >/dev/null 2>&1; then \
rm -f -- stamp-npapi.tmp ; \
else \
mv -f -- stamp-npapi.tmp stamp-npapi ; \
fi
make install-npapi
make[1]: Entering directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32'
make -C npapi-vlc
make[2]: Entering directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc'
make all-recursive
make[3]: Entering directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc'
Making all in common
make[4]: Entering directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc/common'
make[4]: Nothing to be done for all'.
make[4]: Leaving directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc/common'
Making all in npapi
make[4]: Entering directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc/npapi'
CXXLD npvlc.la
/usr/bin/i686-w64-mingw32-ld: attempted static link of dynamic object
/usr/local/lib/libvlc.so'
collect2: error: ld returned 1 exit status
make[4]: *** [npvlc.la] Error 1
make[4]: Leaving directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc/npapi'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc'
make[2]: *** [all] Error 2
make[2]: Leaving directory /home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32/npapi-vlc'
make[1]: *** [npapi-vlc/npapi/npvlc.la] Error 2
make[1]: Leaving directory
/home/wcj/my/vlc/vlc2.2.4.3/vlc-2.2.4/win32'
make: *** [build-npapi] Error 2

请教各位大师,出现这种错误该如何解决?
Cross-compilation: cache generation skipped!
make[5]: Leaving directory /home/wcj/my/vlc/vlc2.1.5/vlc-2.1.5/win32'
make[4]: Nothing to be done for
install-data-am'.
make[4]: Leaving directory /home/wcj/my/vlc/vlc2.1.5/vlc-2.1.5/win32'
make[3]: Leaving directory
/home/wcj/my/vlc/vlc2.1.5/vlc-2.1.5/win32'
make[2]: Leaving directory /home/wcj/my/vlc/vlc2.1.5/vlc-2.1.5/win32'
make[1]: Leaving directory
/home/wcj/my/vlc/vlc2.1.5/vlc-2.1.5/win32'
touch package-win-install
rm -Rf npapi-vlc
git clone git://git.videolan.org/npapi-vlc.git npapi-vlc
Cloning into 'npapi-vlc'...
fatal: remote error: access denied or repository not exported: /npapi-vlc.git
make: *** [stamp-npapi-fetch] Error 128

2个回答

可以试着提高一下 Ubuntu版本 这个了解一下

系统版本问题,不兼容,这个考虑一下?

aqiasi007
一个人的天空007 请问是要换一个vlc高的版本,还是说把ubuntu版本换成16.4的?
大约 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐