1 Notepad++编译资源
*NotePad++ 官网:https://notepad-plus-plus.org/
https://notepad-plus-plus.org/resources.html*
官网给出的源码下载地址,比较老旧,只到6.7.5
git clone https://github.com/donho/notepad-plus-plus.git
下载最新代码,需要使用原始地址:
git clone --recursive https://github.com/notepad-plus-plus/notepad-plus-plus.git
cd notepad-plus-plus # 进入代码目录
git tag # 查看稳定版本tag
git checkout -b b6.9.2 v6.9.2 # 迁出稳定版本
2 为了编译通过,修改配置
使用vs2015编译代码v6.9.2版本,win32 debug版本。
2.1 修改 scintilla\win32\SciLexer.vcxproj 内容:
ToolsVersion="12.0" ==>ToolsVersion="14.0"
v120_xp ==> v140_xp
boost.1.58.0.0 ==> boost.1.61.0.0
boost_regex-vc120.1.58.0.0 ==> boost_regex-vc140.1.61.0.0
boost_regex-vc120.targets ==> boost_regex-vc140.targets
2.2 修改 scintilla\win32\packages.config 内容:
1.58.0.0 ==> 1.61.0.0
boost_regex-vc120 ==> boost_regex-vc140
2.3 修改 scintilla\boostregex\BuildBoost.bat 内容:
// 在两处 vs2013 上面加入对应如下内容
:: VS2015
IF EXIST %BOOSTPATH%\bin.v2\libs\regex\build\msvc-14.0\release\link-static\runtime-link-static\threading-multi\libboost_regex-vc140-mt-s-%BOOSTVERSION%.lib (
SET MSVCTOOLSET=msvc-14.0
)
:: VS2015
IF [%MSVCTOOLSET%]==[msvc-14.0] (
SET BOOSTLIBPATH=%BOOSTPATH%\bin.v2\libs\regex\build\msvc-14.0
)
2.4 PowerEditor\visual.net\notepadPlus.vs2015.vcxproj
ToolsVersion="12.0" ==> ToolsVersion="14.0"
2.5 使用vs2015 打开 PowerEditor\visual.net\notepadPlus.vs2015.vcxproj
属性==>C/C++==>预处理器==>_ALLOW_RTCc_IN_STL
属性==>C/C++==>常规==>将警告视为错误 是==>否
2.6 保存解决方案文件:PowerEditor\visual.net\notepadPlus.vs2015.sln
2.7 添加 scintilla\win32\SciLexer.vcxproj 到 notepadPlus.vs2015.sln
2.8 右键SciLexer,生成,vs2015会自动下载boost 和 boost_regex-vc140
2.9 删除 %appdata%\Notepad++
2.10 rebuild notepadPlus.vs2015.sln
3 F5 开始调试
出现提示一路点击确定