-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Trouble Building Protobuf Project on Mac #16314
Comments
What version of Abseil are you using? This looks like you might have an older one than 25.x requires |
#12292 (comment) |
Abseil version: 20240116.1 |
Thanks @wizetLee but this still doesn't help. |
How are you including protobuf in cmake? I believe the problem back then was how find_package was being used. i.e. this:
does not work because it uses the deprecated FindProtobuf file we don't own. Instead, you need
|
Here's a portion of my CMakeList.txt:
|
Thanks, I think it would be useful to make this more prominent in the docs and also make clear that the variables defined in https://cmake.org/cmake/help/latest/module/FindProtobuf.html are not available. On that note, what are the canonical Protobuf CMake variables we can actually use? We are still struggling with this. Overall, this is causing significant confusion and breakage with many open-source repositories trying to use Protobuf. |
Not sure if this is the right place to ask, but I am having exactly the same issue while building a program against Tensorflow, which uses Protobuf.
my Tensorflow and Protobuf is installed via mamba
I have to link the following libraries explicitly to make the build work:
I notice that the symbol
is not publicly exposed from |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment. This issue is labeled |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it. This issue was closed and archived because there has been no new activity in the 14 days since the |
What version of protobuf and what language are you using?
Version: 25.3_1
Language: C++
What operating system (Linux, Windows, ...) and version?
Mac, running MacOS 14.4.1 Sonoma
What runtime / compiler are you using (e.g., python version or gcc version)
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
What did you do?
Steps to reproduce the behavior:
What did you expect to see
Successful compilation
What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
The text was updated successfully, but these errors were encountered: