设为首页 加入收藏

TOP

在Linux上编译Windows上运行的VLC
2014-11-24 08:32:26 来源: 作者: 【 】 浏览:0
Tags:Linux 编译 Windows 运行 VLC

2,安装必须的工具包否则后面会出错
#apt-get install autoconf automake libtool git subversion


3,安装win32下编译工具
#apt-get install gcc-mingw32 mingw32-binutils


4.安装最新的VLC
#cd /home/git_work
#git clone git://git.videolan.org/vlc.git


5.进入vlc目录,进入第三方包目录
#cd vlc
#mkdir -p contrib/win32
#cd contrib/win32



6.配置并编译第三方包
#../bootstrap --host=i586-mingw32msvc
Guessing build system... i686-linux-gnu
Creating configuration file... config.mak
Bootstrap completed.


Run "make" to start compilation.
Other targets:
* make install same as "make"
* make prebuilt fetch and install prebuilt binaries
* make list list packages
* make fetch fetch required source tarballs
* make fetch-all fetch all source tarballs
* make distclean clean everything and undo bootstrap
* makemostlyclean clean everything exceptsource tarballs
* make clean clean everything
* make package prepare prebuilt packages


#make prebuilt
Fixingup ./lib/libdvdread.la
Fixingup ./lib/libfreetype.la
Fixingup ./lib/libzvbi.la
Fixingup ./lib/libresid-builder.la
Fixingup ./lib/libschroedinger-1.0.la
Fixingup ./lib/libFLAC.la
Fixingup ./change_prefix.sh

7.回到vlc根目录
#cd ../..
#./bootstrap
+ rm -fpo/Makevars.template ABOUT-NLS
+ echo
+ mv -fINSTALL.git INSTALL
+ rm -f stamp-h*
+ set +x
Successfullybootstrapped


8.配置makefile
#mkdir win32 && cd win32
#../extras/package/win32/configure.sh --host=i586-mingw32msvc


checking forLUA... no
configure:WARNING: No package 'lua5.1' found, trying lua >= 5.1 instead
checking forLUA... yes
checking forluac... no
出错就安装
#apt-get install lua5.1

#../extras/package/win32/configure.sh --host=i586-mingw32msvc
libvlcconfiguration
--------------------
version : 2.1.0-git
system : mingw32
architecture : i586 mmx sse sse2
optimizations : yes
vlcaliases : cvlc rvlc qvlc svlc
Tobuild vlc and its plugins, type `./compile' or `make'.


9.编译
#make


10.打包
#make package-win32-zip


11.在vlc/win32目录下可以找到vlc-2.1.0-git-win32.zip文件,复制到windows目录下,解压缩即可运行


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇解决OpenCv中没有找到tbb_debug.d.. 下一篇C语言查看变量字节程序

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·如何理解c语言指针和 (2025-12-27 01:19:11)
·为什么C标准库没有链 (2025-12-27 01:19:08)
·玩转C语言和数据结构 (2025-12-27 01:19:05)
·MySQL 基础入门视频 (2025-12-26 23:20:22)
·小白入门:MySQL超详 (2025-12-26 23:20:19)