> ## Content Index
> Fetch the complete content index at: https://blog.skitisu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Mission Planner编译指南（适用于>1.3.36的源码）
- URL: https://blog.skitisu.com/mission-planner-compile-guide/
- Published: 2016-03-29T03:26:49.000Z
- Updated: 2016-03-29T03:26:49.000Z
- Author: SkiTiSu
- Tags: 探索, 编程, #Import 2026-10-21 14:41

## 1\. 下载原料

下载Visual Studio并安装：[http://www.visualstudio.com/downloads/download-visual-studio-vs](http://www.visualstudio.com/downloads/download-visual-studio-vs?ref=blog.skitisu.com)

如果会使用Git，推荐安装Github Desktop：[https://desktop.github.com/](https://desktop.github.com/?ref=blog.skitisu.com)

下载Python并安装（推荐安装3.5版本）：[https://www.python.org/downloads/](https://www.python.org/downloads/?ref=blog.skitisu.com)

## 2\. 克隆代码

本项目的Github项目主页是：[https://github.com/ArduPilot/MissionPlanner](https://github.com/ArduPilot/MissionPlanner?ref=blog.skitisu.com)

### · 只希望编译一次

点击*Download ZIP*，并解压代码在**没有中文**的目录中

### · 使用常规方法 [![mpguide1](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguide1-600x283.jpg)](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguide1.jpg)

点击克隆图标，选择Github Desktop（推荐）或Visual Studio

## 3\. 确认环境

### · Python

首次安装完请先重启。打开CMD，输入Python，如果成功进入了Python，说明Python已配置完成。如果不正常，请*右击此电脑 >系统>高级系统设置>高级>环境变量*，请确保Python的安装目录已经添加在其中（图以2.7版本为例），如果没有，请手动添加并重启。

[![mpguidepythonpath](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguidepythonpath-475x500.jpg)](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguidepythonpath.jpg)

## 4\. 编译

打开根目录下的项目文件*MissionPlanner.sln*，点击上方的启动，看到很多的错误请勿惊慌，那是因为*Mavlink.cs*还没有生成。从1.3.36起，*Mavlink.cs*文件会在每次编译的时候使用Python自动生成，如果编译多次仍因错误导致无法运行，请点击*生成*中的*重新生成解决方案。*

如果错误列表中的错误与“Microsoft.DirectX.DirectInput”相关，请安装DirectX 9。

首次Debug时可能会提示“发生了LoaderLock”，请取消勾选*引发此异常类型时终端*，并点击继续

[![mpguide2](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguide2-600x489.jpg)](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguide2.jpg)

好了，MP已经编译并运行成功

[![mpguide3](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguide3-600x338.jpg)](https://blog.skitisu.com/wp-content/uploads/2016/03/mpguide3.jpg)

**如果碰到了问题，请对照本文确保每一个点都看到，如果是本文中未提及的问题，请打开输出窗口查看编译输出，寻找错误点并修正。请不要按照网络上的老教程修改项目属性等！**

## 5\. 关于天书

本人为Mission Planner和Tower（手机地面站）中文本地化，并持续贡献代码，看官可以扫描右边二维码打赏给我动力，请备注需要在MP关于中留下的赞助人名称，非常感谢。如需联系我，可以在APM中文网交流群中找到四季天书。我的邮箱：skitisu(at)gmail.com。

再多说一句，本软件使用GNU授权，改版的时候，至少保留名字哦\~而且GNU是要求二次开发也再次开源的哦\~

### 历史引用

- Mission Planner 源代码编译与使用过程 &#8211; WANSKEE&#039;S BLOG · 2016-07-25 12:01:57.000000  
> \[…\] Mission Planner编译指南（适用于>1.3.36的源码） \[…\]  
[查看引用来源](http://www.wanskee.cc/2016/07/25/mission-planner-%e6%ba%90%e4%bb%a3%e7%a0%81%e7%bc%96%e8%af%91%e4%b8%8e%e4%bd%bf%e7%94%a8%e8%bf%87%e7%a8%8b/?ref=blog.skitisu.com)