[Gtk-sharp-list] Building GTK Sharp for .Net

Bertrand Lorentz bertrand.lorentz at gmail.com
Tue May 20 20:54:00 UTC 2014


Hi,

On Tue, May 20, 2014 at 10:29 PM, tlhemphill <Tara.Hemphill at l-3com.com> wrote:
> Matthew Trumbell wrote
>> I'm using this as a guide: http://www.mono-project.com/Compiling_GtkSharp
>>
>> I'm trying to compile the master branch from the git repository on GitHub.
>> autogen seems to work alright, but I'm failing on configure with the
>> following:
>>
>>     configure: error: Package requirements (mono-2 glib-2.0) were not met:
>>     No package 'mono-2' found
>>
>> I've checked pkg-config (it's using the one from gtk+) and I followed the
>> rest of the setup.
>>
>> So I'm starting to wonder how up to date these instructions are or if I'm
>> applying the wrong set of procedures to master. Which brings up a host of
>> questions:
>>
>> - Why is it demanding mono if I'm trying to build for .Net? Is it an
>> incidental dependency or does it signal that my environment is setup
>> improperly?
>> - What version of GTK+ is master targeting? (I assumed the latest 3.x
>> release given comments on the GTK# project page)
>> - What version of GCC/Visual Studio is this expecting? Project files seem
>> to be targeting VS2008 and gcc was failing due to a bad option
>> (-mno-cygwin) until I changed configure.ac.
>> - How are the official builds of GTK# for .Net generated? They target gtk+
>> 2.10 IIRC.
>>
>> If there are better guides, or a more appropriate branch for doing what
>> I'm
>> trying to do, I'd love to hear about them.
>
> I have followed the same steps and am having the same issues. After removing
> 'mno-cygwin' option from configure.ac and running autogen.sh, I receive the
> error:
>
> configure: error: Package requirements (mono-2 glib-2.0) were not met:
>     No package 'mono-2' found
>
> Does anyone have an idea or update for building GTK#-2.99.2 on Windows?

GTK# 2.99.2 does not build on Windows, for several reasons. I've been
working on it, and git master should now build without errors.
You can see the various fixes in the commit log:
https://github.com/mono/gtk-sharp/commits/master

See also this recent thread:
http://mono.1490590.n4.nabble.com/Gtk-2-99-x-for-Windows-tt4662817.html

--
Bertrand


More information about the Gtk-sharp-list mailing list