SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Kenneth M. <kmm...@wi...> - 2004年04月17日 08:44:25
I believe this is the right list, since the question deals with
compiling, rather than using, matplotlib. Hope that's OK.
I just dl'ed, and after setting the TkAgg flag to 1 in setup.py,
did a python setup.py install. (Note that I had done
a previous install without the TkAgg flag set.) On my system,
this is producing a bunch of errors related to the Tk headers:
...
running build_ext
building 'matplotlib.backends._tkagg' extension
creating build/temp.darwin-7.3.0-Power_Macintosh-2.3
creating build/temp.darwin-7.3.0-Power_Macintosh-2.3/src
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes -I/usr/local/include -I/usr/local/include/freetype2 
-Isrc -Iagg2/include 
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/ 
python2.3 -c src/_tkagg.cpp -o 
build/temp.darwin-7.3.0-Power_Macintosh-2.3/src/_tkagg.o
In file included from src/_tkagg.cpp:18:
/Library/Frameworks/Tk.framework/Headers/tk.h:96:29: X11/Xlib.h: No 
such file or directory
In file included from src/_tkagg.cpp:18:
/Library/Frameworks/Tk.framework/Headers/tk.h:572: error: 
`Tk_ClassCreateProc'
 was not declared in this scope
/Library/Frameworks/Tk.framework/Headers/tk.h:573: error: type specifier
 omitted for parameter `Window'
/Library/Frameworks/Tk.framework/Headers/tk.h:573: error: parse error 
before `,
 ' token
/Library/Frameworks/Tk.framework/Headers/tk.h:573: error: typedef 
`Window' is
 initialized (use __typeof__ instead)
/Library/Frameworks/Tk.framework/Headers/tk.h:576: error: type specifier
 omitted for parameter `XEvent'
...
and so on, for a very long time.
I have done some messing around with Tk--I'm currently running 
AquaTcl/Tk, not the
X11 version--but don't have a good handle on how to deal with the 
above. Any
ideas? I'd really like to start using matplotlib!
Thanks,
Ken McDonald
From: John H. <jdh...@ac...> - 2004年04月17日 17:50:39
>>>>> "Kenneth" == Kenneth McDonald <kmm...@wi...> writes:
 Kenneth> I believe this is the right list, since the question
 Kenneth> deals with compiling, rather than using, matplotlib.
 Kenneth> Hope that's OK.
Fine by me...
 Kenneth> I just dl'ed, and after setting the TkAgg flag to 1 in
 Kenneth> setup.py, did a python setup.py install. (Note that I had
 Kenneth> done a previous install without the TkAgg flag set.) On
 Kenneth> my system, this is producing a bunch of errors related to
 Kenneth> the Tk headers:
Generally only the first error message from the compiler is
informative. Subsequent ones often indicate a downstream component
that failed after the first failed. In your case, the 1st error is
 In file included from src/_tkagg.cpp:18:
 /Library/Frameworks/Tk.framework/Headers/tk.h:96:29: X11/Xlib.h: No
 such file or directory
So it looks to me that either you haven't installed X11 (which is the
default config on OS X) or it's not in your include path. If you
haven't installed X11 for OS X, see
http://www.apple.com/macosx/features/x11.
After you get past this hurdle, you might encounter another road block
or two, especially if you are a fink user. In that case, you may want
to edit setupext.py and replace the dictionary entry
 'darwin' : '/usr/local',
with
 'darwin' : '/sw',
and check out this post
http://sourceforge.net/mailarchive/message.php?msg_id=7777103
Good luck!
JDH
From: Andrew S. <str...@as...> - 2004年04月19日 16:02:06
Attachments: PGP.sig
Just as a bit more info to John's post, I believe that Tk requires the 
X11 headers, even if X11 is not to be used (as in the Aqua case). So 
don't worry that it asks for it. It's just a weird build dependency 
that shouldn't be there...
Also, John, WRT the link your gave, SourceForge says: "Message Not 
Found. This message does not (any longer) exist."
Cheers!
Andrew
On Apr 17, 2004, at 10:28 AM, John Hunter wrote:
>>>>>> "Kenneth" == Kenneth McDonald <kmm...@wi...> writes:
>
> Kenneth> I believe this is the right list, since the question
> Kenneth> deals with compiling, rather than using, matplotlib.
> Kenneth> Hope that's OK.
>
> Fine by me...
>
> Kenneth> I just dl'ed, and after setting the TkAgg flag to 1 in
> Kenneth> setup.py, did a python setup.py install. (Note that I had
> Kenneth> done a previous install without the TkAgg flag set.) On
> Kenneth> my system, this is producing a bunch of errors related to
> Kenneth> the Tk headers:
>
> Generally only the first error message from the compiler is
> informative. Subsequent ones often indicate a downstream component
> that failed after the first failed. In your case, the 1st error is
>
> In file included from src/_tkagg.cpp:18:
> /Library/Frameworks/Tk.framework/Headers/tk.h:96:29: X11/Xlib.h: No
> such file or directory
>
> So it looks to me that either you haven't installed X11 (which is the
> default config on OS X) or it's not in your include path. If you
> haven't installed X11 for OS X, see
> http://www.apple.com/macosx/features/x11.
>
> After you get past this hurdle, you might encounter another road block
> or two, especially if you are a fink user. In that case, you may want
> to edit setupext.py and replace the dictionary entry
>
> 'darwin' : '/usr/local',
>
> with
>
> 'darwin' : '/sw',
>
> and check out this post
>
> http://sourceforge.net/mailarchive/message.php?msg_id=7777103
>
> Good luck!
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: John H. <jdh...@ac...> - 2004年04月19日 16:09:18
>>>>> "John" == John Hunter <jdh...@ac...> writes:
 John> http://sourceforge.net/mailarchive/message.php?msg_id=7777103
This is just the usual sourceforge flakiness. This was a link to
Daishi's post "Some notes on building from CVS" which was archived a
few days ago, but now the sf archiver only has messages from April 1st
and before. 
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /