【Bug笔记】sumatrapdf下载最新版本VS2017专业版编译的时候报错
本人在开源代码sumatrapdf里面下载最新的代码进行编译,本机下载最先专业版VS2017进行运行,不过老是编译运行报错,我在开源网站想作者咨询。
版本:https://github.com/sumatrapdfreader/sumatrapdf
问题:https://github.com/sumatrapdfreader/sumatrapdf/issues/1031
Please help me. When I download the latest version(sumatrapdf-master.zip), I use VS2017 to run the wrong report.My laptop win10 64 bit,When I unzip the file, open vs2017/SumatraPDF.sln, compile and run error.
----------------------------------ERROR-----------------------------------------------------------
Severity code indicates that item file rows are forbidden to display state.
Error MSB8020 could not find the v141_xp generation tool (platform toolset = "v141_xp"). If you want to use the v141_xp generation tool to generate, install the v141_xp generation tool. Or, you can upgrade to the current Visual Studio tool by selecting the "project" menu or right-click the solution, and then selecting the "redefine solution target". Cmapdump D:\Program\VisualStudio2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets 57
I hope you can teach me how to run it, compile those files, and guide me according to your successful compilation. Thank you.
kjk回答:您很可能需要重新运行Visual Studio安装程序,并确保安装XP工具链组件。
当我重新安装VS2017把XP的安装上,重新运行,不过还是有报错:
Today,when i re-run Visual Studio installer and make sure to install XP toolchain component.
----------------------------------ERROR-----------------------------------------------------------
1>------ Build started: Project: synctex, Configuration: Debug x64 ------
2>------ Build started: Project: mupdf, Configuration: Debug x64 ------
1>synctex_parser.c
1>d:\sumatrapdf-master\ext\synctex\synctex_parser.c(715): error C2220: warning treated as error - no 'object' file generated
1>d:\sumatrapdf-master\ext\synctex\synctex_parser.c(715): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>Done building project "synctex.vcxproj" -- FAILED.
2>pdf-write.c
2>d:\sumatrapdf-master\mupdf\source\pdf\pdf-write.c(2075): error C2220: warning treated as error - no 'object' file generated
2>d:\sumatrapdf-master\mupdf\source\pdf\pdf-write.c(2075): warning C4819: The file contains a character that cannot be represented in the current code page (0). Save the file in Unicode format to prevent data loss
2>Done building project "mupdf.vcxproj" -- FAILED.
3>------ Build started: Project: SumatraPDF, Configuration: Debug x64 ------
3>LINK : fatal error LNK1104: cannot open file 'D:\sumatrapdf-master\dbg64\mupdf.lib'
3>Done building project "SumatraPDF.vcxproj" -- FAILED.
========== Build: 0 succeeded, 3 failed, 16 up-to-date, 0 skipped ==========
How is this going?
kjk回答:修改pdf-write.c第2075行的代码,然后synctex_parser.c从新保存一下文件就可以了
pdf-write.c
row 2075
//fprintf(opts->out, "%%\316\274\341\277\246\n\n"); //wrong
fprintf(opts->out, "%%\xC2\xB5\xC2\xB6\n\n"); //ok---come from mupdf-1.12.0-source
You can disable that warning. It's caused by using non-english OS.
重新运行,终于可以了,最新本部3.2
【Bug笔记】sumatrapdf下载最新版本VS2017专业版编译的时候报错相关推荐
- typora显示版本过期,请下载最新版本,可是最新版本84块钱,咋办?
typora显示版本过期,请下载最新版本,可是最新版本84块钱,咋办? 问题一–版本过低 方法有很多种,我就介绍一下我的方法吧 像我电脑的typora就出现了这样的问题,一个是typora版本过低,要 ...
- 转载:微信Windows版-无效的wechatwin.dll文件errcode:126,点击“确定”下载最新版本
昨天更新的微信Windows版本的3.7.5.31,打开微信提示"无效的wechatwin.dll文件errcode:126,点击"确定"下载最新版本". Wi ...
- 下载最新版本火狐浏览器,并且下载geckodriver.exe
2.在火狐浏览器中执行,需要下载最新版本火狐浏览器,并且下载geckodriver.exe,放入火狐安装目录,把目录加入path变量中即可. 第二种办法当然就是使用限制的selenium3.0的版本, ...
- 云服务器linux(centos)系统下载最新版本R语言
1.从R语言官网下载最新版本的R语言压缩包.这里下载的为R-4.2.2.tar.gz 2.对R-4.2.2.tar.gz进行解压 tar -zxf R-4.2.2.tar.gz 并建立一个文 ...
- 淘宝、京东、天猫商品名称数据集下载最新版本。包括中药、化学器材、摄影、动物、酒水、办公事务。
淘宝.京东.天猫商品名称数据集下载最新版本.包括中药.化学器材.摄影.动物.酒水.办公事务. 第一类 用于工业.科学.摄影.农业.园艺.森林的化学品,未加工人造合成树脂,未加工塑料物质,肥料,灭火用合 ...
- 安卓最新版本_tft云顶之弈下载最新版本下载-tft云顶之弈下载最新版本安卓 v10.20.3376669...
tft云顶之弈下载最新版本上面的一些内容其实对于很多的玩家来说是十分完美的.当你充分发挥了自己的策略与实力之后,其实最终游戏中所获得的快感享受也是蛮丰富的.这种玩法其实是非常讲究策略的,所以你在对战竞 ...
- Android APP通过浏览器下载最新版本
Android APP通过浏览器下载最新版本 首先判断app本地的版本和服务器上的版本是否是一样的.如果有新版本,那么就进行更新. 需要服务器端提供两个接口 获取服务器端apk版本号 apk地址 1. ...
- PROTEUS最新版本下载CSDN_最强大冒险二游戏下载最新版本下载_抖音最强大冒险二测试版游戏下载最新版本 v1.0...
最强大冒险二游戏下载最新版本是一款趣味冒险的游戏,各种经历的人生,体验到无限的乐趣分享,超刺激的挑战玩法,各种冒险的经历过程,每次都能感受到最佳的刺激表现,界面的功能,对于你们的帮助作用也是相当的大, ...
- jdk版本和maven版本的匹配问题,maven报错method ‘void <init>()‘ not found
安装maven的时候显示maven报错method 'void <init>()' not found的错误,后来发现是2021版本的idea跟maven的3.8.6的版本不兼容,需要下载 ...
最新文章
- 构造 ---- D. AB Graph(偶数和3远环的关系)
- MySQL 5.1以下如何动态抓取查询日志
- LINUX下查看主机信息
- ASP.NET Core MVC 中的 [Controller] 和 [NonController]
- HMAILSERVER集成WEB邮件系统(ROUNDCUBE WEBMAIL)
- 战痕————道具系统介绍
- 按比例切分组合数值(洛谷P1008、P1618题解,Java语言描述)
- ospf多区域路由实验
- Docker之获取镜像(一)
- 【VRPSD】基于matlab蚁群算法求解运钞车路径规划问题【含Matlab源码 1511期】
- 用C语言画空心三角形
- unity摄像头实物识别_“千万别让女朋友擦倒车摄像头,太tm可怕了哈哈哈哈哈!”...
- 你还在用命令看日志?快用 Kibana 吧,一张图片胜过千万行日志!
- 【正点原子FPGA连载】第三十三章环境光传感器实验 -摘自【正点原子】新起点之FPGA开发指南_V2.1
- 2020年南京社保减免优惠政策(2-12月汇总)
- 碳中和推动第四次工业革命
- 【编辑器】unity自动化生成UI模板代码
- 腾讯财报:2018年Q3腾讯净利润197.1亿元 同比增长15%
- 光纤收发器怎么使用?
- Java猿社区—Redis一篇系列—第二章、Redis入门和安装