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

#include "caffe2/proto/caffe2.pb.h" not found #11

Closed
dawand opened this issue May 12, 2017 · 7 comments
Closed

#include "caffe2/proto/caffe2.pb.h" not found #11

dawand opened this issue May 12, 2017 · 7 comments

Comments

@dawand
Copy link

dawand commented May 12, 2017

not found in logging.h

I manually checked the cafe2 proto folder and the file is not there.

Am I missing something?

@KleinYuan
Copy link
Owner

KleinYuan commented May 12, 2017

@dawand hi, I guess you are testing feature-models branch right? In that case, yes, you will have this issue, because we are still developing this branch (in the stage of testing some error handling) and it's quite not stable. We will eventually publish a 2-0-stable branch for a clean/stable version of that branch.

I tested 1-0-stable, and it should not throw this error.

Also, this error thrown because in the feature-models branch, you are missing some files (which is too big for git an we didn't put it there.)

You can still do following to clean it:

  1. Open it in Xcode and you will see under models folder, there are many pb files marked as red (due to it's too big and we don't put it here)
  2. Choose all the red ones and right click, then delete them
  3. change this line to
    let builtInModels = ["squeezeNet"]
    Then you will have no trouble.

Or, you can download for example tinyYoloInit.pb/tinyYoloPredict.pb in this repo: https://github.com/KleinYuan/caffe2-yolo

And do similar thing, remove whatever is not available or whatever you don't need.

In summary, the issue is that model files are missing and this branch is still under developing. Sorry for the confusion and we will publish 2-0-stable ASAP. :) hope helpful.

@dawand
Copy link
Author

dawand commented May 12, 2017

Thank you very much for the detailed explanation 👍 Keep going 💯

@dawand dawand closed this as completed May 12, 2017
@KleinYuan
Copy link
Owner

@dawand thanks for your appreciation and feel free to ask any question here. Also if you like it, star us to encourage us. :)

@KleinYuan
Copy link
Owner

KleinYuan commented May 13, 2017

@dawand hey man, I actually thought about it and it seems that also possible that your caffe2 build is not successful. Could you double check on that.
If everything build successfully, you will see that file in here:
screen shot 2017-05-13 at 10 44 05 am

I have a friend having the same issue and please check following stuff are done:

  • brew install automake libtool

  • make sure your cmake tool chain is not changed by other services and maybe you wanna reinstall it like brew install cmake

You should not have any problem if those are done.

@lihuoran
Copy link

lihuoran commented Dec 22, 2017

@KleinYuan Hi, I met the same error today when I was trying to build the Caffe2-iOS. When I run setup.sh, there is an error:

CMake Error at cmake/External/nnpack.cmake:102 (add_library):
  Cannot find source file:

    /Users/lihuoran/home/workspace/dl-on-mobile/demos/Caffe2-iOS/src/caffe2/third_party/NNPACK/src/psimd/fft-block-mac.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  cmake/Dependencies.cmake:52 (include)
  CMakeLists.txt:85 (include)


CMake Error: Cannot determine link language for target "CAFFE2_NNPACK".
CMake Error: CMake can not determine linker language for target: CAFFE2_NNPACK

Do you know what is going on and how to fix it? Thanks!

@varunlakshmanan
Copy link

varunlakshmanan commented Dec 23, 2017

@KleinYuan I am having the same exact problem as described above by @lihuoran when I run setup.sh. (This Imgur album has three images that show all of the errors and warnings I'm receiving in Terminal when running setup.sh. They are in chronological order from first image to third image.) In addition, I'm also getting these two warnings:

WARNING: Target "libprotoc" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case.

WARNING: Target "protoc" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case.

@lihuoran Please let me know if you find a solution to this error.

@smoosh911
Copy link

Was there ever a fix for this issue?

I tried looking at #23 but this isn't doing it for me either

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

5 participants