Closed rygo6 closed 7 years ago
I faced the same problem. I completely removed all protobuf installation and tried with
brew install protobuf@3.1
It passed.
@rygo6 I think they move protobuf back to 3.1.0 from 3.2.0 because of this.
I am also quite looking forwards to protobuf 3.2.0, which could increase the limit from 64MB to 2GB.
@rygo6 Does @zhisong's advice work? I'm assuming so and closing. If not, please reopen. @KleinYuan we manually increase the limit :)
@bwasti ahh, thanks and I will check this out.
Actually I also managed to manually increase the limit by changing this to the amount I want, like very huge lol (since I sense this is where Xcode complains) and rebuild iOS caffe2. :) Works perfectly. lol
@zhisong did you then have to change something else to make sure that this version of protobuf was used by the compiler? When I removed all versions and installed 3.1, I get this error:
In file included from /code/caffe2/build/caffe/proto/caffe.pb.cc:5:
/code/caffe2/build/caffe/proto/caffe.pb.h:9:10: fatal error:
'google/protobuf/stubs/common.h' file not found
which seems to suggest that protobuf isn't being found. this is consistent with the warnings brew gave me when i installed protobuf@3.1:
Editor support and examples have been installed to:
/usr/local/opt/protobuf@3.1/share/doc/protobuf@3.1
This formula is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/protobuf@3.1/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/protobuf@3.1/lib
CPPFLAGS: -I/usr/local/opt/protobuf@3.1/include
For pkg-config to find this software you may need to set:
PKG_CONFIG_PATH: /usr/local/opt/protobuf@3.1/lib/pkgconfig
If you need Python to find bindings for this keg-only formula, run:
echo /usr/local/opt/protobuf@3.1/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/protobuf@3.1.pth
I have been trying to install Caffe2 on OSX on my macbook pro. Everything seemed to be going fine until sudo make install.
I've installed protobuf every which way mentioned in the troubleshooting page:
brew install protobuf && sudo pip install protobuf OR brew install protobuf && conda install -y --channel https://conda.anaconda.org/conda-forge protobuf=3.2.0
Anyone have any other ideas on how to fix this?