Makman2 / CE3D

A terminal 3D engine
GNU General Public License v3.0
4 stars 0 forks source link

"buildready" script #167

Open Makman2 opened 9 years ago

Makman2 commented 9 years ago

I came up with the idea to supply a script that automatically installs needed dependencies to build our project. It would automatically fetch packages via apt-get or yum and installs them correctly depending on the used operating system. Example for my Ubuntu 14.04 LTS machine it would look similar to this:

apt-get -y build-essential
apt-get -y cmake
apt-get -y libboost-all-dev
# ... other needed dependencies or configurations.

Depending on the OS version it performs different things (i.e. Ubuntu 12 doesn't have Boost >= 1.5 in it's repos, but it should work if you install it manually. You can use wget for this to download and then unpack the archive). It can also ask you if you want to install optional components (like doxygen etc.). Then if you want to build CE3D you just

git clone https://github.com/Makman2/CE3D.git
cd CE3D
./buildready
# And start build!
make release # or any other target...

That saves time for configuring the machine and nobody needs to spend much time to search for the right packages.

sils commented 9 years ago

just a hint, you may want to use packagekit to be distribution independent.

Makman2 commented 9 years ago

Okay will read about it, don't know what this tool does :)