Created
October 9, 2019 10:59
-
-
Save hazzus/95b175bd9c1239421088afa02229cf5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BUILD_THREADS=4 | |
# Update && upgrade | |
sudo apt-get update | |
sudo apt-get upgrade | |
# TODO maybe something else needed? | |
# First install git | |
sudo apt-get install git | |
# Then drivers | |
DRIVER_NEEDED=$(sudo ubuntu-drivers list | grep nvidia-driver | tail -1) | |
sudo apt-get install $DRIVER_NEEDED | |
# RESTART !!! | |
# Then CUDA | |
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux | |
sh cuda_10.0.130_410.48_linux --silent --toolkit --toolkitpath=/usr/local/cuda-10.0 | |
rm cuda_10.0.130_410.48_linux | |
echo 'export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.0/NsightCompute-1.0${PATH:+:${PATH}}' >> .bashrc | |
echo 'export LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/local/cuda-10.0/lib64\ | |
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> .bashrc | |
# Now dependencies of qt5 | |
sudo apt-get install libclang-dev | |
sudo apt-get install xkbcommon-dev | |
# this should pull wayland and wayland-egl: | |
sudo apt-get install libglfw3-dev libgles2-mesa-dev | |
sudo apt-get install libdbus-1-dev libatspi2.0-dev | |
sudo apt-get install python | |
# EGL external platform | |
git clone https://github.com/NVIDIA/eglexternalplatform.git | |
cd eglexternalplatform/interface | |
sudo cp * /usr/include/EGL | |
cd .. | |
sudo cp eglexternalplatform.pc /usr/share/pkgconfig | |
cd .. | |
# Nvidia EGL wayland | |
# dependencies | |
sudo apt-get install autoconf | |
sudo apt-get install libtool | |
sudo apt-get install libwayland-egl-backend-dev | |
git clone https://github.com/NVIDIA/egl-wayland.git | |
./autogen.sh # for me causes error, opened an iss | |
make -j$BUILD_THREADS | |
make install | |
# TODO EGL JSON CONFIG??? | |
# Now Qt | |
git clone https://github.com/qt/qt5 | |
cd qt5 | |
git checkout 5.13.1 | |
./init-repository --module-subset=essential,qtwayland | |
mkdir build | |
cd build | |
../configure -release -opensource -confirm-license -opengl es2 -egl -xkbcommon -xcb -nomake tests | |
make -j$BUILD_THREADS | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment