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
Boost Error #2
Comments
It seems that boost-python needs to be linked. Try to add -lboost_python to the CAFFE_DEPENDENCES in the Makefile, and please let me know if it works to update it. |
Thanks for the response. I added -lboost_python to the Makefile but ran into the same error.
Is this still an issue with linking boost-python?
Thanks for the help! |
Ok, it seems from your Makefile that boost was not installed using apt-get or other package managers, but directly downloaded to a folder boost_1_62_0 and compiled there. The most straightforward solution to fix this problem is to install all required libboost-dev using apt-get instead. However, if you wish to keep boost in a folder, you can try to add also -lboost_system and the path to that folder adding -DBOOST_DIR="boost installation location" to the CAFFE_DEPENDENCES. This error may also arise if there is already a Boost install in /usr/lib/ that will be incompatible with your self-installed Python (GalSim-developers/GalSim#270). |
Hello, I tried adding the -DBOOST_DIR flag, but I get the same error. Here is the error I get when running make to install this converter using apt-get boost:
As well, here is my Makefile:
Any ideas? Not sure why I'm still getting this undefined reference error. Thanks for the help! |
The Caffe Makefile has the following definition: PYTHON_LIBRARIES ?= boost_python python2.7 So I would try to add -lpython2.7 (or the version you have) to the CAFFE_DEPENDENCES. If you can't find it, check this link: http://stackoverflow.com/questions/8400272/usr-bin-ld-cannot-find-lpython2-7. The linking order matters, so it should be included after boost_python. |
@pertusa that works! |
Hi,
I tried installing your converter, but I keep on running into the following error:
Is this an issue with my boost installation? My caffe install seems to be working fine though. I am working off of the latest caffe pull.
Any ideas? Thanks for the help!
The text was updated successfully, but these errors were encountered: