RenderMan icon indicating copy to clipboard operation
RenderMan copied to clipboard

Unable to compile on mac

Open benjaminderei opened this issue 6 years ago • 9 comments

I get: ld: library not found for -lboost_python

benjaminderei avatar Jul 05 '18 15:07 benjaminderei

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

harritaylor avatar Aug 10 '18 20:08 harritaylor

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 .

benjaminderei avatar Aug 11 '18 11:08 benjaminderei

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?

harritaylor avatar Aug 12 '18 11:08 harritaylor

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 .

benjaminderei avatar Aug 12 '18 12:08 benjaminderei

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 avatar Oct 23 '18 23:10 CarlosBalladares

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

CarlosBalladares avatar Oct 24 '18 00:10 CarlosBalladares

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

egoid avatar Jun 04 '19 19:06 egoid

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?

fedden avatar Jun 05 '20 14:06 fedden