gnustep-dev
[Top][All Lists]
Advanced

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

Re: Build Process using MingW32


From: Derek Zhou
Subject: Re: Build Process using MingW32
Date: 07 Feb 2006 11:39:42 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I tried to install base-1.11.2 on mingw following the instructions
mentioned in the post above, but there are a few problems I
encountered.   
1, compile error for NSProcessInfo. The function _gnu_process_args
references static varible not yet defined. A patch is attached.
2, complaining of GNUSTEP_CONFIG_FILE value
('/etc/GNUstep/GNUstep.conf') not an absolute path. Since I am on
mingw, my conf file is not '/etc/GNUstep/GNUstep.conf' but
'/c/GNUstep/GNUstep.conf-dev'. However, gnustep does not honor the env
variable $GNUSTEP_CONFIG_FILE and tried to used a hardcoded path
instead. I think this is by design, because OPTION_NO_ENVIRONMENT is
set to 1 in config.h. On my linux box my config file is not at the
hardcoded path too; but the non-existing path
'/etc/GNUstep/GNUstep.conf' is at least absolute, and NSPathUtilities
pick up the pathes from the config.h correctly. On a related note,
hardcoded conf path make it really hard to install custom version of
gnustep in the user's home directory. My linux box do not have a conf
file in the '/etc' dir, otherwise my gnustep setup could be screw up. 
3, complaining of 'No language locale found'. I have no idea how
locale works in Windows.
Do I need to use svn version instead the released base 1.11.2? I am a
little intimidated by using development version on a platform I am not
familiar with. 
Derek  

Index: gnustep-base-1.11.2/Source/NSProcessInfo.m
===================================================================
--- gnustep-base-1.11.2.orig/Source/NSProcessInfo.m     2005-12-05 
00:37:16.000000000 -0800
+++ gnustep-base-1.11.2/Source/NSProcessInfo.m  2006-02-07 11:02:08.000000000 
-0800
@@ -186,6 +186,9 @@
 // Array of debug levels set.
 static NSMutableSet    *_debug_set = nil;
 
+static BOOL    debugTemporarilyDisabled = NO;
+static BOOL    fallbackInitialisation = NO;
+
 /*************************************************************************
  *** Implementing the gnustep_base_user_main function
  *************************************************************************/
@@ -1057,9 +1060,6 @@
  */
 @implementation        NSProcessInfo (GNUstep)
 
-static BOOL    debugTemporarilyDisabled = NO;
-static BOOL    fallbackInitialisation = NO;
-
 /**
  * Fallback method. The developer must call this method to initialize
  * the NSProcessInfo system if none of the system-specific hacks to




reply via email to

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