Closed Meligordman closed 7 years ago
Try to set the python library with cmake? For example, I have anaconda python installed in my user directory (OS X 10.11.5) and I have created a virtual environment py2k. I would do the following to compile the python wrapper:
cmake .. -DBUILD_PYTHON_WRAPPER=on -DPYTHON_INCLUDE_DIR=/Users/pcchen/anaconda/envs/py2k/include/python2.7 -DPYTHON_LIBRARY=/Users/pcchen/anaconda/envs/py2k/lib/libpython2.7.dylib
Hi,
I installed the pyUni10 on a MacBook pro with OS X 10.11.5, but couldn't succeed in running the tests at first. When running any of the tests, for instance egB1.py, I got the following error.
Looking around, it seems that the "@loader_path" is some kind of Apple variable that works with their Frameworks, but may cause trouble for standalone libraries. A user-level solution that managed to work for me was go into the
/Library//Library/Python/2.7/site-packages/pyUni10/
folder and executing the commandsudo install_name_tool -change "@loader_path/../../../libpython2.7.dylib" "/usr/lib/libpython2.7.dylib" _pyUni10.so
Which basically explicitly locates python library in the system.