[Mono-list] How to build mono w/o glib (pb)

Jonathan Pryor jonpryor at vt.edu
Thu Jul 10 21:35:27 EDT 2008


On Thu, 2008-07-10 at 19:37 +0200, Alessandro Vesely wrote:
> glib 2.4 is a requirement for mono, as stated in the README.
> 
> Is it at all possible to do without? I tried --with-x=no to no avail. 
> How was the Nokia port built?

configure --with-glib=embedded

By "Nokia port" do you mean Maemo?  I imagine that used the
Maemo-provided glib.

> Apps that will run under mono have absolutely no [G]UI, they only work 
> on the net.

GLib doesn't provide a GUI.  GTK+ provides a GUI, GLib does not, so a
normal mono build will run w/o a GUI (unless/until you use something
that requires that a GUI be present, such as System.Drawing).

> I'm targeting a very old Red Hat (7.2), and would downright prefer a 
> very minimal mono package, thus I include most items in the 
> enable_minimal configure option.

The only GUI that `mono` provides is System.Windows.Forms, and I don't
know of a way to prevent building it.  Not that it matters, as it
doesn't require that GTK+ or any other GUI libraries be present to
build.  (It also won't run until you build & install libgdiplus...)

Gtk# isn't built as part of mono, it's built separately when you build
gtk-sharp.  So just building mono will NOT build Gtk#.

 - Jon




More information about the Mono-list mailing list