[poppler] Fixing linker errors
Alec Taylor
alec.taylor6 at gmail.com
Wed Oct 26 04:51:11 PDT 2011
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