I noticed that gcc 4.4 is required for compilation. I know that Mac likes to tweak gcc. Does this mean that llvm-g++-4.2 is too old? I could install the normal version of gcc4.6 which is the latest in macports.
Thank you. I too have very little experience with Mac's multiple architecture concept. (This would have been done days ago in Linux. argh!) Sadly, the plot thickens. After including the two -arch flags and running configure, the compiler gets tripped up immediately. It appears that multiple architectures are not supports with many compiler options(?):make all-recursiveMaking all in srcMaking all in graphMaking all in centralityCXX graph_betweenness.lollvm-g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flagsmake[4]: *** [graph_betweenness.lo] Error 1make[3]: *** [all-recursive] Error 1make[2]: *** [all-recursive] Error 1make[1]: *** [all-recursive] Error 1make: *** [all] Error 2JesseOn Sun, Nov 27, 2011 at 3:44 PM, Tiago Peixoto [via Main discussion list for the graph-tool project] <[hidden email]> wrote:
> ImportError: dlopen(/usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so, 9): no suitable image found. Did find:I have very little experience with building stuff with multiple
> /usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so: mach-o, but wrong architecture
>
>>>>>>>>
>
> These architecture issues on Mac are mystifying to me. How can
> something be built for the wrong architecture if I just compiled it
> for that architecture? sigh... Thanks any help you can provide.
architectures with apple's GCC, but according to the documentation you
should pass something like "-arch i386 -arch x86_64" to the compiler to
generate "universal" binaries. From the ./configure command you sent in
the first email, it did not seem you passed this. Hence you should try
something like:
./configure CXXFLAGS="-arch i386 -arch x86_64 -I/opt/local/include" <..your other options..>
I hope it helps.
Cheers,
Tiago
--
Tiago de Paula Peixoto <[hidden email]>
_______________________________________________
graph-tool mailing list
[hidden email]
http://lists.skewed.de/mailman/listinfo/graph-tool
signature.asc (566 bytes) Download Attachmenthttp://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/boost-errors-building-on-Mac-OSX-tp3540332p3540762.htmlIf you reply to this email, your message will be added to the discussion below: