[poppler] Error in Poppler lib
suzuki toshiya
mpsuzuki at hiroshima-u.ac.jp
Tue Nov 1 23:55:39 PDT 2011
Could you post what command is executed in linking phase,
by "make V=1"?
Also I wish you can fix the warning for the incompatible
architectures.
Regards,
mpsuzuki
Vipin Beniwal wrote:
> Hi ,
>
> I am working on MAC OS-X 10.6 snow Lapperd and Qt4.7 which is statically linked . when i use this configuration and install poppler lib 0.18 on my machine and compile my appliction for displaying pdf file with following
>
> INCLUDEPATH +=/usr/vipin/include/poppler/
> LIBS+=/usr/local/lib/libpoppler-cpp.0.dylib
> LIBS+=/usr/local/lib/libpoppler.18.dylib
> LIBS+=/usr/local/lib/libpoppler-qt4.3.dylib
> LIBS+=/usr/local/lib/libpoppler-qt4.dylib
> LIBS+=/usr/local/lib/libfontconfig.1.dylib
>
> and i also try
> LIBS+=/usr/local/lib/libfontconfig.a
> #LIBS+=/usr/local/lib/libpoppler-qt4.a
> #LIBS+=/usr/local/lib/libpoppler.a
> #LIBS+=/usr/local/lib/libfreetype.a
>
> in both case i got following error message
>
> In case of dynamic library
>
>
>
> ld: warning: in /usr/local/lib/libpoppler.18.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/local/lib/libpoppler-qt4.3.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/local/lib/libpoppler-qt4.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/local/lib/libfontconfig.1.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qregion.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qpen.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qgraphicsitem.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qguivariant.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtCore.a(qvariant.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qzip.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtCore.a(qfilesystemwatcher.o) and (default) in test-poppler-qt4.o
> Undefined symbols:
> "Poppler::Document::page(int) const", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::TextBox::text() const", referenced from:
> PDFDisplay::mousePressEvent(QMouseEvent*) in test-poppler-qt4.o
> "Poppler::TextBox::~TextBox()", referenced from:
> void qDeleteAll<QList<Poppler::TextBox*>::const_iterator>(QList<Poppler::TextBox*>::const_iterator, QList<Poppler::TextBox*>::const_iterator)in test-poppler-qt4.o
> "Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&)", referenced from:
> _main in test-poppler-qt4.o
> make: Leaving directory `/private/var/root/Desktop/popp/static'
> "Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::setRenderHint(Poppler::Document::RenderHint, bool)", referenced from:
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> "Poppler::Page::~Page()", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::~Document()", referenced from:
> PDFDisplay::~PDFDisplay()in test-poppler-qt4.o
> PDFDisplay::~PDFDisplay()in test-poppler-qt4.o
> "Poppler::TextBox::boundingBox() const", referenced from:
> PDFDisplay::mousePressEvent(QMouseEvent*) in test-poppler-qt4.o
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::setRenderBackend(Poppler::Document::RenderBackend)", referenced from:
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> "Poppler::Page::textList(Poppler::Page::Rotation) const", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::numPages() const", referenced from:
> PDFDisplay::keyPressEvent(QKeyEvent*) in test-poppler-qt4.o
> "Poppler::Document::isLocked() const", referenced from:
> _main in test-poppler-qt4.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [popp.app/Contents/MacOS/popp] Error 1
> The process "/usr/bin/make" exited with code %2.
> Error while building project popp (target: Desktop)
> When executing build step 'Make'
>
>
>
>
> when i use static library
>
>
>
>
> then following error message is coming
>
>
> d: warning: in /usr/vipin/lib/libfontconfig.a, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/vipin/lib/libpoppler-qt4.a, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/vipin/lib/libpoppler.a, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: in /usr/vipin/lib/libfreetype.a, file was built for unsupported file format which is not the architecture being linked (i386)
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qregion.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qpen.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qgraphicsitem.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qguivariant.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtCore.a(qvariant.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtGui.a(qzip.o) and (default) in test-poppler-qt4.o
> ld: warning: QDebug::~QDebug()has different visibility (hidden) in /Developer/Qt/lib/libQtCore.a(qfilesystemwatcher.o) and (default) in test-poppler-qt4.o
> Undefined symbols:
> "Poppler::Document::page(int) const", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::TextBox::text() const", referenced from:
> PDFDisplay::mousePressEvent(QMouseEvent*) in test-poppler-qt4.o
> "Poppler::TextBox::~TextBox()", referenced from:
> void qDeleteAll<QList<Poppler::TextBox*>::const_iterator>(QList<Poppler::TextBox*>::const_iterator, QList<Poppler::TextBox*>::const_iterator)in test-poppler-qt4.o
> "Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&)", referenced from:
> _main in test-poppler-qt4.o
> "Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::setRenderHint(Poppler::Document::RenderHint, bool)", referenced from:
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> "Poppler::Page::~Page()", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::~Document()", referenced from:
> PDFDisplay::~PDFDisplay()in test-poppler-qt4.o
> PDFDisplay::~PDFDisplay()in test-poppler-qt4.o
> "Poppler::TextBox::boundingBox() const", referenced from:
> PDFDisplay::mousePressEvent(QMouseEvent*) in test-poppler-qt4.o
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::setRenderBackend(Poppler::Document::RenderBackend)", referenced from:
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> PDFDisplay::PDFDisplay(Poppler::Document*, bool)in test-poppler-qt4.o
> "Poppler::Page::textList(Poppler::Page::Rotation) const", referenced from:
> PDFDisplay::display() in test-poppler-qt4.o
> "Poppler::Document::numPages() const", referenced from:
> PDFDisplay::keyPressEvent(QKeyEvent*) in test-poppler-qt4.o
> "Poppler::Document::isLocked() const", referenced from:
> _main in test-poppler-qt4.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: Leaving directory `/private/var/root/Desktop/popp/static'
> make: *** [popp.app/Contents/MacOS/popp] Error 1
> The process "/usr/bin/make" exited with code %2.
> Error while building project popp (target: Desktop)
> When executing build step 'Make'
>
>
> please suggest me it is possible to compile popplur library on mac os -x 10.6 with static qt4.7.3
>
> please help me
>
>
> thanks
>
>
>
> vipin
>
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
More information about the poppler
mailing list