_tkagg build error

I'm trying to build from cvs. It builds fine unless I try

    > I'm on Mandrake 10.0 which uses gcc 3.3.2 I apologize if
    > I've made some obvious omission. I'm no c wizard (that's
    > why I want matplotlib!).

There are apparently 2 versions of tk headers out there, some which
use char** and some which use const char** in this function. We've
already seen platform differences on win32, apple and linux which
we're trying to typedef appropriately. Todd, perhaps instead of a
platform based typedef we need some tk version macro or something
since he's also bumping into this on linux. May be time for a google
:slight_smile:

Gary, it's an easy fix for you. Search src/_tkagg.cpp for this
section of the code (around line 32)

#ifdef WIN32
#define argv_t const char
#else
#define argv_t char
#endif

and just delete it all and replace it with

#define argv_t const char

Let us know how it goes from there.

JDH

Todd, perhaps instead of a
platform based typedef we need some tk version macro or something
since he's also bumping into this on linux. May be time for a google
:slight_smile:

I think I hacked around this in a way not likely to break: rather than
fixing the signature of PyAggImagePhoto, I changed the call to
Tcl_CreateCommand to cast PyAggImagePhoto to the right thing. I am
hopeful, but not certain, that this will work and saves us the trouble
of identifying at what version of Tcl/Tk this change occured. I think
this hack is OK because the interface being changed looks so critical
that I'm surprised they even tweaked it. I already committed it after
testing it on Linux (not really enough, I know). I'll try Windows later
today.

Regards,
Todd

···

Gary, it's an easy fix for you. Search src/_tkagg.cpp for this
section of the code (around line 32)

#ifdef WIN32
#define argv_t const char
#else
#define argv_t char
#endif

and just delete it all and replace it with

#define argv_t const char

Let us know how it goes from there.

JDH

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Todd Miller <jmiller@...31...>