[Gtk-sharp-list] RE: Re[8]: [Mono-list] Is it possible to install and run Gtk# without a root privilegies?

Daniel Morgan danielmorgan@verizon.net
Sat, 3 Jul 2004 18:42:44 -0400


Yeah, these example gtk# programs should be fixed.

For your dllmap, libgdk_pixbuf-2.0-0.dll probably is
libgdk_pixbuf-2.0-0.so

-----Original Message-----
From: Vadim B. Guzev [mailto:vguzev@yandex.ru] 
Sent: Saturday, July 03, 2004 6:23 PM
To: Daniel Morgan
Subject: Re[8]: [Mono-list] Is it possible to install and run Gtk#
without a root privilegies?


Hello Daniel,

DM> Nothing is wrong.  The GTK# Hello World is just a gtk+ window.  
DM> There is no code for handling exiting the GTK# Hello World program, 
DM> so I wouldn't worry about.

DM> Try other examples, such as, Button, Size, treeviewdemo (not the 
DM> ManagedTreeViewDemo), calendar, menu, scribble, etc...

Thanks! Cool! Some of them're working perfectly... although I'm watching
it from Windows (X Client) :-) However, I can't run treeviewdemo - it
hangs on and when I close the window it prints the following:

[vadim@skif sample]$ mono treeviewdemo.exe

(treeviewdemo.exe:6649): Gtk-CRITICAL **: file gtkmain.c: line 1150
(gtk_main_quit): assertion `main_loops != NULL' failed

Also, "testdnd" example isn't working

[vadim@skif sample]$ mono testdnd.exe

Unhandled Exception: System.DllNotFoundException:
libgdk_pixbuf-2.0-0.dll in <0x00053> (wrapper managed-to-native)
Gdk.Pixbuf:gdk_pixbuf_new_from_xpm_data (string[]) in <0x00058>
Gdk.Pixbuf:.ctor (string[]) in <0x00101> TestDnd:Main (string[])

What's the dllmap equivalent to libgdk_pixbuf-2.0-0.dll?


Best regards,
Vadim B. Guzev
http://u.pereslavl.ru/~vadim/MCSharp/

DM> -----Original Message-----
DM> From: Vadim B. Guzev [mailto:vguzev@yandex.ru]
DM> Sent: Saturday, July 03, 2004 6:05 PM
DM> To: Daniel Morgan
DM> Subject: Re[6]: [Mono-list] Is it possible to install and run Gtk#
DM> without a root privilegies?


DM> Hello Daniel,


DM> Sunday, July 4, 2004, 1:44:03 AM, you wrote:

DM>> libgtk-win32-2.0-0.dll is a gtk+ shared library for windows.  It is
DM>> not part of gtk#. On linux, you should have a libgtk-x11-2.0-0.so
DM>> shared library.  There is a file named config in mono/etc that 
DM>> translates maps the windows native DLLs to Linux shared libraries.
DM>> Maybe your config file does not have these dllmaps.

DM> OK. I've created the following config
DM> <configuration>
DM>         <dllmap dll="cygwin1.dll" target="libc.so.6" />
DM>         <dllmap dll="libc" target="libc.so.6" />
DM>         <dllmap dll="libintl" target="libc.so.6" />
DM>         <dllmap dll="libxslt.dll" target="libxslt.so" />
DM>         <dllmap dll="libmySQL.dll" target="libmysqlclient.so" />
DM>         <dllmap dll="odbc32.dll" target="libodbc.so" />
DM>         <dllmap dll="oci" target="clntsh" />
DM>         <dllmap dll="db2cli" target="libdb2_36.so"/>
DM>         <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
DM>         <dllmap dll="libgobject-2.0-0.dll"
DM> target="libgobject-2.0.so.0"/>
DM>         <dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so.0"/>
DM>         <dllmap dll="libgtk-win32-2.0-0.dll"
DM> target="libgtk-x11-2.0.so.0"/> </configuration>

DM> and added LD_LIBRARY_PATH=/home/vadim/mono/gs-1.0/lib
DM> Now application starts but there isn't any content on the form, i.e.
no
DM> button "Click me!"... although there's a window title "VB Gtk+ Hello
DM> World". And the application hangs on when I close this window...

DM> Is Gtk# so buggy or I can do smth to fix this?


DM> Best regards,
DM> Vadim B. Guzev
DM> http://u.pereslavl.ru/~vadim/MCSharp/


DM>> -----Original Message-----
DM>> From: Vadim B. Guzev [mailto:vguzev@yandex.ru]
DM>> Sent: Saturday, July 03, 2004 5:31 PM
DM>> To: Daniel Morgan
DM>> Subject: Re[4]: [Mono-list] Is it possible to install and run Gtk#
DM>> without a root privilegies?


DM>> Hello Daniel,

DM>> Sunday, July 4, 2004, 1:21:00 AM, you wrote:

DM>>> Is the place where your mono/gtk# assemblies in the PATH ?

DM>> Now I have only this Mono related settings:

DM>> export PATH=/home/vadim/mono/m-1.0/bin:$PATH
DM>> export PATH=/home/vadim/mono/gs-1.0/bin:$PATH
DM>> export
DM>> MONO_PATH=/home/vadim/mono/gs-1.0/lib/mono/gtk-sharp:$MONO_PATH

DM>> My simple "Hello world!" application is located in folder
DM>> /home/vadim/archive/tests/basic.and.gtk and it's not specified in
DM> the
DM>> $PATH

DM>> Do I need to set up or install anything else? I see that there's no
DM>> libgtk-win32-2.0-0.dll on my system now...


DM>> Best regards,
DM>> Vadim B. Guzev
DM>> http://u.pereslavl.ru/~vadim/MCSharp/



DM>>> -----Original Message-----
DM>>> From: mono-list-admin@lists.ximian.com 
DM>>> [mailto:mono-list-admin@lists.ximian.com] On Behalf Of Vadim B. 
DM>>> Guzev
DM>>> Sent: Saturday, July 03, 2004 4:37 PM
DM>>> To: mono-list
DM>>> Subject: Re[2]: [Mono-list] Is it possible to install and run Gtk#
DM>>> without a root privilegies?


DM>>> Hello Daniel,

DM>>>> If you build Mono and GTK# from source tarballs, on the configure
DM>>>> line, set your prefix. ./configure
DM>>>> --prefix=/home/danmorg/mono So 
DM>>>> when you do, make, make install, it will put the stuff in 
DM>>>> /home/danmorg/mono.

DM>>> Well. Actually I did the same(used prefixes), but the simplest 
DM>>> application doesn't work for me... I installed mono from sources
to
DM>>> the directory /home/vadim/mono/m-1.0/. After that I tried to
DM> install

DM>>> Gtk# from sources to /home/vadim/mono/gs-1.0 but on the
DM> installation

DM>>> phase it said that mono package wasn't installed on this system.
DM>>> Then I set up the environment variable 
DM>>> PKG_CONFIG_PATH=/home/vadim/mono/m-1.0/lib/pkgconfig
DM>>> and everything compiled successfully.
DM>>> The problem that now I can compile any Gtk# programs, but I can't
DM>>> run them, as I get the folowing mistake:

DM>>> 8<------------------------------------------------
DM>>> [vadim@skif basic.and.gtk]$ mbas gtk.vb -r gtk-sharp
DM>>> --------
DM>>> MonoBASIC: THIS IS STILL ALPHA AND UNSUPPORTED SOFTWARE, USE AT
DM> YOUR

DM>>> OWN RISK.
DM>>> --------
DM>>> Compilation succeeded
DM>>> [vadim@skif basic.and.gtk]$ mono gtk.exe
DM>>> Unhandled Exception: System.DllNotFoundException: 
DM>>> libgtk-win32-2.0-0.dll in <0x00053> (wrapper managed-to-native) 
DM>>> Gtk.Application:gtk_init
DM>>> (int&,intptr&) in <0x00038> Gtk.Application:Init () in <0x00014>
DM>>> GtkTest:Main ()
DM>>> 8<------------------------------------------------

DM>>> Any ideas?


DM>>> Best regards,
DM>>> Vadim B. Guzev
DM>>> http://u.pereslavl.ru/~vadim/MCSharp/

DM>>> _______________________________________________
DM>>> Mono-list maillist  -  Mono-list@lists.ximian.com 
DM>>> http://lists.ximian.com/mailman/listinfo/mono-list