Skip to content
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

Unable to compile on mac #10

Open
benjaminderei opened this issue Jul 5, 2018 · 9 comments
Open

Unable to compile on mac #10

benjaminderei opened this issue Jul 5, 2018 · 9 comments

Comments

@benjaminderei
Copy link

I get:
ld: library not found for -lboost_python

@harritaylor
Copy link
Contributor

Have you installed boost via home-brew? (brew install boost-python)

@benjaminderei
Copy link
Author

benjaminderei commented Aug 11, 2018 via email

@harritaylor
Copy link
Contributor

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?

@benjaminderei
Copy link
Author

benjaminderei commented Aug 12, 2018 via email

@CarlosBalladares
Copy link

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

@CarlosBalladares
Copy link

CarlosBalladares commented Oct 24, 2018

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

@guillaumedevineauminesparis

On OS X, Renderman works fine with python 3 (and python 2) using boost provided by homebrew.

Tested with renderman version: 33213e5 (= last commit)

@egoid
Copy link

egoid commented Jun 4, 2019

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

@fedden
Copy link
Owner

fedden commented Jun 5, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants