官方编译教程
Compiling on Windows :: OpenCPN Developer Manual
Prerequisities
-
for OpenCPN v5.0.0
-
with wxWidgets v3.1.2
-
Plugin API starts with API 1.16 (Supports plugins with earlier API but they must be compiled again for OpenCPN v5.0 due to the change in wxWidgets.)
-
Highest chance of success if these steps are followed exactly.
Visual Studio 2017
-
Get Visual Studio Community 2017. Go to this microsoft web page Older Visual Studio and scroll down.
-
Install and select the workload Desktop development with C* and include component *Windows XP support for C.
-
Also include the appropriate Windows x SDK component. Generally install the most current version, Windows 10 preferred.
Git
-
Get Git for Windows from https://gitforwindows.org
-
Install and let the installer register git in your PATH and select Checkout as-is, commit Unix-style line endings
CMake
-
Get the latest CMake installation packages from https://cmake.org
-
Install and let the installer register in the PATH environment variable
POedit
-
Get the latest POedit installation package from https://poedit.net
-
Install
-
Add C:\Program Files (x86)\Poedit\GettextTools\bin to your PATH
NSIS
-
Download NSIS (Nullsoft Scriptabe Ins