Discussion:
GTK# and GTK+ dependencies on Windows
Andrew Simmons
2013-12-31 12:59:54 UTC
Permalink
Hi Everyone,

I tried to install Tomboy a few days ago.
The move [1] to wiki.gnome.org made it difficult to find downloads at
the time, so I built from source in Visual Studio 2010.
I'm running Windows 7 Pro 32-bit.

I loosely followed the instructions on the wiki:
https://wiki.gnome.org/Apps/Tomboy/Installing/Windows
https://wiki.gnome.org/Apps/Tomboy/Building/Windows


Problems I encountered:

The Novell's GTK# installer link is broken
http://ftp.novell.com/pub/mono/gtk-sharp/

So I used Xamarin's GTK# for .NET
(http://www.go-mono.com/mono-downloads/download.html > Previous Stable
Version 2.10.x > Windows):
http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.21.msi
(despite being named GTK# 2.12.21, the output of
gtk-query-immodules-2.0.exe says GTK+ 2.24.13)

Unlike the Novell installer [2] (which includes GTK+), the Xamarin
installer is just a binding [3] to GTK+.

With GTK#, but without GTK+, VS2010 builds the solution successfully.
However, I get a runtime error:
Unhandled Exception: System.DllNotFoundException: Unable to load DLL
'libgtk-win32-2.0-0.dll': The specified procedure could not be found.

I downloaded the GTK+ 2.24 bundle from
http://www.gtk.org/download/win32.php and added it to my PATH:
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip

Success! Although, the icon in the system tray is invisible.


Am I right in thinking that all Windows users will need to manually
install both GTK# AND GTK+ ?
If so, I'd like to update the install instructions on the wiki, but I
thought I'd check here first before I mislead users into unnecessarily
modifying their PATH.


Proposed Install Instructions:

* Make sure you have at least .NET 4.0 installed
* Install "Gtk# for .NET" 2.12.21 or later (by Xamarin) from
http://www.go-mono.com/mono-downloads/download.html (look under
"Previous Stable Version")
* Download the latest "GTK+ 2.x all-in-one bundle" from
http://www.gtk.org/download/win32.php and add the bin directory to
your PATH.
* Restart (optional)
* Download and run Tomboy installer / Build from source in Visual Studio
* Run Tomboy


Andrew Simmons


[1] http://blogs.gnome.org/mccann/2013/12/17/lets-face-it/
[2] http://mkestner.blogspot.com.au/2009/04/gtk-for-net.html
[3] http://stackoverflow.com/questions/15234211/running-an-gtk-application-made-in-monodev-with-net/15585568#15585568
Jared Jennings
2014-01-02 19:53:11 UTC
Permalink
Your instructions look good to me. I agree.
-- 
Jared

On December 31, 2013 at 6:59:59 AM, Andrew Simmons (***@gmail.com) wrote:

thought I'd check here first before I mislead users into unnecessarily 
modifying their PATH. 
Andrew Simmons
2014-01-03 10:47:30 UTC
Permalink
Thanks for your feedback.

I've recommended using TOMBOY_PATH_PREFIX rather than changing the
PATH directly in order to reduce the risk of interfering with other
applications.
Post by Jared Jennings
Your instructions look good to me. I agree.
--
Jared
thought I'd check here first before I mislead users into unnecessarily
modifying their PATH.
Loading...