[Gtk-sharp-list] Need help solving a problem using glade-lib/gtk/etc... app on Windows .Net.

Francisco T. Martinez martinf@mfconsulting.com
Thu, 26 Aug 2004 04:23:34 -0500


This is a multi-part message in MIME format.
--------------070908090207030702050708
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Thank you very much for your diligence and patience. 

You are correct in your assumptions about the GAC.  It is a runtime 
piece and not a compile time one.  This means that there shouldn't be a 
need to constantly redistribute or to keep cloning the Gtk# library 
assembly  modules every where.  If you where working within the 
environment that the Mono Combined installer for Win32 provides, you 
would see our implementation of the GAC working as you understood it.

I am currently doing some research with a new experimental Gtk# and Mono 
installer for Windows that will use GTK 2.4 rather than 2.2 it uses 
today.  The good news is that while the previous Win32 installers that I 
had put out were mostly a repackaging trick, this one will actually use 
Gtk# libraries that I am building from CVS.  This may finally provide 
the fix for the correct interaction with the Microsoft .NET Framework GAC.

Paco
PS
The Combined Mono Win32 Installer that I am working on will be first 
released here:
http://forge.novell.com/modules/xfmod/project/?monowin32


Anset wrote:

>Hi again,
>
>  
>
>>I am curious to see if my suggestions work for you.  I would appreciate
>>if you could drop me a line saying if the workaround steps did or did
>>not allow your app to function.  That way I can assist others that
>>report the same or very similar problem.
>>    
>>
>
>As I allready mailed to the list, yes the suggestions helped. :)
>However since I am not using visual studio, but only the command line tools,
>the info from the tutorial was not immediately clear.
>
>The "default namespace" setting of course has no meaning when using the
>command line compiler and I must admit I had to think about what "copy
>local" meant. Hey, I'm a beginner! :)
>
>But basically it did the trick. All I had to do was copy the gtk# dll's to
>the local program directory.
>I did remove the /lib lines from the response file and recompiled the
>program but it turns out that wasn't even needed...
>
>Next, I took the exe I compiled under monodevelop in linux and copied that
>to the directory where I copied the gtk-sharp libs to, and that exe works
>also. Which is of course extremely nice. :)
>
>So recompiling is not needed. Since the runtime looks in the local directory
>before going to the GAC, it works immediately.
>
>Still curius about how the runtime behaves different with LOCAL and GAC
>libs...
>
>Best regards,
>
>Anset.
>
>
>
>_______________________________________________
>Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>  
>

--------------070908090207030702050708
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Thank you very much for your diligence and patience.&nbsp; <br>
<br>
You are correct in your assumptions about the GAC.&nbsp; It is a runtime
piece and not a compile time one.&nbsp; This means that there shouldn't be a
need to constantly redistribute or to keep cloning the Gtk# library
assembly&nbsp; modules every where.&nbsp; If you where working within the
environment that the Mono Combined installer for Win32 provides, you
would see our implementation of the GAC working as you understood it. <br>
<br>
I am currently doing some research with a new experimental Gtk# and
Mono installer for Windows that will use GTK 2.4 rather than 2.2 it
uses today.&nbsp; The good news is that while the previous Win32 installers
that I had put out were mostly a repackaging trick, this one will
actually use Gtk# libraries that I am building from CVS.&nbsp; This may
finally provide the fix for the correct interaction with the Microsoft
.NET Framework GAC.<br>
<br>
Paco<br>
PS<br>
The Combined Mono Win32 Installer that I am working on will be first
released here:<br>
<a class="moz-txt-link-freetext" href="http://forge.novell.com/modules/xfmod/project/?monowin32">http://forge.novell.com/modules/xfmod/project/?monowin32</a><br>
<br>
<br>
Anset wrote:<br>
<blockquote type="cite" cite="mid007101c48b4b$06552d30$34f8fd90@BEJHON">
  <pre wrap="">Hi again,

  </pre>
  <blockquote type="cite">
    <pre wrap="">I am curious to see if my suggestions work for you.  I would appreciate
if you could drop me a line saying if the workaround steps did or did
not allow your app to function.  That way I can assist others that
report the same or very similar problem.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
As I allready mailed to the list, yes the suggestions helped. :)
However since I am not using visual studio, but only the command line tools,
the info from the tutorial was not immediately clear.

The "default namespace" setting of course has no meaning when using the
command line compiler and I must admit I had to think about what "copy
local" meant. Hey, I'm a beginner! :)

But basically it did the trick. All I had to do was copy the gtk# dll's to
the local program directory.
I did remove the /lib lines from the response file and recompiled the
program but it turns out that wasn't even needed...

Next, I took the exe I compiled under monodevelop in linux and copied that
to the directory where I copied the gtk-sharp libs to, and that exe works
also. Which is of course extremely nice. :)

So recompiling is not needed. Since the runtime looks in the local directory
before going to the GAC, it works immediately.

Still curius about how the runtime behaves different with LOCAL and GAC
libs...

Best regards,

Anset.



_______________________________________________
Gtk-sharp-list maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a>
  </pre>
</blockquote>
</body>
</html>

--------------070908090207030702050708--