FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixing library path in setupext.py for Mac · Issue #213 · matplotlib/matplotlib · GitHub

Repository navigation

Fixing library path in setupext.py for Mac #213

Closed

Description

Original report at SourceForge, opened Sun Jul 19 10:49:53 2009

Currently, /usr/X11R6 is included in basedir['darwin']. Recently, this caused linker problems on Mac OS X; see
http://sourceforge.net/mailarchive/message.php?msg_name=b14b627d0907100359t31ed202ax8adbe2e591b9164c%40mail.gmail.com
As far as I can tell, /usr/X11R6 is not needed in basedir['darwin']. The GTKAgg, GTKCairo, TkAgg, Qt4Agg, and WxAgg all seem to build and run fine both on Mac OS X 10.4 and 10.5. If it is needed on some systems, it should be included by pkg-config where it's really needed. The attached patch removes /usr/X11R6 from basedir['darwin'].

SourceForge Comments

On Sat Aug 1 13:21:30 2009, jdh2358 wrote:

OK, I just tested the build I made on a remote box w/o the patch, and tested it on my local box, and got the link error. The build problem I alluded to earlier was because with the patch I did not have libfreetype in my path, and so the build failed since I had png and freetype in my X11 dir. But when building a release, we do not want to link to those files since they are not universal. Do you think it makes sense to leave the X11 dirs in the path when building locally, but remove them when building releases? Or should they be removed unconditionally?

On Fri Jul 31 11:43:10 2009, jdh2358 wrote:

Michiel,

This patch breaks my OSX build with the attached build output. Apparently this system still needs the /usr/X11R6/lib, eg for freetype. System info below:

jdh2358@bsd:mpl99> uname -a
Darwin bsd.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386

jdh2358@bsd:mpl99> python -c 'import sys; print sys.platform'
darwin
jdh2358@bsd:mpl99> ls /usr/X11R6
bin include lib libexec man share var
jdh2358@bsd:mpl99> ls /usr/X11R6/lib/libfree*
/usr/X11R6/lib/libfreetype.6.3.16.dylib /usr/X11R6/lib/libfreetype.dylib
/usr/X11R6/lib/libfreetype.6.dylib /usr/X11R6/lib/libfreetype.la
jdh2358@bsd:mpl99>

Complete log from build attempt attached as build.out

SourceForge History

  • On Fri Jul 31 11:43:10 2009, by jdh2358: assigned_to: 100
  • On Sun Jul 19 10:49:54 2009, by mdehoon: File Added: 335644: setupext.py.diff

Activity

  1. pelson commented on Jun 18, 2012

    Member

    Another setupext.py problem worth knowing about is #168.

  2. pelson commented on Jun 30, 2012

    Member

    Closing this issue. If similar issues crop up after #965, we can re-asses the situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL