-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Documentation is missing build/linking instructions #10820
Comments
Was able to figure it out on my own, after running into several other issues (like c++11 requirements) g++ -I/opt/homebrew/include -L/opt/homebrew/lib -lprotobuf -std=c++11 main.cc addressbook.pb.cc -o addressbook I still think it would be worth mentioning in the actual documentation, however. |
I'm glad you were able to figure it out! I agree it is worth documenting, and this is something we have plans for but haven't had time to prioritize. Any contributions to the docs with what you learned would be greatly appreciated! |
brew installs |
The protobuf team does not maintain installation through homebrew. My understanding is that is maintained by homebrew directly, so I would reach out to them. |
I was able to build pycld3 which is based on libprotoc on M1 MacBook Air by installing latest protobuf 21.12 and running export LDFLAGS=-L/opt/homebrew/lib
export CPPFLAGS=-I/opt/homebrew/include |
Thank you very much for that solution it worked on my M1 MacBook Pro also 👍 I've stumbled upon some other solution if that doesn't work for you maybe the other does.(google/cld3#80) pip install --global-option=build_ext --global-option="-I/opt/homebrew/Cellar/protobuf/21.12/include" --global-option="-L/opt/homebrew/Cellar/protobuf/21.12/lib" gcld3 |
What version of protobuf and what language are you using?
Version:
Language: C++
What operating system (Linux, Windows, ...) and version?
Mac OS 12.6 / Apple Silicon ARM64
What runtime / compiler are you using (e.g., python version or gcc version)
What did you do?
Read the manual
Steps to reproduce the behavior:
What did you expect to see
Instructions on how to compile code sample and link against libraries.
What did you see instead?
Absolutely no build instructions.
Could not find any details on compiling in any of the github readmes or any of the online C++ docs.
What else did you try?
The text was updated successfully, but these errors were encountered: