discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundle installation


From: Nicola Pero
Subject: Re: Bundle installation
Date: Thu, 18 Apr 2002 23:16:35 +0100 (BST)

> > > It *should* be a SMOP for -make to transform a "xxx_FRAMEWORKS" to a
> > > group of -I{s,n,l}/Library/Frameworks/FRAMEWORK.framework/Headers
> > > (instead of symlinking it into the main Headers directory).
> > >
> > > Separately, xxx_FRAMEWORKS_LINKED should probably transform into
> > > -L{s,n,l}/Library/Frameworks/FRAMEWORK.framework/Versions/Current
> > > -lFRAMEWORK instead of the install symlinking into
> > > [whatever]/Libraries
> > 
> > How would you run such a program ?
> > 
> > When you run the program, the dynamic linker needs to find the libraries
> > you linked against.
> > 
> > Since {s,n,l,u}/Library/Frameworks/FRAMEWORK.framework/Versions/Current
> > is not in the dynamic linker path, the libraries will never be found and
> > your program will compile, but it will never run.
> 
> Of course, it wouldn't run anyway, since apps can't be linked against
> frameworks with GNUstep (only the .so is symlinked into the libraries dir, 
> it seems). :/

If you are silently reporting a bug, please provide full details! :-)

Otherwise - the answer is that you *can* link against a framework in
GNUstep - you link against it as if it were a library and it is supposed
to work (it worked last time I tried, and it wasn't much ago).  If the
question is, how the framework finds its own resource bundle, well the
framework/gnustep-base contains code/hacks which can find the framework
bundle (correct version!) on the file system.

This is the original idea/design by Mirko & co and well after all - of all
possible hacks to have frameworks work - it seems to work well and still
be reasonably simple and efficient at run-time.


> Isn't library_paths.openapp supposed to help with this?

Good point - yes, I think so - but it's only for applications - it doesn't
work with command line tools - command line tools run directly without
scripts.

Actually, I wish we could run applications without too much preliminary
scripts too ... so that they would start up much faster.  It's a bit
disappointing having to wait for applications to start up ... on slow
systems you have to wait a lot.  It gives the impression that gnustep is
much slower than it actually is ...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]