Error compiling qpdfview
make[1]: *** [Makefile.
make[1]: Leaving directory '/qpdfview'
make: *** [Makefile:48: sub-pdf-
make: *** [Makefile:64: sub-pdf-
Tried with Qt5 and Qt6. Used the following commands:
- lrelease-pro qpdfview.pro
- qmake qpdfview.pro
- make
- make install
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- qpdfview Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Adam Reichold
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Hello LinuxUsr,
the output you posted is sadly not the error itself but only the summary by make that there was an error. To diagnose this, we need earlier parts of the output, presumably the error generated by g++. That said and since it already failed building the PDF plug-in, do you have the development headers for Poppler installed? Depending on your distribution, this is libpoppler-
Regards,
Adam
Revision history for this message
![]() |
#2 |
Thanks. I checked; I have the development headers installed. Here is the full output of "make".
( test -e Makefile.pdf-plugin || /usr/bin/qmake-qt5 -o Makefile.pdf-plugin /opt/qpdfview/
make[1]: Entering directory '/opt/qpdfview'
g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DHAS_POPPLER_20 -DHAS_POPPLER_22 -DHAS_POPPLER_24 -DHAS_POPPLER_26 -DHAS_POPPLER_31 -DHAS_POPPLER_35 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I/usr/
In file included from sources/
sources/
46 | QPainterPath boundary;
| ^~~~~~~~
In file included from /usr/include/
/usr/include/
54 | class QPainterPath;
| ^~~~~~~~~~~~
In file included from /usr/include/
/usr/include/
596 | QLinkedList<
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
51 | template <class T> class QLinkedList;
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
597 | void setLinePoints(const QLinkedList<
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
51 | template <class T> class QLinkedList;
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
804 | QList<QLinkedLi
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
51 | template <class T> class QLinkedList;
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
805 | void setInkPaths(const QList<QLinkedLi
| ^~~~~~~~~~~
In file included from /usr/include/
/usr/include/
51 | template <class T> class QLinkedList;
| ^~~~~~~~~~~
sources/
sources/
979 | QScopedPointer< QDomDocument > toc(m_document-
| ~~~~~~~~~~~~~~~^~
In file included from sources/
/usr/include/
1746 | Q_DECL_DEPRECATED QDomDocument *toc() const;
| ^~~
sources/
sources/
1009 | m_document-
| ~~~~~~~
In file included from sources/
/usr/include/
1656 | Q_DECL_DEPRECATED void getPdfVersion(int *major, int *minor) const;
| ^~~~~~~~~~~~~
make[1]: *** [Makefile.
make[1]: Leaving directory '/opt/qpdfview'
make: *** [Makefile:48: sub-pdf-
Revision history for this message
![]() |
#3 |
Hello again,
thanks for the full log. The error
sources/
is rather strange as "model.h" does include that "QPainterPath", c.f. https:/
Do you use the current trunk to build it? (I ask because the offending declaration should be at line 47 in that version.) Is the error the same when using Qt version 6?
Regards,
Adam
Revision history for this message
![]() |
#4 |
Hi... Thanks. This is what I am using https:/
Revision history for this message
![]() |
#5 |
Yes, that version is a bit long in the tooth by now (I just have not gotten around to making a release yet), please use a snapshot of the current trunk available at https:/
Revision history for this message
![]() |
#6 |
Thanks. It gave the same error. Anyway, we can close the case. It should be a problem with my setup. Thanks much.
Revision history for this message
![]() |
#7 |
Thanks Adam Reichold, that solved my question.
Revision history for this message
![]() |
#8 |
Just wanted to add that this worked perfectly now. Sometimes "make clean" is not enough. So, I deleted everything, got a fresh version (the trunk you pointed to), and compiled. Worked perfectly. Looks beautiful. Thanks much.