I have always wanted to learn about IOS Mobile Phone development. Today I am involved in this field. Well, start with the basics -- Build the development environment.
System: Ubuntu 12.04 LTS 64-bit
Environment setup steps:
1. Install the Compiler
sudo apt-get install gnustep*
2. Configure Environment Variables
# set GNUstepGNUSTEP_ROOT=/usr/share/GNUstep/Makefilesexport GNUSTEP_ROOTsource /usr/share/GNUstep/Makefiles/GNUstep.sh
3. Compile HelloWorld test and installation environment hello. m
#import
int main(int argc , const char * argv[]){ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Hello World! \n"); [pool drain]; return 0;}
4. Compile the GNUMakefile file (in the same directory as the hello. m file)
include $(GNUSTEP_ROOT)/common.makeTOOL_NAME = HelloWorldHelloWorld_OBJC_FILES = hello.minclude $(GNUSTEP_ROOT)/tool.make
Remember that the settings in GNUSTEP_ROOT and environment variables are consistent.
Make
There is an executable file HelloWorld In the obj directory and the file output is:
./obj/HelloWorld2014-05-04 07:07:35.340 HelloWorld[15727] Hello World!