Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: shell script to download and install sfml2  (Read 1910 times)

0 Members and 1 Guest are viewing this topic.

i_read_in_python

  • Newbie
  • *
  • Posts: 3
    • View Profile
shell script to download and install sfml2
« on: June 10, 2013, 09:25:46 am »
Adapted from "Installing SFML 2.0 on linux for dummies" by falconmick. I keep these files in my home directory on any Ubuntu computer I have for more than a couple months. This may soon become obsolete if it hasn't already, so if it's 2015 or sfml2 is fully up and running go ahead and delete this.

First file: sfml2p1.sh

mkdir sfmlbuild
cd sfmlbuild
wget https://github.com/SFML/SFML/tarball/master
tar zxf master
cd ..
echo "Run 'ls sfmlbuild'"
echo "Run 'mv sfmlbuild/LaurentGomila<version> sfml2'"
echo "Run './sfml2p2.sh'"


Second file: sfml2p2.sh

rm -rf sfmlbuild
sudo apt-get install libpthread-stubs0-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libx11-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libglew1.5-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libsndfile1-dev
sudo apt-get install libopenal-dev
sudo apt-get install cmake
sudo apt-get install g++
cd sfml2
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=TRUE
make
make install
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=TRUE
make
sudo make install
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=FALSE
make
sudo make install
cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=FALSE >> install.log
make
sudo make install


It will ask you for your password. I could be hijacking your computer. Or deleting your home directory. If you don't trust me, by all means, don't give it.

Following directions imprecisely may result in minor damage to your computer and/or complete loss of SFML. Be careful.

Beware strangers saying alias vi='rm'
« Last Edit: June 10, 2013, 09:32:53 am by i_read_in_python »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: shell script to download and install sfml2
« Reply #1 on: June 10, 2013, 09:34:55 am »
No need to build the 4 variants, on Linux only the "release / shared libs" version is really needed.
Laurent Gomila - SFML developer

i_read_in_python

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: shell script to download and install sfml2
« Reply #2 on: June 10, 2013, 09:59:27 am »
@Laurent

You really answer everything. Awesome.

I don't understand this code anymore. I'll leave it up in case it helps someone. I had a lot of trouble getting this together, back when sfml2 was still squeaky beta, but there's probably better resources now.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: shell script to download and install sfml2
« Reply #3 on: June 10, 2013, 10:28:48 am »
Yes, now there's an official release, and someone even made Linux packages.
Laurent Gomila - SFML developer

i_read_in_python

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: shell script to download and install sfml2
« Reply #4 on: June 10, 2013, 07:00:39 pm »
I would delete the thread, but it's not letting me.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: shell script to download and install sfml2
« Reply #5 on: June 10, 2013, 10:02:55 pm »
You can't delete the whole thread. I can do it, but... it could still be helpful, so I would keep it.
Laurent Gomila - SFML developer

 

anything