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

incompatible version protobuf #64

Open
avesgit opened this issue Sep 25, 2022 · 1 comment
Open

incompatible version protobuf #64

avesgit opened this issue Sep 25, 2022 · 1 comment

Comments

@avesgit
Copy link

avesgit commented Sep 25, 2022

Protobuf compiler version 21.6 doesn't match library version 3.21.6
[exec] Call Stack (most recent call first):
[exec] CMakeLists.txt:4 (find_package)

@adeg
Copy link

adeg commented Mar 3, 2023

That's easy to fix. Just update setup.sh to clone the required version of protobuf. I'm using 3.21.12 as this was the version required by cld3-Java at the time of writing.

diff --git a/setup.sh b/setup.sh
index 2a630a0..41a57e0 100644
--- a/setup.sh
+++ b/setup.sh
@@ -124,7 +124,7 @@ else
                echo "### Install protobuf ###"
                echo "###"
                if [ -d "protobuf" ]; then rm -Rf "protobuf"; fi
-               git clone https://github.com/google/protobuf.git
+               git clone --depth 1 --branch "v3.21.12" https://github.com/google/protobuf.git
                cd protobuf
                ./autogen.sh
                ./configure

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

2 participants