sumatra pdf android,sumatrapdf

SumatraPDF是一款开源的多格式阅读器,支持PDF, EPUB, MOBI等多种格式。它适用于Windows系统,并且基于GPLv3和部分BSD许可证。要编译该项目,你需要Visual Studio 2019 16.6或更高版本,免费社区版即可。通过打开解决方案文件并按F5即可编译和运行。注意,对于内存泄漏检测,由于某些限制可能无法正常工作。此外,文章还提供了编译注意事项和地址 sanitizer 的配置选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

badge.svg

SumatraPDF Reader

SumatraPDF is a multi-format (PDF, EPUB, MOBI, FB2, CHM, XPS, DjVu) reader

for Windows under (A)GPLv3 license, with some code under BSD license (see

AUTHORS).

More information:

main website with downloads and documentation

To compile you need Visual Studio 2019 16.6 or later. Free Community edition works.

Open vs2019/SumatraPDF.sln and hit F5 to compile and run.

For best results use the latest release available as that's what I use and test with.

If things don't compile, first make sure you're using the latest version of Visual Studio.

Notes on targets:

x32_asan target is for enabling address sanitizer, only works in 32-bit Release build and requires installing an optional "C++ AddressSanitizers" component

Asan notes

Docs:

Flags:

Can be set with env variable:

ASAN_OPTIONS=halt_on_error=0:allocator_may_return_null=1:verbosity=2:check_malloc_usable_size=false:print_suppressions=true:suppressions="C:\Users\kjk\src\sumatrapdf\asan.supp"

In Visual Studio, this is in Debugging, Environment section.

Note:

as of VS 16.6.2 ASAN_OPTIONS=detect_leaks=1 (i.e. memory leaks) doesn't work.

Unix version relies on tcmalloc so this might never work

Suppressing issues: https://clang.llvm.org/docs/AddressSanitizer.html#issue-suppression

Note: I couldn't get suppressing to work.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值