py-cvxopt +DSDP

Mark Brethen mark.brethen at gmail.com
Sun Jul 27 11:47:20 PDT 2014


py-cvxopt installed fine without any errors. However, when I tried running example code it reports:

Symbol not found: _ATL_cGetNB
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cvxopt/lapack.so

Why does numpy and cvxopt use Apple's Accelerate framework by default and DSDP use macport's ATLAS?

Ticket #37097 describes issues building DSDP and other ports that depend on it (like cvxopt) due to linker issues with building against macports' ATLAS. I uninstalled DSDP and ATLAS and then patched DSDP as suggested in the ticket, but when I tried to install DSDP again it failed because it could not find Apple's Accelerate framework:

:info:build /usr/bin/clang -O3 -arch x86_64 -o maxcut maxcut.o /opt/local/var/macports/build/_Users_marbre_ports_math_DSDP/DSDP/work/DSDP5.8/lib/libdsdp.a -latlas -lm
:info:build ld: library not found for -latlas
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

I guess if you do this, you also need to provide the path to Apple's Accelerate framework?


Mark






More information about the macports-users mailing list