Last active
August 29, 2019 14:56
-
-
Save jdmichaud/3bfa207fb90c11cbd77d9b9d92a15816 to your computer and use it in GitHub Desktop.
Prepare a dev environment on vulkan (WIP)
This file contains hidden or 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
curl -sOL https://www.x.org/releases/individual/lib/libXext-1.3.4.tar.gz | |
tar xf libXext-1.3.4.tar.gz | |
cd libXext-1.3.4 | |
./configure | |
make -j `nproc` | |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd` | |
export CPPFLAGS="$CPPFLAGS -I`pwd`/include" | |
export LDFLAGS="$LDFLAGS -L`pwd`/src/.libs" | |
cd .. | |
curl -sOL https://www.x.org/releases/individual/lib/libXrender-0.9.10.tar.gz | |
tar xf libXrender-0.9.10.tar.gz | |
cd libXrender-0.9.10 | |
./configure | |
make -j `nproc` | |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd` | |
export CPPFLAGS="$CPPFLAGS -I`pwd`/include" | |
export LDFLAGS="$LDFLAGS -L`pwd`/src/.libs" | |
cd .. | |
curl -sOL https://www.x.org/releases/individual/lib/libXrandr-1.5.2.tar.gz | |
tar xf libXrandr-1.5.2.tar.gz | |
cd libXrandr-1.5.2 | |
./configure | |
make -j `nproc` | |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd` | |
export CPPFLAGS="$CPPFLAGS -I`pwd`/include" | |
export LDFLAGS="$LDFLAGS -L`pwd`/src/.libs" | |
cd .. |
This file contains hidden or 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
# https://vulkan-tutorial.com/Development_environment#page_Linux | |
## dependencies for glfw | |
sudo apt install libxrandr-dev | |
sudo apt install libxinerama-dev | |
sudo apt install libxcursor-dev | |
sudo apt install libxi-dev | |
sudo apt install mesa-common-dev | |
## Install glfw-3.3 | |
curl -sOL https://github.com/glfw/glfw/releases/download/3.3/glfw-3.3.zip | |
unzip glfw-3.3.zip | |
pushd . | |
mkdir -p glfw-3.3/build | |
cd glfw-3.3/build | |
cmake ../ | |
make | |
popd | |
## Install glm | |
curl -sOL https://github.com/g-truc/glm/releases/download/0.9.9.5/glm-0.9.9.5.zip | |
unzip glm-0.9.9.5.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment