Want more features on Pastebin? Sign Up, it's FREE!
Guest

SFML Ubuntu Build Script

By: a guest on Aug 4th, 2013  |  syntax: Bash  |  size: 1.06 KB  |  views: 131  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. echo "Installing lib dependencies"
  2. yes | sudo apt-get install cmake libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev
  3.  
  4. echo "Downloading latest SFML2 build"
  5. wget https://github.com/LaurentGomila/SFML/tarball/master
  6.  
  7. echo "extracting"
  8. mkdir sfml2
  9. tar -xf master -C sfml2 --strip-components 1
  10. cd sfml2
  11.  
  12. echo "Building dynamic release libraries"
  13. cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE
  14. make
  15. sudo make install
  16.  
  17. echo "Building debug release libraries"
  18. cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=TRUE .
  19. make
  20. sudo make install
  21.  
  22. echo "Building static release libraries"
  23. cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=FALSE .
  24. make
  25. sudo make install
  26.  
  27. echo "Building static debug libraries"
  28. cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=FALSE .
  29. make
  30. sudo make install
  31.  
  32. echo "Cleaning up"
  33. cd ..
  34. sudo rm -r sfml2
  35. rm master
  36. echo "Enjoy using SFML!"
clone this paste RAW Paste Data