Merge pull request #296 from dkurt/patch-1

Do not build CMake from source
This commit is contained in:
Alexey Suhov 2020-02-10 21:08:40 +03:00 committed by GitHub
commit 949b74059f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,7 @@ with the following content:
crossbuild-essential-armhf \ crossbuild-essential-armhf \
git \ git \
wget \ wget \
cmake \
libusb-1.0-0-dev:armhf \ libusb-1.0-0-dev:armhf \
libgtk-3-dev:armhf \ libgtk-3-dev:armhf \
libavcodec-dev:armhf \ libavcodec-dev:armhf \
@ -207,12 +208,6 @@ with the following content:
libgstreamer-plugins-base1.0-dev:armhf \ libgstreamer-plugins-base1.0-dev:armhf \
libpython3-dev:armhf \ libpython3-dev:armhf \
python3-pip python3-pip
RUN wget https://www.cmake.org/files/v3.14/cmake-3.14.3.tar.gz && \
tar xf cmake-3.14.3.tar.gz && \
(cd cmake-3.14.3 && ./bootstrap --parallel=$(nproc --all) && make --jobs=$(nproc --all) && make install) && \
rm -rf cmake-3.14.3 cmake-3.14.3.tar.gz
``` ```
It uses the Debian\* Stretch (Debian 9) OS for compilation because it is a base of the Raspbian\* Stretch. It uses the Debian\* Stretch (Debian 9) OS for compilation because it is a base of the Raspbian\* Stretch.