bitextor / pdf-extract

PDF parser and converter to HTML
GNU General Public License v3.0
83 stars 14 forks source link

incompatible version protobuf #64

Open avesgit opened 2 years ago

avesgit commented 2 years ago

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 commented 1 year ago

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