pdf-extract
pdf-extract copied to clipboard
incompatible version protobuf
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)
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