GNUstep - heldersrvio/PureDarwin GitHub Wiki
GNUstep
GNUstep is a cross-platform environment that provides partially Cocoa-compatible frameworks. This page is a work in progress and is currently just a placeholder and space for collecting all things related to GNUstep.
Contents
About GNUstep
GNUstep is a cross-platform environment loosely compatible with Cocoa. It is available for Linux, for example, and also for PureDarwin (via MacPorts). By the way, WindowMaker and GNUstep are different things and are often confused by people.
Building GNUstep for PureDarwin
Follow the instructions on the MacPorts page (important) and https://trac.macports.org/ticket/14176, https://trac.macports.org/ticket/16425, then do
sudo /opt/local/bin/port archive gnustep +puredarwin
(This is a work in progress.)
Compiling a "Cocoa" hello world on Ubuntu
apt-get install gnustep build-essential libfoundation1.0-dev gnustep-devel gnustep-make libgnustep-base-dev gobjc # maybe too much
source.m
#import <Foundation/Foundation.h>
int
main (void)
{
NSLog (@"Executing");
return 0;
}
GNUmakefile
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = LogTest
LogTest_OBJC_FILES = source.m
include $(GNUSTEP_MAKEFILES)/tool.make
Compile
export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles # needed?
. /usr/share/GNUstep/Makefiles/GNUstep.sh
make
obj/LogTest # runs
make clean
make