gjs-examples icon indicating copy to clipboard operation
gjs-examples copied to clipboard

issues with egClutter.js and egCairo.js

Open makerio90 opened this issue 4 years ago • 2 comments
trafficstars

makerio@makerio:~/Projects/gtk stuff/gjs-examples-master$ gjs egClutter.js

(gjs:7365): Gjs-WARNING **: 23:22:55.015: JS ERROR: Error: Requiring GtkClutter, version none: Typelib file for namespace 'GtkClutter' (any version) not found
@egClutter.js:15:23


(gjs:7365): Gjs-CRITICAL **: 23:22:55.015: Script egClutter.js threw an exception
makerio@makerio:~/Projects/gtk stuff/gjs-examples-master$ gjs egCairo.js

(gjs:7556): Gjs-WARNING **: 23:25:42.247: JS ERROR: Error: Requiring GtkClutter, version none: Typelib file for namespace 'GtkClutter' (any version) not found
@egCairo.js:16:23


(gjs:7556): Gjs-CRITICAL **: 23:25:42.247: Script egCairo.js threw an exception

makerio90 avatar May 17 '21 04:05 makerio90

Same here. I test those

imports.gi.versions.Gtk = '3.0';
imports.gi.versions.Gdk = '2.0';

Still got error. And I had tested 2.42.6, 2.42, etc. All not found.

Requiring Gdk, version 2.0: Typelib file for namespace 'Gdk', version '2.0' not found

My gdk package list here

⭕ apt list --installed *gdk*
Listing... Done
gir1.2-gdkpixbuf-2.0/impish,now 2.42.6+dfsg-1build2 amd64 [installed,automatic]
libgdk-pixbuf-2.0-0/impish,now 2.42.6+dfsg-1build2 amd64 [installed,automatic]
libgdk-pixbuf-2.0-0/impish,now 2.42.6+dfsg-1build2 i386 [installed,automatic]
libgdk-pixbuf-2.0-dev/impish,now 2.42.6+dfsg-1build2 amd64 [installed,automatic]
libgdk-pixbuf-xlib-2.0-0/impish,now 2.40.2-2build2 amd64 [installed,automatic]
libgdk-pixbuf-xlib-2.0-dev/impish,now 2.40.2-2build2 amd64 [installed,automatic]
libgdk-pixbuf2.0-0/impish,now 2.40.2-2build2 amd64 [installed,automatic]
libgdk-pixbuf2.0-bin/impish,now 2.42.6+dfsg-1build2 amd64 [installed,automatic]
libgdk-pixbuf2.0-common/impish,impish,now 2.42.6+dfsg-1build2 all [installed,automatic]
libgdk-pixbuf2.0-dev/impish,now 2.40.2-2build2 amd64 [installed,automatic]

eexpress avatar Jan 15 '22 08:01 eexpress

(gjs:7365): Gjs-WARNING **: 23:22:55.015: JS ERROR: Error: Requiring GtkClutter, version none: Typelib file for namespace 'GtkClutter' (any version) not found @egClutter.js:15:23

$ sudo apt install gir1.2-gtkclutter-1.0

Requiring Gdk, version 2.0: Typelib file for namespace 'Gdk', version '2.0' not found

GTK and GDK versions should be equal

imports.gi.versions.Gtk = '3.0';
imports.gi.versions.Gdk = '3.0';

ten0s avatar Nov 23 '22 17:11 ten0s