view PDF file using Poppler
-
Dear Qt forum,
I m trying to use poppler lib to view or display PDF file within my GUI. I used CMake.exe and tried to build it under vs2013 win64 + Qt5. I built the following dependencies without any errors
- Cairo
- Freetype
- Jpeg
- OpenJpeg
- zlib
- PNG
I linked the Release/Debug & lib directories in CMake, but when it comes to build poppler in vs2013, I got the many errors, here's one of them:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(15): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(20): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(32): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(51): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(57): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(64): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(70): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(77): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(85): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(93): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(99): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(106): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(112): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(118): error C2894: templates cannot be declared to have 'C' linkage
3>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtr1common(124): error C2894: templates cannot be declared to have 'C' linkageIs there any other way to view PDF file in your GUI?
I would appreciate any help or guidance from you!Regards,
-
Hi,
Might be a silly question but did you saw the README.windows ?
-
@SGaist
Hi! yes I have checked this before but I dropped it, I got many errors because I don't know how to link the libraries in the command prompt- 'nmake -f makefile.vc TARGET=rel'
And the link does not contain Qt5 . When I downloaded the latest release of poppler, it didn't come with makefile.vc file. So I decided to go with CMake GUI.
I'm not comfortable with makefiles, I prefer to use CMake GUI (easy to include lib & dir) since I already built zlib, freetype and libjpeg libraries in vs2013 win64
Regards,