Building Poppler on Windows using MinGW
Posted on 12 March 2012 - 22:52
The E-Sheet project needed to be able to create and view PDF's. After looking around, I noticed a lot of people proposed to use Poppler, but to use it I needed to build the libraries. Since there isn't much information out there, I could only base my tries on this tutorial.
Downloads
- Poppler (I used poppler-0.18.4)
- Qt4 or the sources if you want to compile Qt as well. I tried them both and both were successful, so it's up to you.
- MinGW download the installer (e.g. mingw-get-inst-20111118.exe)
- CMake
- Freetype
- Cairo
While building I encountered the following error:
C:/.../CairoOutputDev.h:38:22: fatal error: cairo-ft.h: No such file or directory
To solve this I moved the files located in the/include/cairo
folder to the/include folder
.
Then another error occurred:
C:/.../include/cairo-ft.h:50:35: fatal error: fontconfig/fontconfig.h: No such file or directory
To solve this you will need to download Fontconfig. Once the download is complete copy the/include/fontconfig
folder from the fontconfig archive into the cairo/include
folder. The other parts of the fontconfig archive are not needed. - Openjpeg
- Zlib