Skip to content

Commit 1369473

Browse files
committed
apt-get update before install pkg-config.
1 parent 75c2a7d commit 1369473

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

buildscripts/kokoro/android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mv "${ANDROID_HOME}/cmdline-tools/cmdline-tools" "${ANDROID_HOME}/cmdline-tools/
3333
curl -Ls https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-x86_64.tar.gz | \
3434
tar xz -C /tmp
3535
export PATH=/tmp/cmake-3.26.3-linux-x86_64/bin:$PATH
36-
sudo apt-get install pkg-config
36+
sudo apt-get update && sudo apt-get install pkg-config
3737

3838
# Proto deps
3939
buildscripts/make_dependencies.sh

buildscripts/make_dependencies.bat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ mkdir protobuf-%PROTOBUF_VER%\build
3939
pushd protobuf-%PROTOBUF_VER%\build
4040

4141
@rem cmake does not detect x86_64 from the vcvars64.bat variables.
42-
@rem If vcvars64.bat has set PLATFORM to X64, then inform cmake to use the Win64 version of VS
42+
@rem If vcvars64.bat has set PLATFORM to X64, then inform cmake to use the Win64 version of VS, likewise for x32
4343
if "%PLATFORM%" == "x64" (
44-
@rem Note the space
4544
SET CMAKE_VSARCH=-A x64
45+
) else if "%PLATFORM%" == "x32" (
46+
SET CMAKE_VSARCH=-A x32
4647
) else (
4748
SET CMAKE_VSARCH=
4849
)
@@ -53,7 +54,7 @@ for /f "tokens=1 delims=." %%a in ("%VisualStudioVersion%") do (
5354
SET visual_studio_major_version=%%a
5455
)
5556
cmake -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=%cd%\protobuf-%PROTOBUF_VER% -DCMAKE_PREFIX_PATH=%cd%\protobuf-%PROTOBUF_VER% -G "Visual Studio %visual_studio_major_version% %VC_YEAR%" %CMAKE_VSARCH% ..
56-
cmake --build . --config Release --target install
57+
cmake --build . --config Release --target install
5758
popd
5859
goto :eof
5960

0 commit comments

Comments
 (0)