← Back to team overview

kicad-developers team mailing list archive

Re: Scripting build on Windows

 

On 27 October 2012 08:16, Lorenzo Marcantonio
<l.marcantonio@xxxxxxxxxxxx> wrote:
> On Fri, Oct 26, 2012 at 10:03:17PM +0100, Brian Sidebotham wrote:
>> >     Not sure if it's possible to remove the Cairo dependency in wxPython may
>> > be it's worth trying.
>
> No you can't (under unix at least). wxPython uses wxWidget which is
> based on gtk.
>
> gtk needs cairo for drawing the widgets.
>
> So cairo has to stay XD
>
> Also I'd suggest svg for web stuff since it's imaging model is almost
> the same and it's client rendered...
>

Under Windows, removing Cairo should be fine. Straight from the wx sources:

// Enable wxGraphicsContext implementation using Cairo library.
//
// This is not needed under Windows and detected automatically by configure
// under other systems, however you may set this to 1 manually if you installed
// Cairo under Windows yourself and prefer to use it instead the native GDI+
// implementation.
//
// Default is 0
//
// Recommended setting: 0
#define wxUSE_CAIRO 0

For some reason through, the wxPython sources have set this to 1.
Removing Cairo as a dependency under Windows should be run.

Best Regards, Brian.


Follow ups

References