This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Re: guile-gtk without dlopen (HP-UX) (fwd)
- To: Marius Vollmer <mvo at zagadka dot ping dot de>
- Subject: Re: guile-gtk without dlopen (HP-UX) (fwd)
- From: Stephen Tell <tell at cs dot unc dot edu>
- Date: Tue, 9 Nov 1999 14:49:17 -0500 (EST)
- cc: Guile-Gtk List <guile-gtk at sourceware dot cygnus dot com>
On 9 Nov 1999, Marius Vollmer wrote:
> Anyway, that's the plan.
>
> > I can get "guile-gtk -s hello-world.scm" to work with my hacked
> > dynlink.scm, but not "guile -s"
>
> Hmm, didn't "guile-gtk -s" work for you, aynway? The executable
> guile-gtk should not do any dynamic linking at all, because all
> libraries are already there.
Yes, guile-gtk -s was fine for guile-only Gtk application, but for gwave,
my mixed guile/C app (that uses Gtk+ from both sides), only the hacked
dynlink.scm has worked so far - even though it too should have been fully
linked already.
I'll try debugging further, but it looks like what I might do is:
- have gwave's configure/makefile install its own guile modules into
$prefix/share/guile/app/gwave
- Have gwave.c append $prefix/share/guile to %load-path if it isn't
there already, after gh_enter and before it runs any guile code that
can load modules. This handles the case where guile and guile-gtk are
distribution-provided in /usr, and my prefix is /usr/local.
- On HP-UX only, install the hacked dynlink.scm down in
$prefix/share/guile/gwave/hpux-dynlink-hack/gtk/dynlink.scm, and add
that directory early in %load-path so the patched dynlink.scm gets used
only for gwave.
> Aha! But I really expect to be using libltdl for all this platform
> specific magic in the future. I have a patch for it somewhere...
So far as I know, libldtl works on HP-UX, so this will be great. For
obvious reasons, I'd rather work on libldtl if necessary on oddball
platforms.
Thanks for your help.
Steve
--
Steve Tell | tell@cs.unc.edu | http://www.cs.unc.edu/~tell | KF4ZPF
Research Associate, Microelectronic Systems Laboratory
Computer Science Department, UNC@Chapel Hill. W:919-962-1845