Re: First example of g-golf (hello world) not working
David Pirotte <[email protected]> Sun, 13 Apr 2025 18:39:46 -0300
| Newsgroups | gmane.lisp.guile.user |
|---|---|
| Message-ID | <20250413183946.0e44ab3c@tintin> |
Hello Zelphir, > ... > (3) Generally I would like to run the code, not a prebuilt example > package. How else do I know, that the code listed in the repository > of G-Golf as example actually works? iAs Florian explained in his answer: guix shell g-golf -D g-golf gtk --no-grafts $(guix build g-golf-gtk-4-examples)/share/doc/g-golf/examples/gtk-4/.hello-world-real [ *-real are the upstream version of the example, they should all work fine [ i wonder if the . in front of hello-world-real is a tipo (?) So when working on your own app, iiuc: guix shell g-golf -D g-golf gtk [adw] --no-grafts cd your/app-devel/path ./my-app Can you try the adwaita-1-demo guix shell g-golf -D g-golf gtk adw --no-grafts $(guix build g-golf-adw-1-examples)/share/doc/g-golf/examples/adw-1/demo/adwaita-1-demo If you are serious about developing a g-golf based app, I recommend that you look at and learn from the g-golf port of the adwaita-1-demo: its dir structure, the main script, one (adw-1-init) module imported by all, how to define your app class, using template and ui files (I write them using sxml), the style*.css and g-ressources.xml files ... I'd be happy to help, ping me here or using irc, channel #guile. David You should only worry about building your guix app wrapper once your app is well advanced and you plan to package it for guix.
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmf8LyIACgkQ83T9k6MF eteEmwgAw1b7L91D6Iteix6IE5AKT/2IcVPGmKITSWpYBZC23evDvUSv4+Zl5qtp LuXbnDCs+8FABTZ2XXqxzwbAYqhScAR4fUyyAaI3fyNrv8CYK6D1mHM/Vv+sg4rg OXmyq5JjA5uiCB301pX2AappOR1JaVl7IhPm1mkw763/eWQxNtwQjns6CQSXAsKC sOw6Xj1qxKXjS8/Uke0XDtC8pdQ7XtsEvZouLXqZbqXU62+KIi2Ke+6Dq8+zvJn7 PTdBu4cFGQEkMy006GQIfpUwAdo8sZ7ataCqIrGOpvGErs6m6O6vmQxbm8hy/Mri fkRUrFfZfBGtwaF82LnyG5cHL7/08Q== =Uj6i -----END PGP SIGNATURE-----