Menu

#7 Compilation error

open
nobody
None
5
2012-09-10
2010-04-20
Anonymous
No

I'm trying to compile pdf2xml on a Mac, using xpdf installing from MacPorts, and I get this error: src/XmlOutputDev.h:344: error: 'GString TextWord::getFontName()' and 'char TextWord::getFontName()' cannot be overloaded

Discussion

  • Herve Dejean

    Herve Dejean - 2010-04-22

    can you comment the instruction #if TEXTOUT_WORD_LIST ...#endif and try again?

     
  • Richard Tobin

    Richard Tobin - 2010-04-26

    It didn't work to comment out all the TEXTOUT_WORD_LIST parts - there are unconditionalized references to isItalic() etc, but commenting out just the getFontName lines worked.

    It was also necessary to link to a library called "libpaper" which seems to be used by the version of xpdf I have (3.02).

     
  • Herve Dejean

    Herve Dejean - 2010-04-26

    Thanks for your comments. To my knowledge you're the first trying to compile it on Mac.

     

Anonymous
Anonymous

Add attachments
Cancel