[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] gst 2.1.11 - Gtk+ binding examples

From: Mike Anderson
Subject: Re: [Help-smalltalk] gst 2.1.11 - Gtk+ binding examples
Date: Tue, 30 Aug 2005 08:13:53 +0000
User-agent: Mozilla Thunderbird 0.7.3 (X11/20040803)

Michael Haupt wrote:
Hi Mike,

I'm sending this to the list again, since your response was sent to me only.

On 8/28/05, Mike Anderson <address@hidden> wrote:

The example scripts don't include any command to actually load the
package. You basically need a chunk:

PackageLoader fileInPackage: 'GTK'

at the top of each example script, or create an image with the package

PackageLoader fileInPackage: 'GTK'!
ObjectMemory snapshot: ''; quit!

Then your invocation would be:

gst -gI

Thanks for this, but the symptoms are quite similar still. As far as I
can see from the output this generates, it attempts to load the same
files as The output this time, when loading,

Loading package GTK
Recompiling classes...
Object: nil error: did not understand
(((many more of those)))

So, this time, gst doesn't complain about some C functions not having
been defined, but about #defineCFunc:withSelectorArgs:returning:args:
being sent to nil. Actually, it's sent to Gtk, but that class does not
seem to be existing.

Again, thanks for your help, but I'm afraid I need some more...

My installation is in a state of flux at the moment, so take this with a pinch of salt...

The class Gtk should be in the namespace GTK. This is now done using the tag <namespace> in packages.xml (interpreted by the PackageLoader class), but it used to be done manually in one of the loader files for the package. Not sure which it is in 2.1.11. Loading the package properly, rather than loading manually, makes sure.

Similarly, your original error looks to me like the module (where those functions are exported from) is not loaded. That is acheived by the <module> tag in packages.xml.

So I think that your original error may have been resolved, and we're now seeing a new error.

The declaration of Gtk is in, and that gets filed in first, so the question is, why do the later files not find it?

Can you check whether the class Gtk exists in the namespace GTK? ie. does the class GTK.Gtk exist?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]