Poppler 库配置错误

发布于 2024-12-11 14:34:53 字数 3799 浏览 0 评论 0原文

我使用以下配置在带有 Qt4.7.3 的 Mac OS-X 10.6 上编译 Poppler 库:

./configure --enable-poppler-qt4 --enable-static --enable-poppler-cpp --enable -zlib

它配置成功,然后我make它,然后make install它。

然后我尝试在应用程序中使用静态库,如下所示:

INCLUDEPATH+=/user/local/include/poppler
LIBS+=/usr/local/lib/libpoppler-cpp.a
LIBS+=/usr/local/lib/libpoppler-qt4.a
LIBS+=/usr/local/lib/libpoppler.a
LIBS+=/usr/local/lib/libfontconfig.a

但是当我编译应用程序时,我收到以下错误消息:

Undefined symbols:
  "_FT_Get_Sfnt_Name_Count", referenced from:
      _FcFreeTypeQueryFace in libfontconfig.a(fcfreetype.o)
  "_FT_Outline_Get_CBox", referenced from:
      SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*)in libpoppler.a(SplashFTFont.o)
  "_FT_Library_Version", referenced from:
      SplashFTFontEngine::SplashFTFontEngine(bool, bool, bool, FT_LibraryRec_*)in libpoppler.a(SplashFTFontEngine.o)
  "_XML_SetUserData", referenced from:
      _FcConfigParseAndLoad in libfontconfig.a(fcxml.o)
  "_FT_Done_Face", referenced from:
      _FcFreeTypeQuery in libfontconfig.a(fcfreetype.o)
      SplashFTFontFile::~SplashFTFontFile()in libpoppler.a(SplashFTFontFile.o)
      SplashFTFontFile::~SplashFTFontFile()in libpoppler.a(SplashFTFontFile.o)
  "QDomDocument::createCDATASection(QString const&)", referenced from:
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::TextAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
  "_FT_Load_Glyph", referenced from:
      _FcFreeTypeCheckGlyph in libfontconfig.a(fcfreetype.o)
      SplashFTFont::getGlyphAdvance(int)    in libpoppler.a(SplashFTFont.o)
      SplashFTFont::getGlyphPath(int)    in libpoppler.a(SplashFTFont.o)
      SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*)in libpoppler.a(SplashFTFont.o)
  "QDomNode::appendChild(QDomNode const&)", referenced from:
      Poppler::DocumentData::addTocChildren(QDomDocument*, QDomNode*, GooList*)     in libpoppler-qt4.a(libpoppler_qt4_la-poppler-private.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::MovieAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::SoundAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::FileAttachmentAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)

配置命令或 INCLUDE/LIBPATH 变量是否错误?或者还有其他问题吗?

I use the following configuration to compile the Poppler library on my Mac OS-X 10.6 with Qt4.7.3:

./configure --enable-poppler-qt4 --enable-static --enable-poppler-cpp --enable-zlib

It configures successfully, then I make it and then make install it.

Then I try to use the static lib in my application as follows:

INCLUDEPATH+=/user/local/include/poppler
LIBS+=/usr/local/lib/libpoppler-cpp.a
LIBS+=/usr/local/lib/libpoppler-qt4.a
LIBS+=/usr/local/lib/libpoppler.a
LIBS+=/usr/local/lib/libfontconfig.a

But when I compile my application, I get the following error messages:

Undefined symbols:
  "_FT_Get_Sfnt_Name_Count", referenced from:
      _FcFreeTypeQueryFace in libfontconfig.a(fcfreetype.o)
  "_FT_Outline_Get_CBox", referenced from:
      SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*)in libpoppler.a(SplashFTFont.o)
  "_FT_Library_Version", referenced from:
      SplashFTFontEngine::SplashFTFontEngine(bool, bool, bool, FT_LibraryRec_*)in libpoppler.a(SplashFTFontEngine.o)
  "_XML_SetUserData", referenced from:
      _FcConfigParseAndLoad in libfontconfig.a(fcxml.o)
  "_FT_Done_Face", referenced from:
      _FcFreeTypeQuery in libfontconfig.a(fcfreetype.o)
      SplashFTFontFile::~SplashFTFontFile()in libpoppler.a(SplashFTFontFile.o)
      SplashFTFontFile::~SplashFTFontFile()in libpoppler.a(SplashFTFontFile.o)
  "QDomDocument::createCDATASection(QString const&)", referenced from:
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::TextAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
  "_FT_Load_Glyph", referenced from:
      _FcFreeTypeCheckGlyph in libfontconfig.a(fcfreetype.o)
      SplashFTFont::getGlyphAdvance(int)    in libpoppler.a(SplashFTFont.o)
      SplashFTFont::getGlyphPath(int)    in libpoppler.a(SplashFTFont.o)
      SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*)in libpoppler.a(SplashFTFont.o)
  "QDomNode::appendChild(QDomNode const&)", referenced from:
      Poppler::DocumentData::addTocChildren(QDomDocument*, QDomNode*, GooList*)     in libpoppler-qt4.a(libpoppler_qt4_la-poppler-private.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::Annotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::MovieAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::SoundAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)
      Poppler::FileAttachmentAnnotation::store(QDomNode&, QDomDocument&) constin libpoppler-qt4.a(libpoppler_qt4_la-poppler-annotation.o)

Am I wrong in either the configuration command or the INCLUDE/LIBPATH variables? Or is there something else going wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶底世界 2024-12-18 14:34:53

Poppler 有多个依赖项,可以使用以下命令列出这些依赖项:

 otool -L /opt/local/lib/libpoppler.19.dylib

一个两个人有类似问题,以及第三具有历史洞察力。

Poppler has several dependencies which can be listed using the following command:

 otool -L /opt/local/lib/libpoppler.19.dylib

There are one or two people with similar issues, as well as third with historical insight.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文