From 2efab97540a28ddbca0c4b0a852cb6cef0bbcadf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 Dec 2015 21:45:29 +0530 Subject: [PATCH] Build poppler with VS 2015 --- setup/installer/windows/notes2.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/setup/installer/windows/notes2.rst b/setup/installer/windows/notes2.rst index e51112ac30..56efb04ff2 100644 --- a/setup/installer/windows/notes2.rst +++ b/setup/installer/windows/notes2.rst @@ -392,17 +392,17 @@ Build and install with:: poppler ------------- -mkdir build +http://poppler.freedesktop.org -Run the cmake GUI which will find the various dependencies automatically. -On 64 bit cmake might not let you choose Visual Studio 2008, in whcih case -leave the source field blank, click configure choose Visual Studio 2008 and -then enter the source field. +Run:: + sed -i 's/#define snprintf _snprintf/#include /' config.h.cmake + mkdir build && cd build + cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_CPP=0 .. + nmake (you will need to run this multiple times adding #include + to the start of every file where it errors out complaining that max is not + declared in the std namespace) + cp utils/*.exe* ~/sw/bin -In cmake: disable GTK, Qt, openjpeg, cpp, lcms, gtk_tests, qt_tests. Enable -jpeg, png and zlib:: - - cp build/utils/Release/*.exe ~/sw/bin podofo ----------