pdf-extract icon indicating copy to clipboard operation
pdf-extract copied to clipboard

incompatible version protobuf

Open avesgit opened this issue 2 years ago • 1 comments

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)

avesgit avatar Sep 25 '22 21:09 avesgit

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

adeg avatar Mar 03 '23 15:03 adeg