mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Build poppler with VS 2015
This commit is contained in:
parent
6894028e37
commit
2efab97540
@ -392,17 +392,17 @@ Build and install with::
|
|||||||
poppler
|
poppler
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
mkdir build
|
http://poppler.freedesktop.org
|
||||||
|
|
||||||
Run the cmake GUI which will find the various dependencies automatically.
|
Run::
|
||||||
On 64 bit cmake might not let you choose Visual Studio 2008, in whcih case
|
sed -i 's/#define snprintf _snprintf/#include <algorithm>/' config.h.cmake
|
||||||
leave the source field blank, click configure choose Visual Studio 2008 and
|
mkdir build && cd build
|
||||||
then enter the source field.
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_CPP=0 ..
|
||||||
|
nmake (you will need to run this multiple times adding #include <algorithm>
|
||||||
|
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
|
podofo
|
||||||
----------
|
----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user