You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On multiarch arch64, it requires cmake 3.13 to allow using abseil module instead of as a package, and this version is not available to install. Hence building cmake from source. Building the latest source of cmake needs openssl location to be specified (or have openssl turned off) so using the older version 3.13.4
Copy file name to clipboardExpand all lines: buildscripts/make_dependencies.sh
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ set -evux -o pipefail
5
5
6
6
PROTOBUF_VERSION=22.5
7
7
ABSL_VERSION=20230125.4
8
+
CMAKE_VERSION=3.13.4
8
9
9
10
# ARCH is x86_64 bit unless otherwise specified.
10
11
ARCH="${ARCH:-x86_64}"
@@ -29,6 +30,16 @@ if [ -f ${INSTALL_DIR}/bin/protoc ]; then
29
30
echo"Not building protobuf. Already built"
30
31
# TODO(ejona): swap to `brew install --devel protobuf` once it is up-to-date
31
32
else
33
+
if [[ !-d"cmake-${CMAKE_VERSION}" ]];then
34
+
curl -Ls "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz"| tar xz
35
+
fi
36
+
# the same source dir is used for 32 and 64 bit builds, so we need to clean stale data first
37
+
rm -rf "$DOWNLOAD_DIR/cmake-${CMAKE_VERSION}/bin"
38
+
cd"$DOWNLOAD_DIR/cmake-${CMAKE_VERSION}"
39
+
./bootstrap
40
+
make
41
+
make install
42
+
ln -s /usr/local/bin/cmake /usr/bin/cmake
32
43
if [[ !-d"protobuf-${PROTOBUF_VERSION}" ]];then
33
44
curl -Ls "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-${PROTOBUF_VERSION}.tar.gz"| tar xz
34
45
curl -Ls "https://github.com/abseil/abseil-cpp/archive/refs/tags/${ABSL_VERSION}.tar.gz"| tar xz
0 commit comments