[Scribus] Building Scribus on Qt/Mac--more questions

Kevin Walzer kevin
Fri Jan 30 01:07:45 CET 2004


This one is probably more for the Scribus team than the KDE-Darwin 
folks.

Trying to build Scribus 1.1.4 on OS X. I'm following the advice of the 
KDE-Darwin team and doing if-def's on the code to comment out X11 stuff 
like this example from their website:

   #if defined Q_WS_X11 && ! defined K_WS_QTONLY
      #include <X11/Xlib.h>
      extern Time qt_x_user_time;
   #endif

I'm getting this error when compiling:

../../../scribus/scpainter.h:47: warning: constructors cannot be 
declared
    virtual
In file included from charselect.cpp:3:
../../../scribus/scpainter.h:43: error: redefinition of `class 
ScPainter'
../../../scribus/scpainter.h:43: error: previous definition of `class 
ScPainter
    '
../../../scribus/scpainter.h:47: warning: constructors cannot be 
declared
    virtual
make[4]: *** [charselect.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[Kevin-Walzers-Computer:~/Desktop/scribus-1.1.4] kevinwal%


I'm not an expert with C/C++, but my research says that constructors, 
indeed, can't be declared virtual. So how does Scribus build on Linux 
if this is the case?

For what it's worth, I've made the following change to the code at the 
bottom of scpainter.h, where this sample comes from:


#ifdef Q_WS_X11 && ! defined K_WS_QTONLY
	GC gc;
#endif
};

#endif

Thanks for any help!

---

Kevin Walzer, Ph.D.
Editor
WordTech Communications -- A New Paradigm of Poetry
http://www.wordtechcommunications.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:kevin at wordtechweb.com




More information about the scribus mailing list