Last active
March 29, 2022 11:16
-
-
Save RichardDally/32dddd17441eff386c8ee80bfd276628 to your computer and use it in GitHub Desktop.
Compile SFML and TGUI statically
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
Windows (powershell): | |
cd C:\Temp\ | |
git clone --branch 2.5.1 -q https://github.com/SFML/SFML sfml | |
cmake -G "Visual Studio 16 2019" -H"sfml" -B"C:\Temp\sfml\build" -DCMAKE_INSTALL_PREFIX="C:\Temp\sfml\install\" -DBUILD_SHARED_LIBS=OFF -DSFML_USE_STATIC_STD_LIBS=ON | |
cmake --build "C:\Temp\sfml\build" --config release --parallel 8 --target INSTALL | |
cd C:\Temp\ | |
git clone --branch 0.10 -q https://github.com/texus/TGUI.git tgui | |
cmake -G "Visual Studio 16 2019" -H"tgui" -B"C:\Temp\tgui\build" -DCMAKE_INSTALL_PREFIX="C:\Temp\tgui\install\" -DSFML_DIR="C:\Temp\sfml\install\lib\cmake\SFML" -DTGUI_BACKEND=SFML_GRAPHICS -DTGUI_SHARED_LIBS=OFF -DTGUI_USE_STATIC_STD_LIBS=ON -DTGUI_BUILD_EXAMPLES=OFF -DTGUI_BUILD_GUI_BUILDER=OFF | |
cmake --build "C:\Temp\tgui\build" --config release --parallel 8 --target INSTALL | |
GNU/Linux (bash): | |
cd /tmp/ | |
sudo apt-get update | |
sudo apt-get -y install libgl1-mesa-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libx11-dev libxrandr-dev libx11-xcb-dev libxcb-randr0-dev libxcb-image0-dev libjpeg-dev | |
git clone --branch 2.5.1 -q https://github.com/SFML/SFML sfml | |
cmake -H"sfml" -B"/tmp/sfml/build" -DCMAKE_INSTALL_PREFIX:string="/tmp/sfml/install/" -DBUILD_SHARED_LIBS=OFF | |
cmake --build "/tmp/sfml/build" --config release --parallel 8 --target install | |
cd /tmp/ | |
git clone --branch 0.10 -q https://github.com/texus/TGUI.git tgui | |
cmake -H"tgui" -B"/tmp/tgui/build" -DCMAKE_INSTALL_PREFIX:string="/tmp/tgui/install/" -DSFML_DIR:string="/tmp/sfml/install/lib/cmake/SFML" -DTGUI_BACKEND=SFML_GRAPHICS -DTGUI_SHARED_LIBS=OFF -DTGUI_BUILD_EXAMPLES=OFF -DTGUI_BUILD_GUI_BUILDER=OFF | |
cmake --build "/tmp/tgui/build" --config release --parallel 8 --target install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment