Re: First example of g-golf (hello world) not working

David Pirotte <[email protected]> Sat, 12 Apr 2025 18:56:51 -0300
Newsgroups gmane.lisp.guile.user
Message-ID <20250412185651.7ed375bf@tintin>
Hello Zelphir,

> I guess --no-grafts is not sufficient, and I need to use it, and
> additionally install one of the two packages you mentioned. Merely
> adding --no-grafts still results in the error:

I believe your guix shell command is incomplete.

Florian, could you tell us the exact command line steps a guix g-golf
user must accomplish to run the upstream version of an example, or
their own app as there are developing it, thanks.

> > Guix now two separate g-golf examples packages:

> > 	g-golf-gtk-4-examples
> > 	g-golf-adw-1-examples

> I installed those 2 packages and tried running like before, which
> results in a new, different error, but I am not sure what it means to
> "run from my profile bin dir", so I did not take any steps towards
> that:

Here as well, your guix shell command is incomplete (it misses gtk-4).
But I think that as you installed the above listed packages, all you
have to do is to go to 'your guix user bin dir' and run from there:

	./hello-world	[or any other example

This is because those are the wrapper version of the upstream examples.

Note that in your bin dir, they probably are symlink, the examples are
effectively installed in $(prefix)/share/doc/g-golf/examples/gtk-4

I suggest you list the content of $(prefix)/share/doc/g-golf/examples/gtk-4
and edit both the wrapper (launcher) and the updated original version
of the script, to see and learn from Florian.

You might also want to edit the (gnu packages guile-xyz) and read the
g-golf-gtk-4-examples and g-golf-adw-1-examples package definition, and
learn from those as well.

Cheers,
David
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmf64aMACgkQ83T9k6MF
etdmJAf7Bxc4rvqEgKKffIfIm943s7w2eyBRJoFtTWnFUTVB5GPlsL+7G2zNluJ3
cKE6ksBRMNH3pG4VoWIzrcstlzBsQmyqMxJCnRGw5U41q4ULB6ip1gvDA8yM1q9w
4WK6GTgDicaDLzo0bHJ6NoFdT9ZvGBh9r2u2gR6UF5yQJ86eWCLpq3+KxS0D51ZE
LXiB/4qiqUYw/UWOYxc4CBOXz0FYj4st6y3hLJy22kaMzYpLGARxHlxXGvuUrmZH
l7FfdZtWcq/IV61qA0PlgZ7YXySJnigY2nYbjZWD7NUmIxBqH0xV960pyO3cKi2O
dMR15i5KHc8/duqsn/ALMbMoxNC1IQ==
=37mH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.