Pana acum in cadrul articolelor mele am vorbit despre instalarea programelor folosind codul sursa cu ajutorul comenzilor ./configure, make, make install si make uninstall. De aceasta data va prezint un nou program care face acest lucru, folosind mai putini pasi (desigur ca acest lucru se realizeaza tot cu consola).

Ce este scons?
SCons is a computer software construction tool that automatically analyzes source code file dependencies and operating system adaptation requirements from a software project description and generates final binary executables for installation on the target operating system platform. Its function is analogous to the traditional GNU build system based on the make utility and the autoconf tools. Scons uses the Python general purpose programming language as a foundation, so that all software project configurations and build process implementations are Python scripts.( Wikipedia )
Programul in sine poate fi obtinut din sursele de pachete ale distributiei linux folosite sau de pe site-ul Scons.

Ce avantaje prezinta scons?
* Configuration files are Python scripts–use the power of a real programming language to solve build problems.
* Reliable, automatic dependency analysis built-in for C, C++ and Fortran–no more “make depend” or “make clean” to get all of the dependencies. Dependency analysis is easily extensible through user-defined dependency Scanners for other languages or file types.
* Built-in support for C, C++, D, Java, Fortran, Yacc, Lex, Qt and SWIG, and building TeX and LaTeX documents. Easily extensible through user-defined Builders for other languages or file types.
* Building from central repositories of source code and/or pre-built targets.
* Built-in support for fetching source files from SCCS, RCS, CVS, BitKeeper and Perforce.
* Built-in support for Microsoft Visual Studio .NET and past Visual Studio versions, including generation of .dsp, .dsw, .sln and .vcproj files.
* Reliable detection of build changes using MD5 signatures; optional, configurable support for traditional timestamps.
* Improved support for parallel builds–like make -j but keeps N jobs running simultaneously regardless of directory hierarchy.
* Integrated Autoconf-like support for finding #include files, libraries, functions and typedefs.
* Global view of all dependencies–no more multiple build passes or reordering targets to build everything.
* Ability to share built files in a cache to speed up multiple builds–like ccache but for any type of target file, not just C/C++ compilation.
* Designed from the ground up for cross-platform builds, and known to work on Linux, other POSIX systems (including AIX, *BSD systems, HP/UX, IRIX and Solaris), Windows NT, Mac OS X, and OS/2.

In general cand doriti sa instalati un program folosind scons trebuie sa urmati acesti pasi:
1. cititi ceea ce spune fisierul README sau INSTALL pentru a afla ce dependinte trebuie satisfacute si pe care trebuie sa le instalati
2. initiati comanda scons PREFIX=/path/to/install sau scons pentru compilare, locatia initiala atunci cand se foloseste scons este /usr/local
3. pentru instalare initiati comanda scons install
4. pentru stergerea programului instalat se foloseste comanda scons -c install
Acestea sunt cateva lucruri pe care scons le face, daca doriti sa aprofundati si mai mult accesati acest wiki

No votes yet.
Please wait...

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA ImageChange Image