RenderMan
RenderMan copied to clipboard
Unable to compile on mac
I get: ld: library not found for -lboost_python
Have you installed boost via home-brew? (brew install boost-python
)
Yes
Benjamin Derei Tel: 06 41 66 93 41
Le 10 août 2018 à 22:35:07, Harri Taylor ([email protected]) a écrit:
Have you installed boost via home-brew? (brew install boost-python)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fedden/RenderMan/issues/10#issuecomment-412198597, or mute the thread https://github.com/notifications/unsubscribe-auth/AMXQvK5WiTM3OoqleT219nhUAO5GTT06ks5uPe56gaJpZM4VEINk .
Are you compiling for python 2 or python 3?
And when does ld: library not found for -lboost_python
appear? When you try and compile, or when you run the library?
I have tried with python 2 and python 3 and it happen when compiling.
Le 12 août 2018 à 13:13:43, Harri Taylor ([email protected]) a écrit:
Are you compiling for python 2 or python 3?
And when does ld: library not found for -lboost_python appear? When you try and compile, or when you run the library?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fedden/RenderMan/issues/10#issuecomment-412335637, or mute the thread https://github.com/notifications/unsubscribe-auth/AMXQvF2iOTjozJ7hpDYZcSXumnR_UWp4ks5uQA3mgaJpZM4VEINk .
This is happening to me too. I have been trying to build the library on xcode and get
ld: library not found for -lboost_python
I was able to build the library. If anyone else runs in this issue.
Just run
brew info boost-python
and get the installation dir
And then point point Xcode to the $(brew_installation_dir)/lib
in the library search paths in the xcode project.
For me the directory was
/usr/local/Cellar/boost-python/1.67.0/lib
It may be different for you
In addition change -lboost_python to -lboost_python27
On OS X, Renderman works fine with python 3 (and python 2) using boost provided by homebrew.
Tested with renderman version: 33213e50b7096a419db1186f89a13cceb659d718 (= last commit)
I resolved this by running:
brew info boost-python
after going to the lib directory that boost-python is located in, I ran ls
:
it outputted:
libboost_numpy27-mt.a libboost_python27-mt.a libboost_numpy27-mt.dylib libboost_python27-mt.dylib libboost_numpy27.a libboost_python27.a libboost_numpy27.dylib libboost_python27.dylib libboost_python.dylib
I then created a symlink from libboost_python27.dylib to libboost_python.dylib
sudo ln -s /usr/local/Cellar/boost-python/1.69.0/libboost_python27.dylib /usr/local/Cellar/boost-python/1.69.0/libboost_python.dylib
looks like the build process is looking for libboost_python.dylib
Hey all, please accept my apologies for the silence on your problems. This is a project that I wrote whilst at university and I now don't have time to support in a professional capacity, but I appreciate it's a tool that is of use to you.
I'm wondering if any of you would like to become collaborators so you can put this repository in a state that works for you?