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 (version 2) #23

Closed
varunlakshmanan opened this issue Dec 24, 2017 · 1 comment
Closed

Comments

@varunlakshmanan
Copy link

varunlakshmanan commented Dec 24, 2017

I know this issue has been encountered before, but the solutions provided there did not help me solve this problem. The error is occurring in the logging.h. file. I have a feeling the problem comes from when I ran setup.sh. I encountered numerous warnings and errors in Terminal when running setup.sh (This Imgur album has three images that show all of the errors and warnings. They are in chronological order from first image to third image.) For convenience, the three images are below as well.

screen shot 2017-12-24 at 11 58 47 am
screen shot 2017-12-24 at 11 59 16 am
screen shot 2017-12-24 at 12 01 15 pm

Click on the third image to enlarge it.

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

@varunlakshmanan
Copy link
Author

I was able to solve my problem by building Caffe2 on Windows, then transferring the files from the Windows build to the proto folder of the iOS installation. The error doesn't disappear even once the files are transferred, so you have to type in the absolute path of the files in the include/import statement, like this:

#include "/Users/admin/Desktop/Caffe2-iOS/src/caffe2/caffe2/proto/caffe2.pb.h"

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

1 participant