Reputation: 5003
I am trying to install caffe on my mac. I have installed boost but I get this error:
make pycaffe -j8
LD -o .build_release/lib/libcaffe.so
clang: warning: argument unused during compilation: '-pthread'
ld: library not found for -lboost_thread-mt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so] Error 1
Upvotes: 4
Views: 1690
Reputation: 5931
If you're using anaconda, you can also provide the boost dependency using the conda-forge anaconda channel:
$ conda install -c conda-forge boost
And create the symlinks, as @Marqin said, if they're not available.
The conda-forge boost might soon include the -mt
libraries. I opened an issue for it on their github repo.
Upvotes: 0
Reputation: 1094
You have probably installed boost without boost-thread, or have old installer that installed boost_thread-mt as boost_thread. If it's the second then you can just make symbolic link from libboost_thread.a
to libboost_thread-mt.a
.
If it's the first cause, then you have to reinstall brew with boost-thread, and the easiest way will be to get Homebrew and install boost with it:
brew install boost
Which installs proper libs:
-> % ls /usr/local/lib/libboost_thread-mt.*
/usr/local/lib/libboost_thread-mt.a /usr/local/lib/libboost_thread-mt.dylib
Upvotes: 5