[wxPython-dev] wxPython without gnomeprint?
Robin Dunn
robin at alldunn.com
Thu Sep 13 10:19:57 PDT 2007
Gary Thomas wrote:
> I'm trying to build wxPython for an embedded system which
> uses GTK, but doesn't have any of the 'libgnomeprint' stuff
> available (it's a small embedded system!) Building the
> extension libraries fail when I get to:
>
> src/gtk/_gdi_wrap.cpp: At global scope:
> src/gtk/_gdi_wrap.cpp:3622: error: expected ',' or '...' before '&' token
> src/gtk/_gdi_wrap.cpp:3622: error: ISO C++ forbids declaration of 'wxPrintData' with no type
> src/gtk/_gdi_wrap.cpp: In function 'PyObject* _wrap_new_PostScriptDC(PyObject*, PyObject*, PyObject*)':
> src/gtk/_gdi_wrap.cpp:24837: error: 'wxPrintData' was not declared in this scope
>
> This is because my wxWidgets built with GTK, but no gnomeprint
> support (I think/hope).
>
> Is there some way to skip/disable these classes?
wxPrintData should be available in either case, perhaps the compiler is
just not seeing the declaration. Try adding #include <wx/cmndata.h>
near the begining of _gdi_wrap.cpp.
Or have you entirely turned off the printing support with your configure
statement? wxPrintData won't be declared at all if
wxUSE_PRINTING_ARCHITECTURE is set to zero. The wxPython code expects
that the printing classes are available (it doesn't care what back-end
is used though) so if you want to remove it then you'll need to tweak
the .i files and run SWIG to regenerate the wrapper files. (Be sure to
use the patched version of SWIG 1.3.29.)
>
> n.b. I tried to search the archives of this list, but that
> machine seems to still be down?
Yep, it appears that it is. I expect that it is being worked on. It's
nice to have the MX host running again though.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-dev
mailing list