The /usr/X11R6/lib is included because it is listed in setupext.py under basedir['darwin']. Could you try and remove /usr/X11R6/lib from basedir['darwin'] in setupext.py to see if everything still compiles and links (both the Mac OS X backend and other backends)? At least, I don't see any libraries that needs to be linked from /usr/X11R6/lib. Compilation and linking without /usr/X11R6/lib works for me, but it'd be nice if you could double-check this on your system before I submit a patch to the matplotlib developers.
--Michiel.
···
--- On Fri, 7/10/09, Robin <robince@...287...> wrote:
From: Robin <robince@...287...>
Subject: Re: [Matplotlib-users] current svn fails to build on mac
To: "Michiel de Hoon" <mjldehoon@...9...>
Cc: matplotlib-users@lists.sourceforge.net
Date: Friday, July 10, 2009, 6:59 AM
On Fri, Jul 10, 2009 at 11:45 AM, > Michiel de Hoon<mjldehoon@...9...> > wrote:
>
> It's probably the -L/usr/X11R6/lib that is causing a
problem. Can you try linking without it?
>
Yes, that's it... running the command by hand without that
stops the error:
robin-mbp-3:matplotlib robince$ g++ -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined
dynamic_lookup
build/temp.macosx-10.3-i386-2.5/src/_macosx.o
build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o
build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o
build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-i386-2.5/src/agg_py_transforms.o
build/temp.macosx-10.3-i386-2.5/src/path_cleanup.o
-L/usr/local/lib
-L/usr/lib -L/usr/X11R6/lib -lstdc++ -lm -o
build/lib.macosx-10.3-i386-2.5/matplotlib/backends/_macosx.so
-framework Cocoa
ld: cycle in dylib re-exports with
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status
The /usr/X11R6/lib is included because it is listed in setupext.py under basedir['darwin']. Could you try and remove /usr/X11R6/lib from basedir['darwin'] in setupext.py to see if everything still compiles and links (both the Mac OS X backend and other backends)? At least, I don't see any libraries that needs to be linked from /usr/X11R6/lib. Compilation and linking without /usr/X11R6/lib works for me, but it'd be nice if you could double-check this on your system before I submit a patch to the matplotlib developers.
--Michiel.
Hi,
Yes taking that out it seems to build fine. I dont have the
dependencies for gtk and qt backends (they seemed too much of a pain
to sort out on os x), but wx, tk seem to build fine.
Thanks,
Robin
···
On Sat, Jul 11, 2009 at 4:43 AM, Michiel de Hoon<mjldehoon@...9...> wrote:
--- On Fri, 7/10/09, Robin <robince@...287...> wrote:
From: Robin <robince@...287...>
Subject: Re: [Matplotlib-users] current svn fails to build on mac
To: "Michiel de Hoon" <mjldehoon@...9...>
Cc: matplotlib-users@lists.sourceforge.net
Date: Friday, July 10, 2009, 6:59 AM
On Fri, Jul 10, 2009 at 11:45 AM, >> Michiel de Hoon<mjldehoon@...9...> >> wrote:
>
> It's probably the -L/usr/X11R6/lib that is causing a
problem. Can you try linking without it?
>
Yes, that's it... running the command by hand without that
stops the error:
robin-mbp-3:matplotlib robince$ g++ -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined
dynamic_lookup
build/temp.macosx-10.3-i386-2.5/src/_macosx.o
build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o
build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o
build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o
build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o
build/temp.macosx-10.3-i386-2.5/src/agg_py_transforms.o
build/temp.macosx-10.3-i386-2.5/src/path_cleanup.o
-L/usr/local/lib
-L/usr/lib -L/usr/X11R6/lib -lstdc++ -lm -o
build/lib.macosx-10.3-i386-2.5/matplotlib/backends/_macosx.so
-framework Cocoa
ld: cycle in dylib re-exports with
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status