ciao giovanni, > 2013/2/21, Giovanni Mugnai <musical777 at gmail.com>: >> 2013/2/21, Gregory Pittman <gpittman at iglou.com>: >>> I would suggest first, to save a backup of the CMakeLists.txt, but then >>> just delete this section you show completely, and see if it builds Ok. >>> >>> Greg >> Configuring still check for CUPS > > If I remove references to CUPS_LIBRARIES and to CUPS_INCLUDE_DIR, the > configuring process ends fine, but after make, about at 93% i got > these errors, certainly related to printing, so to cups: > > Building CXX object scribus/CMakeFiles/scribus.dir/util_printer.cpp.o > /boot/develop/scribus-1.4.2/scribus/util_printer.cpp: In static member > function 'static QStringList PrinterUtil::getPrinterNames()': > /boot/develop/scribus-1.4.2/scribus/util_printer.cpp:61:44: error: no > matching function for call to 'QDataStream::QDataStream(QString*, > QIODevice::OpenModeFlag)' > /boot/develop/scribus-1.4.2/scribus/util_printer.cpp:61:44: note: > candidates are: > /boot/common/include/QtCore/qdatastream.h:189:5: note: > QDataStream::QDataStream(const QDataStream&) > /boot/common/include/QtCore/qdatastream.h:189:5: note: candidate > expects 1 argument, 2 provided > /boot/common/include/QtCore/qdatastream.h:119:5: note: > QDataStream::QDataStream(const QByteArray&) > /boot/common/include/QtCore/qdatastream.h:119:5: note: candidate > expects 1 argument, 2 provided > /boot/common/include/QtCore/qdatastream.h:118:5: note: > QDataStream::QDataStream(QByteArray*, QIODevice::OpenMode) > /boot/common/include/QtCore/qdatastream.h:118:5: note: no known > conversion for argument 1 from 'QString*' to 'QByteArray*' > /boot/common/include/QtCore/qdatastream.h:114:14: note: > QDataStream::QDataStream(QIODevice*) > /boot/common/include/QtCore/qdatastream.h:114:14: note: candidate > expects 1 argument, 2 provided > /boot/common/include/QtCore/qdatastream.h:113:5: note: > QDataStream::QDataStream() > /boot/common/include/QtCore/qdatastream.h:113:5: note: candidate > expects 0 arguments, 2 provided > make[2]: *** [scribus/CMakeFiles/scribus.dir/util_printer.cpp.o] Error 1 > make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Error 2 > make: *** [all] Error 2 > /boot/develop/scribus-1.4.2/build> object > scribus/CMakeFiles/scribus.dir/ui/moc_pdftoolbar.cxx.o > bash: object: command not found > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_undogui.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_undomanager.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_unicodesearch.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_upgradechecker.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_urllauncher.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_useprintermarginsdialog.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/moc_vruler.cxx.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> [ 41%] Building CXX object > scribus/CMakeFiles/scribus.dir/util_printer.cpp.o > bash: [: missing `]' > /boot/develop/scribus-1.4.2/build> > /boot/develop/scribus-1.4.2/scribus/util_printer.cpp: In static member > function 'static QStringList PrinterUtil::getPrinterNames()': > > /boot/develop/scribus-1.4.2/build> > > There is a way to get completely rid dependency of CUPS? > > I should define HAIKU somewhere in the code? >
please go to util_printer.cpp and check the conditions for using (or not) line 61. if you just delete all the printing related lines in the cmake files, i guess taht you're going for the default, which is (i guess) CUPS. if there is a way to turn off printing, use it, otherwise, yes, the best way is to add a haiku section and try to find out how to use the native haiku printing sub system. i can't say much more, since i don't know much about the scribus print code (except the fact that i would not be unhappy if all the printing part would be removed and only the PDF workflow would survive... not without a way to use an external tool to "silently" print the generated pdf...)
