SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Getting TkAgg backend to work on OS X

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

View entire thread

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 によって変換されたページ (->オリジナル) /