Re: Tool distribution

Richard Frith-Macdonald <[email protected]> Mon, 8 Dec 2008 09:20:23 +0000
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
On 7 Dec 2008, at 17:42, Fred Kiefer wrote:

> Timothy Larkin wrote:
>> I have a working tool which has no gui and uses no graphics. It uses
>> only functions in the standard C library and the basic GNUStep  
>> libraries.
>>
>> How can I, or even can I, package this tool so that it can be run  
>> on a
>> Linux system with no GNUstep installed? Or if that is not possible,  
>> what
>> is the minimum set of libraries I need to install on the target  
>> system
>> to get the tool to work? (I'm not even sure the target has gcc.)
>>
>
> On Windows I have tried to build a GNUstep application, not just a  
> tool,
> that would have all the needed GNUstep libraries and resources in one
> directory. What was needed for that was some fiddling with the
> GNUstep.conf file that went into the same directory. But your request
> seems to be to get one file only and have that run on a machine  
> without
> GNUstep. I think this is possible (given that you recompile all needed
> libraries statically), but will be strongly restricted in the  
> available
> functionality.

  For a completely standalone tool, one of the things you might want  
to do is to build GNUstep-base configured so that  
GNUSTEP_USER_DEFAULTS_DIR is set to ':INTERNAL:' ... which prevents  
any attempt to access the user's defaults database.
You do that by setting the value in a GNUstep.conf file, and adding '-- 
with-default-config=filename' when you configure the base library.