You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
432 B
25 lines
432 B
2 months ago
|
#!/bin/bash -e
|
||
|
# Installs glfw3 from source as a shared lib
|
||
|
|
||
|
# Make sure glfw (or any previous version) is not already installed
|
||
|
sudo apt-get update
|
||
|
|
||
|
sudo apt-get install build-essential cmake git xorg-dev libglu1-mesa-dev
|
||
|
|
||
|
git clone https://github.com/glfw/glfw.git /tmp/glfw
|
||
|
|
||
|
cd /tmp/glfw
|
||
|
|
||
|
git checkout latest
|
||
|
|
||
|
cmake . -DBUILD_SHARED_LIBS=ON
|
||
|
|
||
|
make
|
||
|
|
||
|
sudo make install
|
||
|
|
||
|
sudo ldconfig
|
||
|
|
||
|
rm -rf /tmp/glfw
|
||
|
|
||
|
echo "Done installing glfw3!"
|