unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Daniel Skinner <daniel@dasa.cc>
To: guile-user@gnu.org
Subject: what are conventions for foreign libraries via guix
Date: Mon, 27 Nov 2023 17:56:18 -0600	[thread overview]
Message-ID: <CAJ7_s+JSqCSQM36vsBkK3EHhEce4DDpdZjagipa1t2k41UzpqQ@mail.gmail.com> (raw)

Hi all,

I'm new to guile/scheme and wanted to play with ffi. I'm using guile
through guix on foreign distro and strictly only interested in libraries
installed via guix; what's the recommended way to load .so files?

For example, if I install guile and glfw via guix and attempt to use
foreign-library-function, then this fails unless I set
LD_LIBRARY_PATH=$LIBRARY_PATH where $LIBRARY_PATH was set by guix profile.

But I want to export something global for login shell which may have mixed
environment (being a foreign distro) for the sake of emacs and geiser so
was looking at GUILE_EXTENSIONS_PATH but it seemed like that's more
appropriate for per project settings that might bundle a compilable
extension?

Just wondering what people normally do as I was sort of just expecting
guile via guix to automatically find libs installed via guix.

Thanks,
Daniel


                 reply	other threads:[~2023-11-27 23:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ7_s+JSqCSQM36vsBkK3EHhEce4DDpdZjagipa1t2k41UzpqQ@mail.gmail.com \
    --to=daniel@dasa.cc \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).