1

/usr/lib/libpoppler.so.50: std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' Makefile:156: recipe for target 'DocViewer' failed /usr/lib/libsystemd.so.0: undefined reference tolzma_stream_decoder@XZ_5.0 への未定義の参照' /usr/lib/libQt5Core.so: lzma_end@XZ_5.0 への未定義の参照__cxa_throw_bad_array_new_length@CXXABI_1.3.8' /usr/lib/libsystemd.so.0: undefined reference to' /usr/lib/libsystemd.so.0: 未定義「lzma_code@XZ_5.0」への参照 collect2: エラー: ld が 1 終了ステータスを返しました make: *** [DocViewer] エラー 1 20:53:35: プロセス "/usr/bin/make" がコード 2 で終了しました。

popplerinを使用してプログラムをコンパイルしているときに、上記のエラーが発生しQt5ます。

以下は私のプロジェクトファイルですが、何か変更する必要がありますか?

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
4

1 に答える 1