Advertisement
Guest User

Untitled

a guest
Oct 26th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. 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.
  2.  
  3. ###############################################
  4. - How I have created the project for MSVC2010 -
  5. ###############################################
  6. 1. Create new empty C++ project in MSVC
  7. 2. Add a \src\ subdirectory
  8. 3. Place these files from poppler\utils here:
  9. HtmlFonts.cc HtmlLinks.cc HtmlOutputDev.cc HtmlUtils.h parseargs.h
  10. HtmlFonts.h HtmlLinks.h HtmlOutputDev.h parseargs.cc pdftohtml.cc
  11. 4. Add the .h to Header Files, and .cc to Source Files
  12. 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:\])
  13. FreeType2 LCMS LibJPEG LibOpenJPEG LibPNG LibTIFF poppler xpdf zlib
  14. Note: I used the libtiff.lib from:
  15. http://www.assembla.com/code/opengl_sbe/subversion/nodes/OGLEngine/Lib/libtiff.lib?rev=51#
  16. 6. Set the following in Properties of the aformenetioned MSVC project:
  17. {Project Properties}
  18. [C/C++ -> General]
  19. Additional Include Directories:
  20. 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
  21. [Linker -> General]
  22. Additional Library Directories: C:\usr\lib
  23. [Linker -> Input]
  24. 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)
  25. 7. Set outdir to: $(SolutionDir)\win32\bin
  26. 8. Place this libtiff.dll in the win32\bin directory:
  27. http://downloads.sourceforge.net/project/gnuwin32/tiff/3.8.2-1/tiff-3.8.2-1-bin.zip
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement