MLib Reference Manual |
---|
Compiling the MLib packageCompiling the MLib Package — How to compile MLib itself |
On UNIX, MLib uses the standard GNU build system, using autoconf for package configuration and resolving portability issues, automake for building makefiles that comply with the GNU Coding Standards, and libtool for building static libraries. The normal sequence for compiling and installing the MLib library is thus:
./configure --enable-gtk-doc
make
make install
The standard options provided by GNU autoconf may be passed to the configure script. Please see the autoconf documentation or run ./configure --help for information about the standard options.
Before you can compile the MLib library, you need to have various other tools and libraries installed on your system. The two tools needed during the build process (as differentiated from the tools used in when creating MLib mentioned above such as autoconf) are pkg-config and GNU make.
pkg-config
is a tool for tracking the compilation flags needed for
libraries that are used by the GLib library. (For each
library, a small .pc
text file is
installed in a standard location that contains the compilation
flags needed for that library along with version number
information.)
The GTK+ makefiles will mostly work with different versions of make, however, there tends to be a few incompatibilities, so the GTK+ team recommends installing GNU make if you don't already have it on your system and using it. (It may be called gmake rather than make.)
MLib depends on a number of other libraries.
For all dependencies, you must to have installed in your system the GLib library and the DSLib library before you can compile the MLib library.
Su Win32, MLib non utilizza il sistema autotool. E' disponibile un pacchetto dedicato e compilato per sistemi a 32bit.
scaricare il pacchetto mlib-0.2-win32.rar
posizionare il pacchetto scaricato nella posizione C:
estrarre il pacchetto nella posizione C:
rimuovere il pacchetto compresso mlib-0.2-win32.rar o archiviarlo
Adesso la libreria è pronta per l'uso.