MPC-HC在windows10上VS2013编译

13 篇文章 0 订阅

MPC-HC在windows10上用vs2013编译

本文完成于2016-08-23

  • MPC-HC简介
  • 所需软件
  • 编译过程

1 MPC-HC简介

产品官网:https://mpc-hc.org/
源码地址:https://github.com/mpc-hc/mpc-hc.git

MPC-HC,全称Media Player Classic Home Cinema,是Windows平台上一个非常轻量级的开源媒体播放器。它支持所有常见的视频和音频文件格式的播放。它是100%免费的,没有任何广告或后门。
Media Player Classic Home Cinema,简称MPC-HC,是Media Player Classic 的后续版本。

Media Player Classic是由名为”Gabest”的程序员创建的,Gabest原先是以不公开源代码的方式开发Media Player Classic,但后来他开放了Media Player Classic的源代码。Media Player Classic延续了Windows Media Player6.4几乎相同的接口和朴素的风格界面,然而这是与Windows Media Player 6.4完全不同的应用程序。

Media Player Classic 的原作者 Gabest 已于2006年停止继续开发MPC,MPC-HC在MPC基础上修复了大量BUG,不断增强内部解码性能,并增加了切合现代播放的一些功能。

2 所需软件

需要安装以下软件:
TortoiseGit
vs2013 update4+
DirectX SDK (June 2010)
python2.7
msys

软件版本和下载链接:

软件下载链接
TortoiseGithttps://download.tortoisegit.org/tgit/2.2.0.0/TortoiseGit-2.2.0.0-64bit.msi
vs2013 update5https://go.microsoft.com/fwlink/?LinkId=532496&type=ISO&clcid=0x409
DirectX SDK (June 2010)https://www.microsoft.com/en-us/download/confirmation.aspx?id=6812
python2.7https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msi
msyshttp://xhmikosr.1f0.de/tools/msys/MSYS_MinGW-w64_GCC_610_x86-x64_Full.7z

3 编译过程

3.1 下载代码:

git clone --recursive https://github.com/mpc-hc/mpc-hc.git
rem 更新所有代码。
git submodule foreach --recursive git fetch --tags
git submodule update --init --recursive

3.2阅读mpc-hc子目录docs下Compilation.txt文件。

3.3 迁出自己想编译版本代码

迁出自己想要编译的版本。可以使用git tag 查看最新的tag,并把他迁出,来编译稳定版本。比如:当前比较新的tag是1.7.10。迁出方法:

git checkout -b b1.7.10 1.7.10
git submodule foreach --recursive git fetch --tags
git submodule update --init --recursive

3.4 设置环境变量。

在mpc-hc目录下,新建文件 build_user.bat 。内容如下:

@ECHO OFF
SET "MPCHC_MSYS=C:\MSYS"
SET "MPCHC_MINGW32=%MPCHC_MSYS%\mingw"
SET "MPCHC_MINGW64=%MPCHC_MINGW32%"
REM Git is optional to set if you chose to add it in PATH when installing it
SET "MPCHC_GIT=C:\Program Files\Git"
REM Optional, if you plan to modify the translations, install Python 2.7 or set the variable to its path
SET "MPCHC_PYTHON=C:\Python27"

3.5 运行 mpc-hc目录下的 build.bat 生成vs2013工程。

3.6 使用vs打开mpc-hc.sln、修改调试代码。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值