I am trying to build GDAL with PDF support on a 64-bit Windows 7 machine. I found this thread and followed the tips there:
- I downloaded win-kde and installed the poppler, lcms and freetype packages for installation.
- I checked gdal trunk and edited nmake.opt to include kde poppler.lib in the assembly.
The compiler does not work with the following errors:
> poppler.lib(JPEG2000Stream.cc.obj) : error LNK2019: unresolved external symbol _ > _imp__opj_destroy_decompress@4 referenced in function "public: virtual void __th > iscall JPXStream::close(void)" ( ?close@JPXStream @@UAEXXZ)
These linker errors are preceded by warnings such as:
> poppler.lib(JpegWriter.cc.obj) : warning LNK4217: locally defined symbol _jpeg_f > inish_compress imported in function "public: virtual bool __thiscall JpegWriter: > :close(void)" ( ?close@JpegWriter @@UAE_NXZ)
I tried installing the kde openjpeg package and flagging gdal to create it, but this fails with compilation errors in openjpeg.
Does anyone know how I can fix these errors or suggest a better way to create GDAL with PDF support on Windows?
source share