-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execution on OSX 10.12.2 #11
Comments
You could alter setup.py by adding |
@tammojan An issue with my boost compilation? |
When compiling boost, was libc++ or libstdc++ used? |
Is there an easy way to find out? :\ |
On my machine (10.12.3, where I installed boost-python with homebrew), it's using libc++:
|
Ditto: /usr/local/lib/libboost_python.dylib: |
fixes the boost error, but now there's a gfortran error: Traceback (most recent call last): |
I have it working on 10.12.3, but I didn't use homebrew (I used anaconda to install boost and got gfortran from https://gcc.gnu.org/wiki/GFortranBinaries). I also had to alter setup.py as follows:
|
@tammojan @darafferty You both beat me to it, but I also now have it working (ugly I know - sensitive to version of gfortran):
...
Thanks both |
I went through all of the above suggestions as closely as possible (modulo my using macports in /opt/local for my software) but still get the following missing symbol error at start-up. ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bdsf-1.8.9-py2.7-macosx-10.10-x86_64.egg/bdsf/_cbdsm.so, 2): Symbol not found: __ZNSt8ios_base4InitD1Ev where the ios_base issue (upon some googling) seems to be related to libstdc++ any thoughts? |
On OSX, the best way seems to be to use |
If necessary, you can build your own boost-python, casacore/casacore#596 (comment) |
@darafferty After a successful build and root install on a Mac,
python -c 'import bdsf'
throws the following:Traceback (most recent call last):
File "", line 1, in
File "bdsf/init.py", line 19, in
from collapse import Op_collapse
File "bdsf/collapse.py", line 10, in
import _cbdsm
ImportError: dlopen(bdsf/_cbdsm.so, 2): Symbol not found: __ZN5boost6python7objects15function_objectERKNS1_11py_functionERKSt4pairIPKNS0_6detail7keywordES9_E
Referenced from: /Users/myname/src/PyBDSF/build/lib.macosx-10.6-x86_64-2.7/bdsf/_cbdsm.so
Expected in: flat namespace
in /Users/jtlz2/src/PyBDSF/build/lib.macosx-10.6-x86_64-2.7/bdsf/_cbdsm.so
Is this just a name mangling issue? I can't see where to put a
-stdlib=libstdc++
(if it is that).Let me know if you need any more info. Thanks!
The text was updated successfully, but these errors were encountered: