[gtkada] Question about Glade installed with GtkAda-1.3.12

Kester, Rush W. Rush.Kester at jhuapl.edu
Mon Nov 26 16:50:11 CET 2001


Thanks Wolfgang for your reply. :-)  It allowed me to move
one step closer, but I still haven't solved the problem,
since I don't have gwin32.c.
(see below).
> -----Original Message-----
> From: Wolfgang Jeltsch [mailto:wolfgang at jeltsch.net]
> Sent: Saturday, November 24, 2001 6:04 PM
> To: GtkAda mailing list; Rush W. Kester
> Cc: Glade Users mailing list
> Subject: Re: [gtkada] Question about Glade installed with 
> GtkAda-1.3.12
> 
> 
> On Monday, 19 November 2001, 18:58 Rush W. Kester wrote:
> > [...]
> > When I select File, Project Options, two windows pop up: a 
> > Project Options dialog
> > and an MS DOS GLADE window with the following error messages:
> >
> >   ** CRITICAL **: file utils.c: line 1338 
> >   (glade_util_make_absolute_path):
> >      assertion `dir != NULL' failed.
> >
> >   GLib-CRITICAL **: file gwin32.c: line 94 (g_win32_opendir):
> >      assertion `dirname != NULL' failed.
> >
> >   ** WARNING **: Couldn't find next free project directory.
> >
> > I did a search for utils.c & gwin32.c on my hard drives but 
> > couldn't find them.
> 
> That's not remarkable if you don't have GLADE/GLib sources 
> installed. There seem to be bugs in GLADE/GLib. The error 
> messages refer to the points in the sources where errors 
> occured. There are output by the compiled code to give 
> useful debugging information but are obviously less useful 
> for you because you not seem to have the sources.

I'm not sure what GLADE/GLib files I'm missing.  I have 
the following files provided with GtkAda-1.3.12 on my
disk in:
GtkAda-1.3.12\lib
  glib.adb
  glib.ads
  glib-xml.ads
  glib-xml.adb
  glib-glade.ads
  glib-glade.adb
  glib-glist.adb
  glib-glist.ads
  glib-gnodes.adb
  glib-gnodes.ads
  glib-gslist.ads
  glib-gslist.adb
  glib-module.adb
  glib-module.ads
  glib-enums.ads
  libglib.a
GtkAda-1.3.12\bin
  glib-1.3.dll

As instructed on http://glade.gnome.org/download.html
I downloaded 
  glade-0.5.11.tar.gz
  autoconf-2.52.tar.gz
  automake-1.5.tar.gz
  gnome-libs-1.4.1.2.tar.gz
I found utils.c in glade-0.5.11\glade
but was unable to locate gwin32.c

The message in utils.c
> >   ** CRITICAL **: file utils.c: line 1338 
> >   (glade_util_make_absolute_path):
> >      assertion `dir != NULL' failed.
refers to the following in utils.c:
  glade_util_copy_file (const gchar *src,
		      const gchar *dest)
  ...
  bytes_written = fwrite (buffer, 1, bytes_read, output_fp);
  if (bytes_read != bytes_written)
	{
	 error = glade_error_new_system (_("Error writing to file:\n
%s\n"),
				      dest)
=====> break;
	}> 

It seems that the problem is related to the file specified in "dest." This
file is successfully opened by
  output_fp = fopen (dest, "w");
since "Couldn't create file" isn't printed, but output_fp cannot be
written.  I can't tell what "dest" refers to.

> > Is there something wrong with my installation?
> 
> I don't know. I don't have any experiences with GLADE.
> 
> > Where do I find these files or how are they created?
> >
> > Thanks in advance! Rush
> 
> Wolfgang




More information about the gtkada mailing list