diff --git a/docs/building-cmake.md b/docs/building-cmake.md index 070704e86..112a7667f 100644 --- a/docs/building-cmake.md +++ b/docs/building-cmake.md @@ -12,18 +12,18 @@ You will require **api_id** and **api_hash** to access the Telegram API servers. You will need GCC 7.2 and CMake 3.2 installed. To install them and all the required dependencies run - sudo apt-get install software-properties-common - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo add-apt-repository ppa:george-edison55/cmake-3.x - sudo apt-get update - sudo apt-get install gcc-7 g++-7 cmake - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 - sudo update-alternatives --config gcc - sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test - sudo add-apt-repository --remove ppa:george-edison55/cmake-3.x + sudo apt-get install software-properties-common -y && \ + sudo apt-get install git libexif-dev liblzma-dev libz-dev libssl-dev libappindicator-dev libicu-dev libdee-dev libdrm-dev dh-autoreconf autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-util0-dev libxrender-dev libasound-dev libpulse-dev libxcb-sync0-dev libxcb-randr0-dev libx11-xcb-dev libffi-dev libncurses5-dev pkg-config texi2html zlib1g-dev yasm cmake xutils-dev bison python-xcbgen -y && \ - sudo apt-get install git libexif-dev liblzma-dev libz-dev libssl-dev libappindicator-dev libicu-dev libdee-dev libdrm-dev dh-autoreconf autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-util0-dev libxrender-dev libasound-dev libpulse-dev libxcb-sync0-dev libxcb-randr0-dev libx11-xcb-dev libffi-dev libncurses5-dev pkg-config texi2html zlib1g-dev yasm cmake xutils-dev bison python-xcbgen + sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ + sudo add-apt-repository ppa:george-edison55/cmake-3.x -y && \ + sudo apt-get update && \ + sudo apt-get install gcc-7 g++-7 cmake -y && \ + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 && \ + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 && \ + sudo update-alternatives --config gcc && \ + sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test -y && \ + sudo add-apt-repository --remove ppa:george-edison55/cmake-3.x -y You can set the multithreaded make parameter by running