Re: Beagle thinks Im running windows?

2005-11-30 Thread Jonas Karlsson
Some more info on this. I took the easy way out and created links for  
every file that wasn't found (I knew I had the libs).

So I ended up with this:

libgdk-win32-2.0-0.dll - libgdk-x11-2.0.so.0
libgdk_pixbuf-2.0-0.dll - libgdk_pixbuf-2.0.so.0
libglade-2.0-0.dll - libglade-2.0.so.0
libglib-2.0-0.dll - libglib-2.0.so.0
libgobject-2.0-0.dll - libgobject-2.0.so.0
libgtk-win32-2.0-0.dll - libgtk-x11-2.0.so.0
libpango-1.0-0.dll - libpango-1.0.so.0

Now everything is working, but is this really the way you have to go? Have  
I missed something? Is it Mono that is causing all the trouble, as it's  
Mono that uses dll:s?
I know that I had gdk_pixbuf and gtk+ on my system before I installed  
Mono, so at least libgdk_pixbuf-2.0-0.dll should have been created by  
Mono, if it is Mono that does that.


--
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Beagle thinks Im running windows?

2005-11-30 Thread Joe Shaw
Hi,

On Wed, 2005-11-30 at 08:36 +0100, Jonas Karlsson wrote:
 Error: System.DllNotFoundException: libglib-2.0-0.dll

The dll is mapped to a shared library at runtime so that you can have
programs which run on both Linux and Windows without any source changes.

The mappings are stored in dll.config files.  For this one, it's
in /usr/lib/mono/gac/glib-sharp/2.4.0.0__35e10195dab3c99f/glib-sharp.dll.config 
(or something similar), and should say this (or something similar):

configuration
  dllmap dll=libglib-2.0-0.dll target=libglib-2.0.so.0/
  dllmap dll=libgobject-2.0-0.dll target=libgobject-2.0.so.0/
  dllmap dll=libgthread-2.0-0.dll target=libgthread-2.0.so.0/
/configuration

Make sure that you have that file, and that the targets are available on
your system.  You can also run with environment variables
MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll,asm to see mono's debugging
output when trying to look up those assemblies and libraries to see if
there is anything obviously wrong.  You can also try running other
gtk-based mono apps like Tomboy or F-Spot to see if they also have this
problem.

Typically this is something handled by the packages in the distro, so
you might want to report this upstream.

Joe


___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Beagle thinks Im running windows?

2005-11-30 Thread Joe Shaw
Hi,

On Wed, 2005-11-30 at 17:40 +0100, Jonas Karlsson wrote:
 Yes, both are true. The file is there (exaclty same path), with exact same  
 contents and the targets are available (after all I linked to them earlier  
 and that worked).
 Is there a path I have missed that has to be set?

You could try setting MONO_GAC_PREFIX=/usr:$MONO_GAC_PREFIX but I bet
this isn't the issue.

 Well, I think it looks suspect:

 Mono-INFO: DllImport loading location: 'libglib-2.0-0'.
 Mono-INFO: DllImport error loading library: 'libglib-2.0-0: cannot open  
 shared object file: No such file or directory'.

Yeah, it's failing to find the mapping, or else it'd say loading
location: 'libglib-2.0.so.0'

What does it have to say about glib-sharp?  You can also add cfg to
the MONO_LOG_MASK to see info specifically about loading the .config
files.

Joe

___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Beagle thinks Im running windows?

2005-11-30 Thread Joe Shaw
Hi,

On Wed, 2005-11-30 at 18:08 +0100, Jonas Karlsson wrote:
 Mono-INFO: Config attempting to parse:
 '/usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll.config'.
 Mono-INFO: Config attempting to parse:
 '/etc/mono/assemblies/glib-sharp/glib-sharp.config'.
 Mono-INFO: Config attempting to parse:
 '/home/jonas/.mono/assemblies/glib-sharp/glib-sharp.config'.

What about when MONO_LOG_MASK=asm?

When I run with it set to asm,dll,cfg, I get these lines:

Mono-INFO: Assembly Loader probing location:
'/usr/lib/mono/gac/glib-sharp/2.8.0.0__35e10195dab3c99f/glib-sharp.dll'.
Mono-INFO: Assembly Loader loaded assembly from location:
'/usr/lib/mono/gac/glib-sharp/2.8.0.0__35e10195dab3c99f/glib-sharp.dll'.
Mono-INFO: Config attempting to parse:
'/usr/lib/mono/gac/glib-sharp/2.8.0.0__35e10195dab3c99f/glib-sharp.dll.config'.

Is it probing the glib-sharp assembly in the GAC?

Joe

___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Beagle thinks Im running windows?

2005-11-29 Thread Dennis Snell




Well, it doesn't really think you are running windows. Mono (.NET) uses Dll files to kind of bind things together at runtime. The dynamic link library you need (libglib) isn't found and that is your error. I'm not sure about the win32 issue, but it looks like it's related to the gtk library. Hope this helps some - perhaps someone else can elaborate more...

On Wed, 2005-11-30 at 08:36 +0100, Jonas Karlsson wrote:


Hello,

I have compiled Beagle without any issues but when I try to run the daemon  
I get strange errors.

]beagled --fg --debug
Debug: Starting Beagle Daemon (version 0.1.2)
Debug: Command Line: /Programs/Beagle/0.1.2/lib/beagle/BeagleDaemon.exe  
--fg --debug
Warn: Extended attributes are not supported on this filesystem.  Many  
search backends will not be available
Error: Unhandled exception thrown.  Exiting immediately.
Error: System.DllNotFoundException: libglib-2.0-0.dll
in (wrapper managed-to-native) GLib.Marshaller:g_malloc (uintptr)
in 0x00066 GLib.Marshaller:StringToPtrGStrdup (System.String str)
in 0x000e1 GLib.Argv:.ctor (System.String[] args, Boolean  
add_program_name)
in 0xf GLib.Argv:.ctor (System.String[] args)
in 0x0007b Gtk.Application:do_init (System.String progname,  
System.String[] args, Boolean check)
in 0xf Gtk.Application:InitCheck (System.String progname,  
System.String[] args)
in 0x00487 Beagle.Daemon.BeagleDaemon:DoMain (System.String[] args)
in 0x00014 Beagle.Daemon.BeagleDaemon:Main (System.String[] args)

I thought that this could be a linking problem, so I made a symlink from  
libglib-2.0.so.0 to libglib-2.0-0.dll. Then I got another, more strange  
error:

]beagled --fg --debug
Debug: Starting Beagle Daemon (version 0.1.2)
Debug: Command Line: /Programs/Beagle/0.1.2/lib/beagle/BeagleDaemon.exe  
--fg --debug
Warn: Extended attributes are not supported on this filesystem.  Many  
search backends will not be available
Error: Unhandled exception thrown.  Exiting immediately.
Error: System.DllNotFoundException: libgtk-win32-2.0-0.dll
in (wrapper managed-to-native) Gtk.Application:gtk_init_check  
(int,intptr)
in 0x000a7 Gtk.Application:do_init (System.String progname,  
System.String[] args, Boolean check)
in 0xf Gtk.Application:InitCheck (System.String progname,  
System.String[] args)
in 0x00487 Beagle.Daemon.BeagleDaemon:DoMain (System.String[] args)
in 0x00014 Beagle.Daemon.BeagleDaemon:Main (System.String[] args)
[EMAIL PROTECTED] /Programs/Scripts/Current]

Well, this I think is not a linking error, but beagle thinking I run  
windows. Howcome?

beagle and dependencies versions:
Linux 2.6.14.3
gcc 4.0.2
glibc 2.3.2
Mono 1.1.10
gtk-sharp2 2.4.0
gecko-sharp 2.0 0.11
Firefox 1.0.7
gmime 2.1.17
sqlite 2.8.16
libexif 0.6.12
beagle 0.1.2

First rows from ./configure

beagle-0.1.2]./configure
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux

I can't really see why beagle are looking for windows dll:s.
Can anyone help me?





___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers