[sword-devel] pdf2xml

Greg Hellings greg.hellings at gmail.com
Wed Nov 18 15:57:58 MST 2009


That means it is looking for
libpdf.*
somewhere in its library directories.  That may have been from the old
XPDF method, so you might try looking for -lpdf in the Makefile and
changing it to -lpoppler and try again?

--Greg


On Wed, Nov 18, 2009 at 4:52 PM, Peter von Kaehne <refdoc at gmx.net> wrote:
> Thanks to some makefiles which I have received offline I can now compile.
>
> It fails though during linking, I think:
>
>> /usr/bin/ld: cannot find -lpdf
>> collect2: ld returned 1 exit status
>> make: *** [pdf2xml] Error 1
>
> Anyone can tell me what this means?
>
> Peter
>
>
> Greg Hellings wrote:
>> I'm running into significant challenges building it with their
>> Makefiles, mainly related to them using some version of GString that
>> results in either 1) not including the file the declares it or, 2)
>> including a file which does not declare the proper GString type.
>>
>> Beyond that, there are more errors all over the place in the code.  It
>> must be expecting a very old version of the dependent libraries OR the
>> developers did not leave CVS in a useful state when they abandoned it.
>>
>> My guess is, use the Windows binary and pray that it actually works.
>>
>> --Greg
>>
>> On Wed, Nov 18, 2009 at 2:21 PM, Peter von Kaehne <refdoc at gmx.net> wrote:
>>> A user of our software advised me of this piece of software which I
>>> think might occasionally come handy:
>>>
>>> http://www.mobipocket.com/dev/pdf2xml/
>>>
>>> It appears that it can deal with embedded fonts  and produces apparently
>>> excellently structured output. I have unfortunately not managed to
>>> compile it despite thinking it should be straightforward.
>>>
>>> There is no make file, just a short explanation for compiling, which I
>>> seemingly completely misunderstood.
>>>
>>> What I did at the toplevel of the source directory was
>>>
>>> gcc -I xpdf -I xpdf/fofi -I xpdf/goo -I xpdf/xpdf -I image/zlib -I
>>> image/png -I /usr/include pdf2xml.cpp
>>>
>>> But this was obviously wrong. It produced a huge pile of error messages
>>> suggesting that it did not find all kinds of libpng related stuff. I
>>> have obviously installed libpoppler-dev and libpng-dev.
>>>
>>> I am aware of a whole bunch of public domain texts which are only
>>> published in PDF format but would suddenly become accessible to us.
>>>
>>> Peter
>>>
>>> _______________________________________________
>>> sword-devel mailing list: sword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>> Instructions to unsubscribe/change your settings at above page
>>>
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>



More information about the sword-devel mailing list