[Gtk-sharp-list] GTK# win32 Installer, a deployment question.
Phillip Dyer
p85dyer at gmail.com
Fri Oct 13 12:20:03 EDT 2006
On 10/13/06, Francisco T. Martinez <martinf at mfconsulting.com> wrote:
>
> Phillip Dyer wrote:
> > Mr. Martinez,
> >
> > Hello, I'm currently developing an application that uses the GTK#
> > libraries. The installer you created works great for setting up my
> > development system. However, the program I'm developing is closed
> > source and I would prefer to just distribute the LGPL libraries of
> > GTK/GTK# locally with my project. There are two reasons for this, the
> > first being if I keep a local copy of the libraries I don't have to
> > worry about another program updating the libraries (or downgrading)
> > them. Second I don't really want the GPL license showing in my
> > project, especially if I'm only using libraries covered under the LGPL.
> >
> > I was curious as to how the installer works, does it simply
> > register the assemblies to the gac and then put regular gtk and gtk
> > glue libraries in the system path?
> >
> > Thanks for Reading this,
> >
> > -Phillip Dyer
> If you are using the Runtime Installer as opposed to the SDK type
> installer, I believe that you will end up with almost all LGPL (if not
> all). If I recall correctly, the presence of GPL in the SDK installer
> is due to Glade -- the GTK/GNOME GUI builder app.
>
> You pretty much hit the nail on the head :) The Gtk# Installers for
> .NET register those Gtk#/Mono libraries in the Win32 .NET GAC and also
> create a central directory structure (installation destination
> folder\bin, installation destination folder\lib, etc.) that is register
> in the host computer's global environment (PATH and in the system
> registry).
>
> Best regards,
>
> Paco
>
Paco,
Thanks for your quick reply. I was hoping you could help me with
something. I'm a little confused by something about the GAC installation.
When I have the libraries installed to the GAC and I build the project using
visual studio the project runs fine.
However if I uninstall the libraries from the GAC (using the supplied
gtk-sharp_msgac_uninstall.bat) and put these files:
Gtk-Sharp
Gdk-Sharp
GLib-Sharp
Gecko-Sharp
Pango-Sharp
Atk-Sharp
Mono.Cairo.dll
in the projects directory and refrence them. I can build the project
without errors. However when I attempt to run the project I recieve:
--------------------------------------------------------------------------------------------------------------------------------------
An unhandled exception of type 'System.IO.FileLoadException' occurred in
VoiceAnnounce.exe
Additional information: The located assembly's manifest definition with name
'gtk-sharp' does not match the assembly reference.
--------------------------------------------------------------------------------------------------------------------------------------
And in the Debugging output:
---------------------------------------------------------------------------------------------------------------------------------------
Unhandled Exception: System.IO.FileLoadException: The located assembly's
manifest definition with name 'gtk-sharp' does not match the assembly
reference.
File name: "gtk-sharp"
at VoiceAnnounce.MainClass..ctor()
at VoiceAnnounce.MainClass.Main(String[] args)
=== Pre-bind state information ===
LOG: DisplayName = gtk-sharp, Version=2.4.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
(Fully-specified)
LOG: Appbase = C:\Documents and Settings\Phillip\My Documents\Visual Studio
Projects\GTKVAComm\bin\Release\
LOG: Initial PrivatePath = NULL
Calling assembly : gecko-sharp, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=ccf7d78a55e9f021.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: gtk-sharp, Version=2.4.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f
LOG: Attempting download of new URL file:///C:/Documents and Settings/PThe
program '[2740] VoiceAnnounce.exe' has exited with code 0 (0x0).
hillip/My Documents/Visual Studio Projects/GTKVAComm/bin/Release/gtk-
sharp.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
-------------------------------------------------------------------------------------------------------------------------------------
I've noticed that both the batch file and visual studio reports the
GTK-Sharp.dll version as 2.8, but at runtime it appears to be getting
2.4and I'm not sure why. It appears to be selecting the correct file
according
to the debugger.
-------------------------------------------------------------------------------------------------------------------------------------
Loaded 'c:\documents and settings\phillip\my documents\visual studio
projects\gtkvacomm\bin\release\gecko-sharp.dll', No symbols loaded.
-------------------------------------------------------------------------------------------------------------------------------------
Thanks,
-Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20061013/d77b0d96/attachment.html
More information about the Gtk-sharp-list
mailing list