Unable to build revision 2036

Asked by Peter Passchier

Building on Ubuntu 16.04. Installed missing dependencies and dev files. Then stumbled unto cups errors. I installed all dev files of cups in the repo, but still a fail. This is the step I've got to:

g++ -m64 -Wl,-O1 -o qpdfview objects/settings.o objects/pluginhandler.o objects/shortcuthandler.o objects/rendertask.o objects/tileitem.o objects/pageitem.o objects/thumbnailitem.o objects/presentationview.o objects/searchmodel.o objects/searchitemdelegate.o objects/searchtask.o objects/miscellaneous.o objects/documentlayout.o objects/documentview.o objects/printdialog.o objects/settingsdialog.o objects/fontsdialog.o objects/helpdialog.o objects/recentlyusedmenu.o objects/recentlyclosedmenu.o objects/bookmarkmenu.o objects/bookmarkdialog.o objects/bookmarkmodel.o objects/database.o objects/mainwindow.o objects/main.o objects/synctex_parser.o objects/synctex_parser_utils.o objects/signalhandler.o objects/moc_settings.o objects/moc_model.o objects/moc_pluginhandler.o objects/moc_shortcuthandler.o objects/moc_rendertask.o objects/moc_pageitem.o objects/moc_thumbnailitem.o objects/moc_presentationview.o objects/moc_searchmodel.o objects/moc_searchitemdelegate.o objects/moc_searchtask.o objects/moc_miscellaneous.o objects/moc_documentview.o objects/moc_printdialog.o objects/moc_settingsdialog.o objects/moc_fontsdialog.o objects/moc_helpdialog.o objects/moc_recentlyusedmenu.o objects/moc_recentlyclosedmenu.o objects/moc_bookmarkmodel.o objects/moc_bookmarkmenu.o objects/moc_bookmarkdialog.o objects/moc_database.o objects/moc_mainwindow.o objects/moc_signalhandler.o objects/qrc_icons.o -L/usr/lib/x86_64-linux-gnu -lz -lmagic -lQtDBus -lQtSvg -lQtSql -lQtGui -lQtCore -lpthread
objects/documentview.o: In function `qpdfview::DocumentView::printUsingCUPS(QPrinter*, qpdfview::PrintOptions const&, int, int)':
documentview.cpp:(.text+0xba4d): undefined reference to `cupsGetDests'
documentview.cpp:(.text+0xba9a): undefined reference to `cupsGetDest'
documentview.cpp:(.text+0xbb14): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbc02): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbc92): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbcea): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbd2a): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbd6a): undefined reference to `cupsGetPPD'
documentview.cpp:(.text+0xbd80): undefined reference to `ppdOpenFile'
documentview.cpp:(.text+0xbd9b): undefined reference to `ppdFindOption'
documentview.cpp:(.text+0xbe11): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbe1e): undefined reference to `ppdClose'
documentview.cpp:(.text+0xbe6d): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbedc): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbefa): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbf18): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xbf52): undefined reference to `cupsAddOption'
objects/documentview.o:documentview.cpp:(.text+0xbf66): more undefined references to `cupsAddOption' follow
objects/documentview.o: In function `qpdfview::DocumentView::printUsingCUPS(QPrinter*, qpdfview::PrintOptions const&, int, int)':
documentview.cpp:(.text+0xc490): undefined reference to `cupsPrintFile'
documentview.cpp:(.text+0xc505): undefined reference to `cupsFreeDests'
documentview.cpp:(.text+0xc514): undefined reference to `cupsFreeOptions'
documentview.cpp:(.text+0xc574): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc588): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc59c): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc5b0): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc5c4): undefined reference to `cupsAddOption'
objects/documentview.o:documentview.cpp:(.text+0xc5d8): more undefined references to `cupsAddOption' follow
objects/documentview.o: In function `qpdfview::DocumentView::printUsingCUPS(QPrinter*, qpdfview::PrintOptions const&, int, int)':
documentview.cpp:(.text+0xc60d): undefined reference to `cupsFreeDests'
documentview.cpp:(.text+0xc61c): undefined reference to `cupsFreeOptions'
documentview.cpp:(.text+0xc65b): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc6ad): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc7d6): undefined reference to `cupsAddOption'
documentview.cpp:(.text+0xc83a): undefined reference to `cupsLastErrorString'
documentview.cpp:(.text+0xc935): undefined reference to `cupsFreeDests'
documentview.cpp:(.text+0xc93f): undefined reference to `cupsLastErrorString'
documentview.cpp:(.text+0xcfd7): undefined reference to `ppdClose'
collect2: error: ld returned 1 exit status
Makefile.application:212: recipe for target 'qpdfview' failed
make[1]: *** [qpdfview] Error 1
make[1]: Leaving directory '/home/pp/qpdfview'
Makefile:177: recipe for target 'sub-application-pro-make_default-ordered' failed
make: *** [sub-application-pro-make_default-ordeed] Error 2

Any suggestions what I could try?

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:

This question was reopened

Revision history for this message
Adam Reichold (adamreichold) said :
#1

Hello Peter,

the above error crops up from time to time and nobody I know currently understands why. It is usually resolved by starting from scratch, i.e. using a completely pristine source directory and starting a fresh build. The underlying idea behind this is that qmake does somehow mess up when updating the Makefiles which yields '-lcups' missing from the above linker command line which in turn implies those dangling references.

Best regards, Adam.

Revision history for this message
Peter Passchier (peter-passchier) said :
#2

How annoying to have a bug in your build system that nobody seems to be able to solve... But your advice worked, and the pop-up full paths in the menu work now! Thanks so much for making qpdfview awesome! (It did forget my opened tabs after the new install, but my other settings seem to have been preserved...)

Revision history for this message
Peter Passchier (peter-passchier) said :
#3

Thanks Adam Reichold, that solved my question.

Revision history for this message
Adam Reichold (adamreichold) said :
#4

Hello again,

loosing the open tabs should not happen when changing from an older to a newer version (the other way around is unsupported indeed). My guess you changed from a Qt5- to Qt4-based build or the other way around? The default paths for data files (like qpdfview's database) changes from ~/.local/share/qpdfview to ~/.local/share/data/qpdfview so that qpdfview does not find the old data to migrate, but you can copy the folders manually to preserve the tabs and per-file settings.

Best regards, Adam.

Revision history for this message
Peter Passchier (peter-passchier) said :
#5

Thanks for the info; I copied the old database from .local/share/qpdfview/qpdfview/database to .local/share/data/qpdfview/qpdfview/

I changed from the default Ubuntu 16.04 repo version to this one. Not sure whether I am now on Qt5 or Qt4. Is there a way to force a version during build time?

Revision history for this message
Best Adam Reichold (adamreichold) said :
#6

Hello again,

there are various distribution-specific ways of choosing the default Qt version, but when building a program the safest bet is usually to call the desired version qmake explicitly, e.g. using "qmake-qt5 qpdfview.pro" instead of "qmake qpdfview.pro".

Best regards, Adam.

Revision history for this message
Peter Passchier (peter-passchier) said :
#7

I had to install some more qt5 dependencies, so I was on qt4.
I have a qtmake (linking to qtchooser) and a qtmake-qt4 (linking to /usr/lib/x86_64-linux-gnu/qt4/bin/qmake). So I used /usr/lib/x86_64-linux-gnu/qt5/bin/qmake and it builds well. I guess that means that Ubuntu 16.04's qpdfview is also qt5 -- the database was still there.

Revision history for this message
N (neolovich) said :
#8

Hello!
I'm on Linux Mint 13 and at least not really firm with compiling from source code. I have the same error as explained above and another one.

[objects/pluginhandler.o] Error 1

[sub-application-pro-make_default-ordered] Error 2

I tried it again as you said Adam (made a new folder /home/neo/qpdf16) but nothing changed. I got again this message (Sorry for posting everything, i dont know which are the important lines):

/usr/bin/qmake /home/neo/qpdf16/pdf-plugin.pro CONFIG+=without_djvu -o Makefile.pdf-plugin
make -f Makefile.pdf-plugin
make[1]: Entering directory `/home/neo/qpdf16'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/pdfmodel.o sources/pdfmodel.cpp
sources/pdfmodel.cpp:526:17: warning: unused parameter ‘wholeWords’ [-Wunused-parameter]
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/annotationwidgets.o sources/annotationwidgets.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/formfieldwidgets.o sources/formfieldwidgets.cpp
sources/formfieldwidgets.cpp:192:6: warning: unused parameter ‘text’ [-Wunused-parameter]
/usr/bin/moc-qt4 -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf sources/model.h -o moc-pdf/moc_model.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/moc_model.o moc-pdf/moc_model.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf sources/pdfmodel.h -o moc-pdf/moc_pdfmodel.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/moc_pdfmodel.o moc-pdf/moc_pdfmodel.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf sources/annotationwidgets.h -o moc-pdf/moc_annotationwidgets.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/moc_annotationwidgets.o moc-pdf/moc_annotationwidgets.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf sources/formfieldwidgets.h -o moc-pdf/moc_formfieldwidgets.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DHAS_POPPLER_14 -DHAS_POPPLER_18 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/poppler/qt4 -I/usr/include/poppler -Imoc-pdf -o objects-pdf/moc_formfieldwidgets.o moc-pdf/moc_formfieldwidgets.cpp
rm -f libqpdfview_pdf.so
g++ -Wl,-O1 -shared -o libqpdfview_pdf.so objects-pdf/pdfmodel.o objects-pdf/annotationwidgets.o objects-pdf/formfieldwidgets.o objects-pdf/moc_model.o objects-pdf/moc_pdfmodel.o objects-pdf/moc_annotationwidgets.o objects-pdf/moc_formfieldwidgets.o -L/usr/lib/i386-linux-gnu -lpoppler-qt4 -lQtXml -lQtGui -lQtCore -lpthread
make[1]: Leaving directory `/home/neo/qpdf16'
/usr/bin/qmake /home/neo/qpdf16/ps-plugin.pro CONFIG+=without_djvu -o Makefile.ps-plugin
make -f Makefile.ps-plugin
make[1]: Entering directory `/home/neo/qpdf16'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-ps -o objects-ps/psmodel.o sources/psmodel.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-ps sources/model.h -o moc-ps/moc_model.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-ps -o objects-ps/moc_model.o moc-ps/moc_model.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-ps sources/psmodel.h -o moc-ps/moc_psmodel.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-ps -o objects-ps/moc_psmodel.o moc-ps/moc_psmodel.cpp
rm -f libqpdfview_ps.so
g++ -Wl,-O1 -shared -o libqpdfview_ps.so objects-ps/psmodel.o objects-ps/moc_model.o objects-ps/moc_psmodel.o -L/usr/lib/i386-linux-gnu -lspectre -lQtGui -lQtCore -lpthread
make[1]: Leaving directory `/home/neo/qpdf16'
/usr/bin/qmake /home/neo/qpdf16/image-plugin.pro CONFIG+=without_djvu -o Makefile.image-plugin
make -f Makefile.image-plugin
make[1]: Entering directory `/home/neo/qpdf16'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-image -o objects-image/imagemodel.o sources/imagemodel.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-image sources/model.h -o moc-image/moc_model.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-image -o objects-image/moc_model.o moc-image/moc_model.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-image sources/imagemodel.h -o moc-image/moc_imagemodel.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Imoc-image -o objects-image/moc_imagemodel.o moc-image/moc_imagemodel.cpp
rm -f libqpdfview_image.so
g++ -Wl,-O1 -shared -o libqpdfview_image.so objects-image/imagemodel.o objects-image/moc_model.o objects-image/moc_imagemodel.o -L/usr/lib/i386-linux-gnu -lQtGui -lQtCore -lpthread
make[1]: Leaving directory `/home/neo/qpdf16'
/usr/bin/qmake /home/neo/qpdf16/application.pro CONFIG+=without_djvu -o Makefile.application
sh: 1: cups-config: not found
sh: 1: cups-config: not found
make -f Makefile.application
make[1]: Entering directory `/home/neo/qpdf16'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DAPPLICATION_VERSION=\"0.4.16\" -DWITH_SVG -DWITH_SQL -DWITH_DBUS -DPLUGIN_INSTALL_PATH=\"/usr/lib/qpdfview\" -DWITH_PDF -DPOPPLER_VERSION=\"0.18.4\" -DPDF_PLUGIN_NAME=\"libqpdfview_pdf.so\" -DWITH_PS -DLIBSPECTRE_VERSION=\"0.2.6\" -DPS_PLUGIN_NAME=\"libqpdfview_ps.so\" -DWITH_IMAGE -DIMAGE_PLUGIN_NAME=\"libqpdfview_image.so\" -DWITH_CUPS -DCUPS_VERSION=\"\" -DWITH_SYNCTEX -DWITH_MAGIC -DWITH_SIGNALS -DDATA_INSTALL_PATH=\"/usr/share/qpdfview\" -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isynctex -Iicons -Imoc -o objects/settings.o sources/settings.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DAPPLICATION_VERSION=\"0.4.16\" -DWITH_SVG -DWITH_SQL -DWITH_DBUS -DPLUGIN_INSTALL_PATH=\"/usr/lib/qpdfview\" -DWITH_PDF -DPOPPLER_VERSION=\"0.18.4\" -DPDF_PLUGIN_NAME=\"libqpdfview_pdf.so\" -DWITH_PS -DLIBSPECTRE_VERSION=\"0.2.6\" -DPS_PLUGIN_NAME=\"libqpdfview_ps.so\" -DWITH_IMAGE -DIMAGE_PLUGIN_NAME=\"libqpdfview_image.so\" -DWITH_CUPS -DCUPS_VERSION=\"\" -DWITH_SYNCTEX -DWITH_MAGIC -DWITH_SIGNALS -DDATA_INSTALL_PATH=\"/usr/share/qpdfview\" -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isynctex -Iicons -Imoc -o objects/pluginhandler.o sources/pluginhandler.cpp
sources/pluginhandler.cpp:40:19: fatal error: magic.h: No such file or directory
compilation terminated.
make[1]: *** [objects/pluginhandler.o] Error 1
make[1]: Leaving directory `/home/neo/qpdf16'
make: *** [sub-application-pro-make_default-ordered] Error 2

Revision history for this message
N (neolovich) said :
#9

Because of the fatal error "magic.h: No such file or directory" i tried to solve this and in the end i installed libmagic-dev, libcups2-dev, libdjvulibre, libgnomecups1.0-dev and libmupdf. Everything is written in the README, i know. Shame on me. But this is my first programm i compiled by myself.
After that i made it, like it is described by Karl-Heinz Zimmer in this post: https://answers.launchpad.net/qpdfview/+question/219472

make distclean
lrelease qpdfview.pro
qmake qpdfview.pro
make && sudo make install

And now it works :-)

Revision history for this message
Adam Reichold (adamreichold) said :
#10

I do not think there is any shame involved in trying it out and asking for help. Congrats for figuring it out...