[haiku-3rdparty-dev] Re: Attempt to build Scribus, remove references to Cups

  • From: Giovanni Mugnai <musical777@xxxxxxxxx>
  • To: "haiku-3rdparty-dev@xxxxxxxxxxxxx" <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Wed, 20 Feb 2013 15:41:00 +0000

2013/2/20, Giovanni Mugnai <musical777@xxxxxxxxx>:
> util_printer is certainly related to Cups?

After removing "util_printer" and "printdialog" reference in
CmakeList, i have compile again.. Compile now go until 99%! But i got
these last errors:

Linking CXX executable scribus
CMakeFiles/scribus.dir/scribus.cpp.o: In function
`ScribusMainWindow::slotReallyPrint()':
scribus.cpp:(.text+0x210cc): undefined reference to
`PrintDialog::PrintDialog(QWidget*, ScribusDoc*, PrintOptions const&,
bool, QStringList)'
scribus.cpp:(.text+0x21136): undefined reference to
`PrintDialog::setMinMax(int, int, int)'
scribus.cpp:(.text+0x21220): undefined reference to
`PrintDialog::doPrintCurrentPage()'
scribus.cpp:(.text+0x214a7): undefined reference to `PrintDialog::doPrintAll()'
scribus.cpp:(.text+0x214f4): undefined reference to
`PrintDialog::getPageString()'
CMakeFiles/scribus.dir/tabprinter.cpp.o: In function
`TabPrinter::restoreDefaults(ApplicationPrefs*)':
tabprinter.cpp:(.text+0x26db): undefined reference to
`PrinterUtil::getPrinterNames()'
tabprinter.cpp:(.text+0x2bb1): undefined reference to
`PrinterUtil::isPostscriptPrinter(QString)'
CMakeFiles/scribus.dir/useprintermarginsdialog.cpp.o: In function
`UsePrinterMarginsDialog::getPrinterMarginValues(QString const&)':
useprintermarginsdialog.cpp:(.text+0x234): undefined reference to
`PrinterUtil::getPrinterMarginValues(QString const&, QString const&,
double&, double&, double&, double&)'
CMakeFiles/scribus.dir/useprintermarginsdialog.cpp.o: In function
`UsePrinterMarginsDialog::UsePrinterMarginsDialog(QWidget*, QString
const&, double, QString const&)':
useprintermarginsdialog.cpp:(.text+0x6a7): undefined reference to
`PrinterUtil::getPrinterNames()'
collect2: ld returned 1 exit status
make[2]: *** [scribus/scribus] Error 1
make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Error 2
make: *** [all] Error 2
/boot/develop/scribus-1.4.2/build>

I got rid of `PrintDialog::setMinMax(int, int, int)' /
`PrintDialog::doPrintCurrentPage()' and `PrintDialog::getPageString()'
Adding #ifdef _HAIKU_ inside scribus.cpp

#ifdef _HAIKU_
        printer->setMinMax(1, doc->Pages->count(), 
doc->currentPage()->pageNr()+1);
        #endif

#ifdef _HAIKU_
                        if (printer->doPrintAll())
                                parsePagesString("*", 
&doc->Print_Options.pageNumbers,
doc->DocPages.count());
                        else
                                parsePagesString(printer->getPageString(),
&doc->Print_Options.pageNumbers, doc->DocPages.count());
                                #endif

But when i attempt to add #ifdef _HAIKU_ to others undefined
references (of scribus.cpp too) i got other errors; maybe i'm not
adding #ifdef in the right place!

This is the current scribus.cpp http://pastebin.com/mBZzMRjZ
tabprinter: http://pastebin.com/Ze6yPqVJ and
useprintermarginsdialog.cpp http://pastebin.com/rXZcyb8A

Someone can take a look and point me in the right direction? :-)

Many thanks.

-- 
Giovanni.

Other related posts: