[graph-tool-tickets] [graph-tool] Ticket #146: graph-tool 2.2.26 doesn't compile with "clang-3.3 -stdlib=libc++"

graph-tool webmaster at skewed.de
Wed Dec 4 20:12:15 UTC 2013


#146: graph-tool 2.2.26 doesn't compile with "clang-3.3 -stdlib=libc++"
closed defect
---------------------------------------------------------------------
Reporter: Mark.Moll at gmail.com
Owner: tiago peixoto
Priority: normal
Milestone: 2.2

---------------------------------------------------------------------
Comment (by anonymous):

Replying to [comment:26 amosson@…]:
> Sure - I just ran the examples in the tutorial
> 
> {{{
> >>> from graph_tool.all import *
> >>> v1 = g.add_vertex()
> >>> v2 = g.add_vertex()
> >>> e = g.add_edge(v1, v2)
> >>> graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18,
> ...            output_size=(200, 200), output="two-nodes.png")
> }}}
> 
> I compiled cairomm via homebrew and otools -L returns
> 
> {{{
> otool -L libcairomm-1.0.1.dylib 
> libcairomm-1.0.1.dylib:
> 	/opt/boxen/homebrew/lib/libcairomm-1.0.1.dylib (compatibility version 6.0.0, current version 6.0.0)
> 	/opt/boxen/homebrew/lib/libsigc-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
> 	/opt/boxen/homebrew/lib/libfreetype.6.dylib (compatibility version 18.0.0, current version 18.0.0)
> 	/opt/boxen/homebrew/lib/libpng15.15.dylib (compatibility version 33.0.0, current version 33.0.0)
> 	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
> 	/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
> 	/opt/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
> 	/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
> 	/opt/boxen/homebrew/lib/libcairo.2.dylib (compatibility version 11203.0.0, current version 11203.16.0)
> 	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
> 	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
> }}}
> 
> So cariomm links to libstdc++ while boost and graph-tools are compiled with libc++.  I will try to recompile cairomm libc++ and see if that works
> 
> If I can get this to work I will submit it to homebrew which should give Mac users an alternative route to install.
> 
> Thanks for the help

Looks like this will be challenging on OSX 10.8.  Dependancies, such as the system's gettext, are linked to libstdc++.  

I guess the easiest options for now are to either upgrade to 10.9 or to live with GraphViz.

--
Ticket URL: <URL:http://graph-tool.skewed.de/ticket/146>
graph-tool <URL:http://graph-tool.skewed.de>
An efficient python module for graph analysis and manipulation.


More information about the graph-tool-tickets mailing list