[SOLVED]Integrating Poppler in QT4
-
Dear All,
I'm trying to integrate the pdf viewer in my Qt application.I found poppler is widely used pdf library and tried to build the example program((http://doc.qt.digia.com/qq/qq27-poppler.zip)) from "http://doc.qt.digia.com/qq/qq27-poppler.html".But its showing the build error.
@g++ -o pdfviewer documentwidget.o main.o window.o moc_documentwidget.o moc_window.o moc_poppler-optcontent.o -L/usr/lib -L/usr/lib -lpoppler-qt4 -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lpoppler-qt4
collect2: ld returned 1 exit status@
I installed the poppler as mentioned in "http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html"Can anybody help me in this issue?
-
Hi,
Are you sure your poppler library is called poppler-qt4 (as in libpoppler-qt4.so) ?
If you are using a distribution: what is it and did you try to install the dev package for poppler using the distribution package manager ?
-
Hi,Thanks.
I have the following files
@/usr/lib/libpoppler-qt4.so.3
/usr/lib/libpoppler-qt4.so.3.2.0@I installed(./confure && make && make install) poppler-0.22.3 which i got from http://poppler.freedesktop.org/
"dev package for poppler using the distribution package manager "- No i not did this
what is it and how to do that? -
Short version: you are missing a symbolic link call libpoppler-qt4.so.
@ln -s /usr/lib/libpoppler-qt4.so.3 /usr/lib/libpoppler-qt4.so@
As for the package stuff: are you using a linux distribution ?
-
hi,
Thank you. your right i'm missing symbolic link.
after
@ ln -s /usr/lib/libpoppler-qt4.so.3 /usr/lib/libpoppler-qt4.so @
it works fine.
thank you very much.
-
Hi,
It is working fine in x86 compiler.
But how to get the libpoppler-qt4.so for ARM compiler.
or How to cross compile poppler for ARM.Configuring with "./configure --host=arm-linux-gcc" will work right?
-
Hi,
I am trying to configure with cross compile with no success
i used
@./configure --host=/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/bin/arm-linux-g++ --prefix=/usr/local/DigiEL-5.6/x-tools/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sys-root/usr/lib/ @
its generating the
libpoppler.so,libpoppler-cpp.so 's but not the libpoppler-qt4.so or its derivatives.
-
Did you cross-compile or already have all dependencies for poppler ? If you don't have Qt for ARM, it won't build it
-
yea i'm using the QT for ARM integrated in Eclipse C++ IDE.when i compile it with arm-linux-gcc its not creating the libpoppler-qt4.so or its derivatives but creates the libpoppler-cpp.so in ARM compile.
-
I tried with libraries from
@https://launchpad.net/~ubuntu-security/+archive/ppa/+build/4407291@
But its showing undefined references....
@./lib/libpoppler-qt4.so: undefined reference toPDFDoc::isLinearized()' ./lib/libpoppler-qt4.so: undefined reference to
FormWidgetText::noSpellCheck() const'
./lib/libpoppler-qt4.so: undefined reference toFormWidgetChoice::deselectAll()' ./lib/libpoppler-qt4.so: undefined reference to
Page::getAnnots(Catalog*)'
./lib/libpoppler-qt4.so: undefined reference toTextWordList::~TextWordList()' ./lib/libpoppler-qt4.so: undefined reference to
Annots::~Annots()'
./lib/libpoppler-qt4.so: undefined reference to `typeinfo for OutStream'
@ -
Are you sure that the build system finds your arm Qt ?
If you download pre-built package, you also have to download their dependencies
-
can you pls tell me where i can find the source package for arm linux(armel).i tried different sources compilation.
-
yea i installed binaries for arm and its dependencies.finally its throwing only one error..
@
/lib/libpoppler.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
@ -
It means a package has been linked to a pretty old version of glibc. Are you sure you downloaded the latest version of the armel libraries ?
-
which one is older version libpoppler.so? or libpoppler-qt4?
-
They should be same since they are built at the same time
-
hi one library need libssl.s0.1.0.0 and another needs libssl.s0.1.0.1
how to deal with this. if i create soft link for one of it another is not working.pls help -
Seems there's something wrong in your dependencies. Check that you download all packages from the same distribution
-
Actually i downloaded dependencies www.openmamba.org
how to ensure it as from same distribution? -
Don't know this one, generally if I need to download precompiled package I go for the debian armel architecture.