-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Can't build as a library #2799
Comments
I've been trying to get caffe installed as a c++ library for a few days now with no luck. I'll admit that I barely know what I'm doing when it comes to c++/make/cmake but the documentation is pretty weak. from what I can tell it has to do with incorrect installation of the dependencies, but I haven't found any clear instructions on how to do this correctly, and there are SO MANY DEPENDENCIES. Attempts at manual installation of all of them has left my AWS instance a mess and totally filled my 8gb of storage. I can only assume I'm doing something terribly wrong but I'm at a loss as to what. It's worth noting that the python wrapper works fine... this does not add up in my head. any thoughts? edit: I've basically just been trying to compile the cpp_classification example using
|
With a shared library it should just work. |
Right. The Makefile is designed to handle the layer registry in this way by https://github.com/BVLC/caffe/blob/master/Makefile#L269-L273. |
@Aleph7 please double check if it works with a shared library, if it doesn't then it's a bug. |
I'll give it a try, thanks |
The static lib flags worked, thanks again. |
If you build Caffe as a library (either static or dynamic) it fails to register the layers:
Unknown layer type: Convolution (known types: )
. Related: #2159The text was updated successfully, but these errors were encountered: