问题描述
新版Ghostscript(9.07)具有线程支持(可以是线程安全的),但是它表示必须使用特殊标志编译代码才能启用此功能.
The new version of Ghostscript (9.07) has a threading support (can be thread-safe), but it says that the code must be compiled with a special flag to enable this.
我该怎么做?或在哪里可以获取已经构建的线程安全版本?
How do I do this? Or where can I get already built thread-safe version?
我尝试下载在VS中打开的源,但无法构建.因此,也许有人已经做到了,并且可以共享DLL.
I tried to download the source, opened in VS, but it failed to build. So maybe somebody has already done this and could share the DLL.
推荐答案
我也在寻找该问题的解决方案,最终我在Linux中解决了该问题.也许它将帮助来这里寻求解决方案的人.在源代码目录中打开终端,然后输入以下命令:
I was looking for solution for this problem as well and eventually I solved it in Linux. Maybe it will help someone who comes here looking for solution.Open terminal in sources directory and type this command:
./configure --enable-threadsafe
之后,您可以对lib执行 make
或 make so
.这是从源代码构建ghostscript的文档链接: https://www.ghostscript.com/doc/9.23/Make.htm#Makefile_overview .
After that you can do make
or make so
for lib.Here is link to docs for building ghostscript from sources: https://www.ghostscript.com/doc/9.23/Make.htm#Makefile_overview.
这篇关于在哪里获取线程安全的Ghostscript编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!