NotePad++ 在 windows10 上用 vs2015 编译

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 开始调试

出现提示一路点击确定

调试提示1

调试提示2

调试提示3

调试提示4

运行结果

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值