简体   繁体   English

Windows上QT4的Poppler库

[英]Poppler library for QT4 on windows

I am making a program in which I will include datasheets of PIC processors. 我正在编写一个程序,其中将包含PIC处理器的数据表。 I now want to display these inside the QT program itself as a widget. 我现在想将它们作为小部件显示在QT程序内部。 I wanted to use poppler for this, but I am having a very hard time trying to get hold of these binaries! 我想为此使用poppler,但是我很难掌握这些二进制文件! I can't seem to Cmake the poppler for QT4. 我似乎无法让QT4成为波普勒。 Could anyone help me on how to make these libraries on Windows 7. 谁能帮助我在Windows 7上制作这些库。

(I have never compiled/build anything yet on Windows, only Unix, I downloaded the CMAKE program, and tried to use this to generate it with the CMakeLists.txt file, but no luck so far.) (我从未在Windows上编译/构建任何东西,仅在Unix上,我下载了CMAKE程序,并试图使用它通过CMakeLists.txt文件生成它,但是到目前为止还算运气。)

The best solution (because this way I could learn it myself, and never have this problem again) is a 'tutorial' on how to do it myself. 最好的解决方案(因为这样我就可以自己学习,而不再遇到这个问题了)是关于如何自己做的“教程”。 If not then giving me the libraries itself would be very much appreciated! 如果没有,那么给我图书馆本身将不胜感激!

I'd wanted to point you to SumatraPDF , but it looks like they're not using poppler any more. 我想将您指向SumatraPDF ,但看来他们不再使用poppler了。 You could have a look at the mupdf subdirectory though, it has MSVC makefiles for several libraries required for poppler. 不过,您可以看一下mupdf子目录,它具有用于poppler所需的多个库的MSVC makefile。 You might have some luck adapting them for building libpoppler itself. 您可能会有些运气使它们适应于构建libpoppler本身。

You could also use Cygwin or MingW to get/build poppler. 您也可以使用Cygwin或MingW来获取/构建poppler。

您可能需要看一下: Poppler:使用Qt显示PDF文件

You can use the KDEWin installer to automatically get all the appropriate binaries for your machine. 您可以使用KDEWin安装程序自动为您的计算机获取所有适当的二进制文件。 This is very useful and is the strategy used in many projects (including my CarMusTy, Carnatic Music Typesetting application). 这非常有用,并且是许多项目(包括我的CarMusTy,Carnatic音乐排版应用程序)中使用的策略。

Check out: http://www.winkde.org/pub/kde/ports/win32/installer/ 检出: http : //www.winkde.org/pub/kde/ports/win32/installer/

It automatically downloads all the required dependencies when you ask it download the required binaries. 当您要求它下载所需的二进制文件时,它将自动下载所有必需的依赖项。 And you can get the dlls suited for your particular compiler. 您可以获得适合您的特定编译器的dll。 (MSVC, MingW supported) (支持MSVC,MingW)

Also you can get the source code for poppler. 您也可以获取poppler的源代码。 KDEWin supports versions, so you can get the latest version binaries or any previous version you like. KDEWin支持版本,因此您可以获得最新版本的二进制文件或所需的任何先前版本。

Check out http://windows.kde.org/ for more details. 请访问http://windows.kde.org/了解更多详细信息。

All the best 祝一切顺利

Gopalakrishna Palem
Creator of CFugue and CarMusTy
http://gpalem.web.officelive.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM