← Back to team overview

qpdfview team mailing list archive

Re: How to compile qpdfview on debian

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Arnaud,
hello Benjamin,

it seems that "-lcups" is missing from the linker command. I really
don't know why, but one could compare this to the result of running
"cups-config --libs" for more information.

Another short-term solution for testing would be to build using "qmake
CONFIG+=without_cups qpdfview.pro" to disable CUPS support.

Best regards, Adam.

P.S.: There is now also a branch "choose-instance" available for the
instance name chooser. Thanks for testing...

Am 02.09.2013 10:00, schrieb Benjamin Eltzner:
> 
> Hi Arnaud,
> 
> to compile qpdfview in a debian-based system, you need the
> following packages: libcups2-dev, libqt4-dev, libpoppler-qt4-dev,
> pkg-config, libspectre-dev, libdjvulibre-dev, libmagic-dev. In your
> case what seems to be missing is libcups2-dev.
> 
> I hope this helps. If you still have questions, just ask. :-)
> 
> 
> Cheers,
> 
> Benjamin
> 
> 
> Am 02.09.2013 06:52, schrieb Arnaud Schmittbuhl:
> 
>> Hi all,
> 
>> I am trying to compile the last qpdfview on debian testing/sid.
>> It looks like I am missing some (cups ?) libraries.
> 
>> Can someone help me? Thanks in advance,
> 
>> [as:qpdfview]$ LANG=en make make -f Makefile.qpdfview-pdf-plugin
>>  make[1]: Entering directory `/home/as/tmp/qpdfview' make[1]: 
>> Nothing to be done for `first'. make[1]: Leaving directory 
>> `/home/as/tmp/qpdfview' make -f Makefile.qpdfview-ps-plugin 
>> make[1]: Entering directory `/home/as/tmp/qpdfview' make[1]: 
>> Nothing to be done for `first'. make[1]: Leaving directory 
>> `/home/as/tmp/qpdfview' make -f Makefile.qpdfview-djvu-plugin 
>> make[1]: Entering directory `/home/as/tmp/qpdfview' make[1]: 
>> Nothing to be done for `first'. make[1]: Leaving directory 
>> `/home/as/tmp/qpdfview' make -f Makefile.qpdfview-application 
>> make[1]: Entering directory `/home/as/tmp/qpdfview' g++ -m64 
>> -Wl,-O1 -o qpdfview objects/settings.o objects/pluginhandler.o 
>> objects/shortcuthandler.o objects/rendertask.o objects/pageitem.o
>>  objects/presentationview.o objects/searchtask.o 
>> objects/miscellaneous.o objects/documentview.o 
>> objects/printdialog.o objects/settingsdialog.o 
>> objects/recentlyusedmenu.o objects/bookmarkmenu.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_shortcuthandler.o objects/moc_rendertask.o 
>> objects/moc_pageitem.o objects/moc_presentationview.o 
>> objects/moc_searchtask.o objects/moc_miscellaneous.o 
>> objects/moc_documentview.o objects/moc_printdialog.o 
>> objects/moc_settingsdialog.o objects/moc_recentlyusedmenu.o 
>> objects/moc_bookmarkmenu.o objects/moc_mainwindow.o 
>> objects/moc_signalhandler.o objects/qrc_qpdfview.o 
>> -L/usr/lib/x86_64-linux-gnu -lz -lmagic -lQtDBus -lQtSvg -lQtSql
>>  -lQtGui -lQtCore -lpthread objects/documentview.o: In function 
>> `DocumentView::printUsingCUPS(QPrinter*, PrintOptions const&,
>> int, int)': documentview.cpp:(.text+0x69e6): undefined reference
>> to `cupsGetDests' documentview.cpp:(.text+0x6a31): undefined
>> reference to `cupsGetDest' documentview.cpp:(.text+0x6aa8):
>> undefined reference to `cupsAddOption'
>> documentview.cpp:(.text+0x6b0b): undefined reference to
>> `cupsAddOption' documentview.cpp:(.text+0x6b69): undefined
>> reference to `cupsAddOption' documentview.cpp:(.text+0x6b94):
>> undefined reference to `cupsAddOption'
>> documentview.cpp:(.text+0x6bb7): undefined reference to
>> `cupsAddOption' 
>> objects/documentview.o:documentview.cpp:(.text+0x6bdd): more 
>> undefined references to `cupsAddOption' follow 
>> objects/documentview.o: In function 
>> `DocumentView::printUsingCUPS(QPrinter*, PrintOptions const&,
>> int, int)': documentview.cpp:(.text+0x6ed3): undefined reference
>> to `cupsFreeDests' documentview.cpp:(.text+0x6ee2): undefined 
>> reference to `cupsFreeOptions' documentview.cpp:(.text+0x6fa8): 
>> undefined reference to `cupsPrintFile' 
>> documentview.cpp:(.text+0x702d): undefined reference to 
>> `cupsLastErrorString' documentview.cpp:(.text+0x7148): undefined
>>  reference to `cupsAddOption' documentview.cpp:(.text+0x7190): 
>> undefined reference to `cupsAddOption' 
>> documentview.cpp:(.text+0x71b9): undefined reference to 
>> `cupsAddOption' documentview.cpp:(.text+0x7208): undefined 
>> reference to `cupsAddOption' documentview.cpp:(.text+0x7228): 
>> undefined reference to `cupsAddOption' 
>> objects/documentview.o:documentview.cpp:(.text+0x72a0): more 
>> undefined references to `cupsAddOption' follow 
>> objects/documentview.o: In function 
>> `DocumentView::printUsingCUPS(QPrinter*, PrintOptions const&,
>> int, int)': documentview.cpp:(.text+0x7402): undefined reference
>> to `cupsLastErrorString' collect2: error: ld returned 1 exit
>> status make[1]: *** [qpdfview] Error 1 make[1]: Leaving directory
>>  `/home/as/tmp/qpdfview' make: *** 
>> [sub-qpdfview-application-pro-make_default-ordered] Error 2
> 
> 
> 
> 
>> [as:~]$ dpkg -l | grep cups ii  cups 1.6.3-1 amd64        Common
>> UNIX Printing System(tm) - server ii cups-browsed 1.0.34-3+b1
>> amd64 OpenPrinting CUPS Filters - cups-browsed ii  cups-bsd
>> 1.6.3-1 amd64        Common UNIX Printing System(tm) - BSD
>> commands ii cups-client 1.6.3-1                            amd64
>> Common UNIX Printing System(tm) - client programs (SysV) ii
>> cups-common 1.6.3-1                            all
>> Common UNIX Printing System(tm) - common files ii  cups-daemon
>> 1.6.3-1 amd64        Common UNIX Printing System(tm) - daemon ii 
>> cups-filters 1.0.34-3+b1                        amd64 
>> OpenPrinting CUPS Filters ii  cups-pk-helper 0.2.5-1 amd64
>> PolicyKit helper to configure cups with fine-grained privileges
>> ii cups-ppdc 1.6.3-1                            amd64 Common UNIX
>> Printing System(tm) - PPD manipulation utilities ii 
>> cups-server-common 1.6.3-1                            all Common
>> UNIX Printing System(tm) - server common files ii 
>> ghostscript-cups 9.05~dfsg-8                        amd64 
>> interpreter for the PostScript language and for PDF - CUPS
>> filters ii libcups2:amd64 1.6.3-1
>> amd64 Common UNIX Printing System(tm) - Core library ii
>> libcups2:i386 1.6.3-1                            i386
>> Common UNIX Printing System(tm) - Core library ii  libcups2-dev
>> 1.6.3-1 amd64        Common UNIX Printing System(tm) -
>> Development files CUPS library ii libcupscgi1:amd64 1.6.3-1 amd64
>> Common UNIX Printing System(tm) - CGI library ii 
>> libcupsfilters-dev 1.0.34-3+b1                        amd64 
>> OpenPrinting CUPS Filters - Development files for the library ii
>>  libcupsfilters1:amd64 1.0.34-3+b1                        amd64 
>> OpenPrinting CUPS Filters - Shared library ii
>> libcupsimage2:amd64 1.6.3-1                            amd64
>> Common UNIX Printing System(tm) - Raster image library ii
>> libcupsimage2-dev 1.6.3-1                            amd64
>> Common UNIX Printing System(tm) - Development files CUPS image
>> library ii libcupsmime1:amd64 1.6.3-1
>> amd64 Common UNIX Printing System(tm) - MIME library ii 
>> libcupsppdc1:amd64 1.6.3-1                            amd64 
>> Common UNIX Printing System(tm) - PPD manipulation library ii 
>> libfontembed1:amd64 1.0.34-3+b1                        amd64 
>> OpenPrinting CUPS Filters - Font Embed Shared library ii 
>> printer-driver-gutenprint 5.2.9-1
>> amd64 printer drivers for CUPS ii  printer-driver-hpcups
>> 3.13.4-1+b1 amd64        HP Linux Printing and Imaging - CUPS
>> Raster driver (hpcups) ii python-cups 1.9.62-2
>> amd64 Python bindings for CUPS ii  python-cupshelpers 1.4.1-3
>> all Python utility modules around the CUPS printing system
> 
> 
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJSJO0nAAoJEPSSjE3STU34gU4IAMlTiKu/zqFHDPhIYzDv2/Nq
CaEstBEoTkLzMzwyUnLOXT4W7h3ZYPck39YaMMFwvFrR/W7varYj326jW0CWQIkj
CVwV9gHFtcvvyT/Il1uMjCg3yrwT+QUFNeJB148C1smXY71bvGGcgiiVXUuIEq/C
+vINq8RkO4Y08JNpA9eurNAQ0G0Os6mfMwl8S0/UMsFSPPyuAE1urMru9v5CPGrt
w0PB5mEAQuFTVHoNFlPAKY2eXhCVDX115xFWlSrBG0Y1kMjnm0ir+xqigSewXT7W
j+N70BL0HlwvsQzczQ/1YkIBfUl7JG9o3Z3iIbn5igMQmNnftxqTH0ga37U7fX0=
=H8zR
-----END PGP SIGNATURE-----


Follow ups

References