kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04219
Re: GDI+ sucks / how to compile under Windows
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@...>
-
Date:
Fri, 12 Feb 2010 17:11:42 -0500
-
In-reply-to:
<936b14d21002121317w294aa4ebidbcf28530e9d5bc0@...>
-
User-agent:
Thunderbird 2.0.0.23 (Windows/20090812)
Manveru wrote:
>
>
>
>
> 2010/2/12 Wayne Stambaugh <stambaughw@...
> <mailto:stambaughw@...>>
>
>
>
> Manveru wrote:
> >
> >
> > Hello,
> >
> > Compilation of KiCad from latest revision under Windows is _not
> > straightforward_ anymore. Because there is a strong need for gdi+
> > libraries, this link might be useful:
> >
> >
> http://code.google.com/p/wxmax/downloads/detail?name=gdiplus_includes.zip&can=2&q=
> <http://code.google.com/p/wxmax/downloads/detail?name=gdiplus_includes.zip&can=2&q=>
> >
> <http://code.google.com/p/wxmax/downloads/detail?name=gdiplus_includes.zip&can=2&q=
> <http://code.google.com/p/wxmax/downloads/detail?name=gdiplus_includes.zip&can=2&q=>>
> >
> > This requires to rebuild the wxWidgets 2.9.0 once again this time with
> > wxGraphicsContext, so there might be a problem with gdi+ stuff with
> > wxWidgets.
> >
> > Solution is here:
> >
> http://www.miscdebris.net/blog/2009/09/17/adding-gdi-headers-to-mingw-to-compile-wxwidgets-with-wxgraphicscontext-support/
> >
> >
> > This message is only an informative announcement to anyone
> interested in
> > mingw build of KiCad under Windows. Hope it helps. Maybe it should go
> > somewhere on the wiki left for further generations (until
> wxWidgets team
> > drop gdi+).
>
> Manveru,
>
> I added this link to COMPILING.txt on SVN r2323 as well as the
> instructions on building wxWidgets to enable wxGraphicsContext using
> MinGW. Enabling USE_WX_GRAPHICS_CONTEXT on windows doesn't work with
> wxWidgets 2.8.10 either. I builds fine but there is difference between
> the way wxGraphicsContext works on GTK and Windows. It appears that on
> windows, the coordinate transforms are not implemented properly and the
> clip box (wxDC clip box not Kicad's internal clip rectangle) is
> somewhere outside the client area. This results in a rather amusing
> behavior where everything that is inside the client window doesn't get
> repainted. I'm not sure if wxWidgets or GDI+ is to blame. No one ever
> said cross platform software development was easy :)
>
> Wayne
>
>
> Thank you Wayne, you may add a side note, that compilation of wxWidgets
> with 3.2 < gcc < 4.4.1 (as far as I investigated the problem) may
> require a CXXFLAGS=-fpermissive option in make invocation. In other
> case, there will be problems with GDI+ headers.
I didn't have any problems building with GCC 3.4.5 on MinGW. I haven't
had the time to give GCC 4.4.x a try on MinGW. I have my hands full
with getting USE_WX_ZOOM fixed.
Wayne
>
> --
> Manveru
> jabber: manveru@... <mailto:manveru@...>
> gg: 1624001
> http://www.manveru.pl
Follow ups
References