Hi Peter,PjotAwake wrote:Jpeps,
It makes sense as the programs in that 'bacon.tar.gz' package are also more than a year old.
So forget about them!
Please use the programs shipped by Puppy Linux, or the current programs hosted on the BaCon website.
As noted, the gtk demo from website also gave the error:
Code: Select all
~ $ bacon -v
BaCon version 1.0 build 19 - (c) Peter van Eerten - GPL v3.
~ $ sudo bacon ./gtk-server-new.bac
Starting conversion... done.
Starting compilation... done.
Program './gtk-server-new' ready.
~ $ ./gtk-server-new
ERROR: signal for SEGMENTATION FAULT received - memory invalid or array out of bounds? Try to compile the program with TRAP LOCAL to find the cause.
Works better, but doesn't get the battery object like the old demo:For fun I have adjusted the 'gtkabout1.bac' program so it compiles and runs with BaCon 1.0 build 19. Compare with the orignal one and you'll see the differences.
Here is the code:
(see attachment)
Code: Select all
~ $ sudo ./gtkabout2
(<unknown>:7908): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Code: Select all
< DECLARE window, about, battery, image, rv TYPE long
< gtk_init(0, 0)
< window = gtk_window_new(GTK_WINDOW_TOPLEVEL)
Code: Select all
< IMPORT "gtk_init" FROM "libgtk-x11-2.0.so" TYPE void
< IMPORT "gtk_init" FROM "libgtk-x11-2.0.so" TYPE void
< IMPORT "gtk_window_new" FROM "libgtk-x11-2.0.so" TYPE long
< IMPORT "gtk_widget_show_all" FROM "libgtk-x11-2.0.so" TYPE void
---
> IMPORT "gtk_init(int*,void*)" FROM "libgtk-x11-2.0.so" TYPE void
> IMPORT "gtk_window_new(int)" FROM "libgtk-x11-2.0.so" TYPE long
> IMPORT "gtk_widget_show_all(long)" FROM "libgtk-x11-2.0.so" TYPE void