Okay, I've gotten it to link and compile.

[C/C++ -> General -> Additional Include Directories]
C:\usr\src\poppler;C:\usr\src\poppler\fofi;C:\usr\src\poppler\goo;C:\usr\src\poppler\poppler;C:\usr\src\poppler\MSVC-proj;C:\usr\src\poppler\MSVC-proj\poppler;C:\usr\src\poppler\utils;C:\usr\src\poppler\MSVC-proj\utils;C:\kde\include\freetype;C:\kde\include\freetype2\freetype;C:\kde\win32\jpeg;C:\kde\include;C:\kde\3rdparty\zlib;C:\kde\include\openjpeg;C:\usr\include\cairo

[Linker -> General -> Additional Library Dependencies]
C:\kde\lib

[Linker -> Input -> Additional Dependencies]
gdi32.lib;advapi32.lib;winspool.lib;user32.lib;C:\usr\lib\poppler.lib;libpng14.lib;zlib.lib;tiff3.lib;openjpeg.lib;lcms-1.lib;jpeg.lib;iconv.lib;FreeType.lib;C:/usr/lib/cairo.lib

Surprisingly, unlike my last build from before I was using the KDE
tree, this one requires more than 1 dll (more than libtiff) to be in
its directory.

$ ls
freetype.dll     jpeg.dll    libpng14.dll lcms-1.dll   tiff3.dll

>From the poppler tree build:
========== Build: 16 succeeded, 1 failed, 0 up-to-date, 2 skipped ==========

>From my project build:
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

When I run the binary though, I get a msg box with this error:
"The procedure entry point png_init_io could not be located in the
dynamic link library <path to binary>"

poppler has been compiled and linked with the exact same library!

Any ideas on how I can fix this?

Thanks for all suggestions,

Alec Taylor

FYI: I'm using the latest poppler (from git repo)

On Sun, Oct 30, 2011 at 6:32 AM, Alec Taylor <[email protected]> wrote:
> Good morning,
>
> In an effort to easy linking amongst my developers I am now attempting
> to compiled and link pdftohtml using the package manager from the
> KDE4windows project.
>
> My CMakeCache.txt: http://pastebin.com/i01csDeZ
>
> The visual studio project compiled fine (for once).
>
> Now in my separate project missing all the complexity of the full
> poppler project, where one can work on patches in peace:
>
> [C/C++ -> General -> Additional Include Directories]:
> C:\usr\include\RapidXML;C:\kde\3rdparty\zlib;C:\kde\include;C:\kde\include\openjpeg;C:\kde\include\freetype;C:\kde\include\freetype2\freetype;C:\usr\include\cairo;C:\usr\src\poppler\poppler;C:\usr\src\poppler\goo;C:\usr\src\poppler;C:\usr\src\poppler\MSVC-proj\;C:\usr\src\poppler\MSVC-proj\poppler
>
> [Linker -> General -> Additional Library Dependencies]:
> C:\kde\lib
>
> [Linker -> Input -> Additional Dependencies]
> zlib.lib;tiff3.lib;openjpeg.lib;lcms-1.lib;jpeg.lib;iconv.lib;FreeType.lib;C:/usr/lib/cairo.lib
>
> My file and directory tree:
> C:\usr = http://pastebin.com/fgFDNq1t
> C:\kde = http://paste.ubuntu.com/722558/
>
> Build log:
> http://pastebin.com/a9DCtVcJ
>
> Any help would be appreciated.
>
> Thanks for all suggestions,
>
> Alec Taylor
>
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to