Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Because the poppler libraries CMake has a ridiculous amount of overhead, and is really difficult to debug and understand the project files it has generated, I recpmmend manually creating this project.
- ###############################################
- - How I have created the project for MSVC2010 -
- ###############################################
- 1. Create new empty C++ project in MSVC
- 2. Add a \src\ subdirectory
- 3. Place these files from poppler\utils here:
- HtmlFonts.cc HtmlLinks.cc HtmlOutputDev.cc HtmlUtils.h parseargs.h
- HtmlFonts.h HtmlLinks.h HtmlOutputDev.h parseargs.cc pdftohtml.cc
- 4. Add the .h to Header Files, and .cc to Source Files
- 5. Setup the 8+ libraries required for poppler (or use my thirdparty.7z available from the "Downloads" tab on BitBucket [recommend extracting with 7-Zip to C:\])
- FreeType2 LCMS LibJPEG LibOpenJPEG LibPNG LibTIFF poppler xpdf zlib
- Note: I used the libtiff.lib from:
- http://www.assembla.com/code/opengl_sbe/subversion/nodes/OGLEngine/Lib/libtiff.lib?rev=51#
- 6. Set the following in Properties of the aformenetioned MSVC project:
- {Project Properties}
- [C/C++ -> General]
- Additional Include Directories:
- C:\usr\include\zlib;C:\usr\src\libpng;C:\usr\src\poppler;C:\usr\src\poppler\poppler;C:\usr\src\poppler\MSVC-proj\poppler;C:\usr\src\poppler\MSVC-proj
- [Linker -> General]
- Additional Library Directories: C:\usr\lib
- [Linker -> Input]
- openjpeg.lib;zdll.lib;libtiff.lib;jpeg.lib;libpng15_static.lib;lcms2_static.lib;poppler.lib;FreeType.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
- 7. Set outdir to: $(SolutionDir)\win32\bin
- 8. Place this libtiff.dll in the win32\bin directory:
- http://downloads.sourceforge.net/project/gnuwin32/tiff/3.8.2-1/tiff-3.8.2-1-bin.zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement