I compiled poppler statically with ./configure --enable-static & make & make install.
I add these line to my pro file:
unix:!macx:!symbian: LIBS += -L$$PWD/../../../../../../usr/local/lib/ -lpoppler-qt4
INCLUDEPATH += $$PWD/../../../../../../usr/include/poppler/qt4
DEPENDPATH += $$PWD/../../../../../../usr/include/poppler/qt4
unix:!macx:!symbian: PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/lib/libpoppler-qt4.a
unix:!macx:!symbian: LIBS += -L$$PWD/../../../../../../usr/local/lib/ -lpoppler-qt4
INCLUDEPATH += $$PWD/../../../../../../usr/include/poppler/qt4
DEPENDPATH += $$PWD/../../../../../../usr/include/poppler/qt4
unix:!macx:!symbian: PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/lib/libpoppler-qt4.a
To copy to clipboard, switch view to plain text mode
Also I copied needed so files(libpoppler-qt4.so and libpoppler.so)
app works in my computer and in other computer. but app crashed in poppler class in other computer with segmentation fault error.
Please help how can I add poppler to my app statically?
Bookmarks