[poppler] Fixing linker errors

Alec Taylor alec.taylor6 at gmail.com
Wed Oct 26 05:19:51 PDT 2011


6 unresolved externals now. (I removed LibOpenJPEG dir, and then
re-git-clone'd it, ran CMake against it, compiled from VS2010. Then
switched to using the .lib not .dll from pdf2html)

File+directory tree: http://pastebin.com/dKBE00U2

[Build log]
1>------ Build started: Project: pdf2html, Configuration: Release Win32 ------
1>Build started 10/26/2011 11:11:47 PM.
1>InitializeBuildStatus:
1>  Touching "Release\pdf2html.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>poppler.lib(PNGWriter.obj) : error LNK2001: unresolved external
symbol _png_init_io
1>poppler.lib(TiffWriter.obj) : error LNK2001: unresolved external
symbol __imp__TIFFDefaultStripSize
1>poppler.lib(TiffWriter.obj) : error LNK2001: unresolved external
symbol __imp__TIFFSetField
1>poppler.lib(TiffWriter.obj) : error LNK2001: unresolved external
symbol __imp__TIFFFdOpen
1>poppler.lib(TiffWriter.obj) : error LNK2001: unresolved external
symbol __imp__TIFFWriteScanline
1>poppler.lib(TiffWriter.obj) : error LNK2001: unresolved external
symbol __imp__TIFFClose
1>G:\Manual\Release\pdf2html.exe : fatal error LNK1120: 6 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.22
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Please help me get over this final hurdle to a work build process.

Thanks for all suggestions,

Alec Taylor


On Wed, Oct 26, 2011 at 10:51 PM, Alec Taylor <alec.taylor6 at gmail.com> wrote:
> I am now down to 15 unresolved externals.
>
> Build log: http://pastebin.com/Nc6rzYFC
>
> C:\usr file and dir tree: http://pastebin.com/67vuAgAF
>
> [C/C++ -> General]
> Additional Include Directories:
> C:\usr\include\zlib;C:\usr\src\libpng;C:\usr\src\poppler;C:\usr\src\poppler\poppler;C:\usr\src\poppler\MSVC-proj\poppler;C:\usr\src\poppler\MSVC-proj
>
> [Linker -> Input]
> Additional Dependencies:
> C:\usr\lib\zdll.lib;C:\usr\lib\libtiff.lib;C:\usr\lib\jpeg.lib;C:\usr\lib\libpng14_static.lib;C:\usr\lib\lcms2_static.lib;C:\usr\lib\poppler.lib;C:\usr\lib\FreeType.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
>
> Please tell me what I need to do in order to get the pdftohtml poppler
> utility compiled and linked correctly.
>
> Thanks for all suggestions,
>
> Alec Taylor
>
> On Wed, Oct 26, 2011 at 3:52 PM, Alec Taylor <alec.taylor6 at gmail.com> wrote:
>> Alright, I read some tutorial in Chinese that told me I need to
>> specify an absolute path to the SDK. I now have a jpeg.lib.
>>
>> Unfortunately though, it still isn't linking properly.
>>
>> Build log: http://pastebin.com/QeXrNB8E
>>
>> [Linker] Additional dependencies:
>> C:\usr\lib\libtiff.lib;C:\usr\lib\jpeg.lib;C:\usr\lib\libpng15_static.lib;C:\usr\lib\lcms2_static.lib;C:\usr\lib\poppler.lib;C:\usr\lib\FreeType.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
>>
>> My directory+file structure: http://pastebin.com/RcxXTFvC
>>
>> Please help me get this util from the poppler libraries linked.
>>
>> Thanks for all suggestions,
>>
>> Alec Taylor
>>
>> On Wed, Oct 26, 2011 at 5:23 AM, Alec Taylor <alec.taylor6 at gmail.com> wrote:
>>> I have amended my linker additional dependency list:
>>> C:\usr\lib\jpeg62.dll;C:\usr\lib\libpng15_static.lib;C:\usr\lib\lcms2_static.lib;C:\usr\lib\poppler.lib;C:\usr\lib\FreeType.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
>>>
>>> Unfortunately, if I put jpeg62.dll (had to use GnuWin's version, since
>>> mine didn't work: http://pastebin.com/9waziCbr) or openjpeg.dll (my
>>> version) I get an error:
>>>
>>> 1>C:\usr\lib\jpeg62.dll : fatal error LNK1107: invalid or corrupt
>>> file: cannot read at 0x290
>>> 1>C:\usr\lib\openjpeg.dll : fatal error LNK1107: invalid or corrupt
>>> file: cannot read at 0x2A8
>>>
>>> Any suggestions would be appreciated.
>>>
>>> Thanks,
>>>
>>> Alec Taylor
>>>
>>> On Wed, Oct 26, 2011 at 5:17 AM, Albert Astals Cid <aacid at kde.org> wrote:
>>>> A Dimecres, 26 d'octubre de 2011, Alec Taylor vàreu escriure:
>>>>> Good morning,
>>>>>
>>>>> I've created a new solution project just for pdftohtml. [GNU tree
>>>>> output of new solution folder: http://pastebin.com/BayUR1ms]
>>>>>
>>>>> I have manually set the various include directories
>>>>> [C:\usr\src\poppler;C:\usr\src\poppler\poppler;C:\usr\src\poppler\MSVC-proj\
>>>>> poppler;C:\usr\src\poppler\MSVC-proj] and linker additional dependencies
>>>>> [C:\usr\lib\lcms2_static.lib;C:\usr\lib\poppler.lib;C:\usr\lib\FreeType.lib;
>>>>> kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;she
>>>>> ll32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(Additiona
>>>>> lDependencies)].
>>>>>
>>>>> Unfortunately though, I'm getting various linker errors [see build
>>>>> log: http://pastebin.com/S3HrGJUy].
>>>>>
>>>>> The output from GNU tree of my C:\usr directory is:
>>>>> http://pastebin.com/4mqW8Yvi
>>>>>
>>>>> Please tell me how to resolve these linker errors.
>>>>
>>>> You need to link in the libraries you said you have (you probably "cheated"
>>>> and defined ENABLE_LIBJPEG to 1 somewhere or created a custom made config.h
>>>> file and defined it there, obviously you are going to need to link the libjpeg
>>>> library in and the same for the other libraries).
>>>>
>>>> Albert
>>>>
>>>>>
>>>>> Thanks for all suggestions,
>>>>>
>>>>> Alec Taylor
>>>>> _______________________________________________
>>>>> poppler mailing list
>>>>> poppler at lists.freedesktop.org
>>>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>>>> _______________________________________________
>>>> poppler mailing list
>>>> poppler at lists.freedesktop.org
>>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>>>>
>>>
>>
>


More information about the poppler mailing list