unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* g-golf example error 'No applicable method for #<<generic> g-application-run'
@ 2023-11-09 11:39 Mortimer Cladwell
  2023-11-09 16:22 ` David Pirotte
  0 siblings, 1 reply; 2+ messages in thread
From: Mortimer Cladwell @ 2023-11-09 11:39 UTC (permalink / raw)
  To: guile-user

Hi,
I have installed g-golf with guix:
guix package -i guile-g-golf gtk guile-cairo

I try to run the hello-world example with the manifest.scm:

---manifest.scm--------------
(specifications->manifest
 '("guile"
   "guile-g-golf"
   "guile-cairo"
   "gtk"))
-------------------------------

mbc@ins3910:~/projects/g-golf/examples/gtk-4$ guix shell
guix shell: loading environment from
'/home/mbc/projects/g-golf/examples/gtk-4/manifest.scm'...
mbc@ins3910:~/projects/g-golf/examples/gtk-4 [env]$ ./hello-world.scm
Backtrace:
In ice-9/boot-9.scm:
  1752:10  6 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           5 (apply-smob/0 #<thunk 7fd6f4d12300>)
In ice-9/boot-9.scm:
    724:2  4 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  3 (_ #(#(#<directory (guile-user) 7fd6f4d15c80>)))
In /home/mbc/projects/g-golf/examples/gtk-4/./hello-world.scm:
    85:18  2 (main _)
In oop/goops.scm:
  1567:11  1 (cache-miss #<<gtk-application> 7fd6ecfdc540> ("./hell…"))
   1585:2  0 (_ _ _)

oop/goops.scm:1585:2: No applicable method for #<<generic>
g-application-run (1)> in call (g-application-run #<<gtk-application>
7fd6ecfdc540> ("./hello-world.scm"))

Help!

Maybe a separate issue - I see at
https://www.gnu.org/software/g-golf/install.html:

"G-Golf actually requires a patched version of guile-cairo that contains
the following new interface (which is not in guile-cairo 1.11.2):
cairo-pointer->context."

Is there a solution for guix users?
Thanks
Mortimer


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: g-golf example error 'No applicable method for #<<generic> g-application-run'
  2023-11-09 11:39 g-golf example error 'No applicable method for #<<generic> g-application-run' Mortimer Cladwell
@ 2023-11-09 16:22 ` David Pirotte
  0 siblings, 0 replies; 2+ messages in thread
From: David Pirotte @ 2023-11-09 16:22 UTC (permalink / raw)
  To: Mortimer Cladwell; +Cc: guile-user

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

Hello,

> I try to run the hello-world example with the manifest.scm:
> ...

I don't use guix and recommend that you ask for help in a guix ml or in
#guix, as this a guix problem, not a g-golf problem - all examples work
well upstream, in debian, and afaict, in freebsd.

> Maybe a separate issue - I see at
> https://www.gnu.org/software/g-golf/install.html:

> "G-Golf actually requires a patched version of guile-cairo that
> contains the following new interface (which is not in guile-cairo
> 1.11.2): cairo-pointer->context."

Right - but guile-cairo is only required if you are using guile-cairo
in your g-golf code, wrt examples, only for the animated-paintable and
simple-paintable examples do required guile-cairo. The hello-world, as
well as all other examples, including the adw1-demo, do not require
guile-cairo.

David

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-09 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-09 11:39 g-golf example error 'No applicable method for #<<generic> g-application-run' Mortimer Cladwell
2023-11-09 16:22 ` David Pirotte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).