Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Ubuntu 16.04 32-bit VM prep with GCC8/LLVM8 for compiling Mesa 32-bit drivers.
- #
- # Note: This is not a script.
- #
- # This are the packages and steps I took to get going. Skim through
- # and see what you need, but most likely all steps should apply.
- # ------------------------------------------------------------
- # Add Ubuntu Toolchain PPA for GCC 8
- # sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- # sudo apt update && sudo apt upgrade
- # sudo apt install gcc-8 g++-8
- # Make GCC 8 the default with the highest priority
- # sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
- # if you have other version, you can add them also with lower priority:
- # sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 500 --slave /usr/bin/g++ g++ /usr/bin/g++-5
- # sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- # To change versions at any time:
- # sudo update-alternatives --config gcc
- #
- # Necessary packages for Mesa (Your Mileage May Vary)
- # sudo apt install build-essential autoconf autogen libtool bison flex python-mako
- # sudo apt install zlib1g-dev x11proto-gl-dev libdrm-dev x11proto-dri2-dev libxcb-dri2-0-dev libx11-xcb-dev libxcb-glx0-dev
- # sudo apt install libxfixes-dev libxdamage-dev libxext-dev libx11-dev libxcb-xfixes0-dev libxcb-present-dev libxcb-dri3-dev libelf-dev
- # sudo apt install wayland-protocols libwayland-egl-backend-dev libxcb-sync-dev libxshmfence-dev libxrandr-dev libexpat-dev libsensors4-dev
- # sudo apt install llvm llvm-7 llvm-8-dev llvm-8-tools vulkan-utils
- #
- # Add LLVM 8 PPA
- # echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" | sudo tee /etc/apt/sources.list.d/llvm.list
- # wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- # sudo apt update && sudo apt upgrade
- # sudo apt install libllvm-8-ocaml-dev libllvm8 llvm-8 llvm-8-dev llvm-8-doc llvm-8-examples llvm-8-runtime
- # sudo apt install libfuzzer-8-dev lldb-8 lld-8 libc++-8-dev libc++abi-8-dev libomp-8-dev
- #
- # Setting up LLVM8/clang8 as default
- # sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 500
- # sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 500
- # sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-8 500
- #
- # If you have older versions:
- # sudo apt install llvm-3.9-dev clang-3.9 lldb-3.9 clang++-3.8
- #
- # Add them to alternatives with lower priority below:
- # sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100
- # sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100
- # sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-3.8 100
- #
- # sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 200
- # sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 200
- # sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-3.9 200
- # Have to manually get libglvnd debpkg and libLLVM-8 from a newer distro (bionic/cosmic)
- #
- # For example:
- # http://mirrors.kernel.org/ubuntu/pool/main/libg/libglvnd/libglvnd-core-dev_1.0.0-2ubuntu2_i386.deb
- # https://packages.ubuntu.com/bionic/i386/libglvnd0/download
- #
- # Then install them:
- # sudo dpkg -i libglvnd-core-dev.deb
- # sudo dpkg -i libglvnd0.deb
- # If you run into any issues:
- # sudo apt --fix-broken install
- # Add oibaf PPA for newer libdrm
- # sudo add-apt-repository -y ppa:oibaf/graphics-drivers
- # sudo apt update
- # sudo apt upgrade libdrm
- # sudo apt install libdrm-amdgpu1 libdrm-common libdrm-dev
- # sudo apt install vdpauinfo libllvm8 libvdpau-dev libva-dev libclc-dev libclang-8-dev
- # sudo apt install mesa-utils libgl1-mesa-glx libgles1-mesa libgles1-mesa-dev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement