c++ - Errors while linking in Qt5 with poppler -
/usr/lib/libpoppler.so.50: undefined reference
std::__throw_out_of_range_fmt(char const*, ...)@glibcxx_3.4.20' makefile:156: recipe target 'docviewer' failed /usr/lib/libsystemd.so.0: undefined reference to
lzma_stream_decoder@xz_5.0' /usr/lib/libqt5core.so: undefined reference__cxa_throw_bad_array_new_length@cxxabi_1.3.8' /usr/lib/libsystemd.so.0: undefined reference to
lzma_end@xz_5.0' /usr/lib/libsystemd.so.0: undefined reference `lzma_code@xz_5.0' collect2: error: ld returned 1 exit status make: *** [docviewer] error 1 20:53:35: process "/usr/bin/make" exited code 2.
i errors mentioned above while compiling program using poppler
in qt5
.
below project file, should in change something?
qt += core gui greaterthan(qt_major_version, 4): qt += widgets target = docviewer template = app includepath += /usr/include/poppler/qt5 libs += -l/usr/lib -lpoppler-qt5 sources += main.cpp\ mainwindow.cpp headers += mainwindow.h forms += mainwindow.ui
for "__cxa_throw_bad_array_new_length@cxxabi_1.3.8" error in libicu, looks problem incompatible icu build (softfp vs hardfp).
i had same error, solved downloading rebuilt icu (to avoid rebuilding myself).
- download "pot" binaries http://thebugfreeblog.blogspot.fr/2016/12/binaries-for-pot-550-beta1-on-qt-580.html.
- lrzuntar file
- tar xf qtdeps.tar
- on device, move away libicu* (in case raspbian in usr/lib/arm-linux-gnueabihf), , transfer libicu* qtdeps on there
- on device, move away "unicode" include dir (with raspbian in /usr/include/arm-linux-gnueabihf/unicode), , copy unicode include dir qtdeps on there.
- re-sync device sysroot using rsync
- reconfigure , rebuilt qtbase (after removing .o files under qtbase/src/corelib contain "icu" in name - or rebuild qt scratch)
Comments
Post a Comment