- 浏览: 1504462 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (419)
- XMPP (19)
- Android (180)
- Java (59)
- Network (4)
- HTML5 (13)
- Eclipse (9)
- SCM (23)
- C/C++ (4)
- UML (4)
- Libjingle (15)
- Tools&Softwares (29)
- Linphone (5)
- Linux&UNIX (6)
- Windows (18)
- Google (10)
- MISC (3)
- SIP (6)
- SQLite (5)
- Security (4)
- Opensource (29)
- Online (2)
- 文章 (3)
- MemoryLeak (10)
- Decompile (5)
- Ruby (1)
- Image (1)
- Bat (4)
- TTS&ASR (28)
- Multimedia (1)
- iOS (20)
- Asciiflow - ASCII Flow Diagram Tool.htm (1)
- Networking (1)
- DLNA&UPnP (2)
- Chrome (2)
- CI (1)
- SmartHome (0)
- CloudComputing (1)
- NodeJS (3)
- MachineLearning (2)
最新评论
-
bzhao:
点赞123!
Windows的adb shell中使用vi不乱码方法及AdbPutty -
wahahachuang8:
我觉得这种东西自己开发太麻烦了,就别自己捣鼓了,找个第三方,方 ...
HTML5 WebSocket 技术介绍 -
obehavior:
view.setOnTouchListenerview是什么
[转]android 一直在最前面的浮动窗口效果 -
wutenghua:
[转]android 一直在最前面的浮动窗口效果 -
zee3.lin:
Sorry~~
When I build "call ...
Step by Step about How to Build libjingle 0.4
http://www.techotopia.com/index.php/Installing_and_using_GNUstep_and_Objective-C_on_Windows
In addition to using Objective-C on a Mac system, it is also possible to download and install the GNUstep and Objective-C environments for Microsoft's Windows family of operating systems. In this chapter we will explore the steps involved in downloading, installing and testing both Objective-C and GNUstep on Windows.
Downloading the GNUstep Packages
The GNUstep environment is made available on Windows using a toolkit called MinGW. MinGW is an abbreviation of Minimal GNU for Windows and essentially provides a port of the GNU compiler collection, including Objective-C support, and a minimal shell environment for Windows platforms. Installation of GNUstep involves installing both MinGW and GNUstep. Both of these packages are available from the GNUstep web site at http://www.gnustep.org/experience/Windows.html .
The MinGW package is contained in the GNUstep System download and the GNUstep core is contained, unsurprisingly, in the GNUstep Core download. Both must be downloaded before proceeding with the installation.
Installing MinGW and GNUstep on Windows
Once the required packages have been downloaded, locate the GNUstep System file and launch it to initiate the installation process. To complete the installation, simply follow the prompts in the installation wizard, using the default installation settings unless you have specific requirements. In particular, should you decide to install the package in a location other than C:\GNUstep, you will need to adjust the instructions in the remainder of this chapter accordingly.
Once MinGW is installed, repeat the process for the GNUstep Core package.
Running the GNUstep Shell
To begin using Objective-C and GNUstep, start the GNUstep shell by selecting Start -> All Programs -> GNUstep -> Shell . Once loaded, the shell will appear as follows:
Testing the Installation
The shell environment is a minimalist version of the shell environment you might find on a Linux or Unix system. If you are unfamiliar with such an environment then it is unlikely you will want to perform the code editing in this window. Fortunately, it is still possible to use your favorite editor on Windows.
When the shell is first started, it places you in the home directory for the GNUstep/MinGW environment. In terms of the Windows file system, and assuming you used the default installation location for MinGW and GNUstep, this is equates to:
C:\GNUstep\home\<username>
Where <username> is the name by which you logged into the Windows system. To create a simple application, open a suitable editor (Notepad will do) and enter the following code:
#import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (@"hello world"); [pool drain]; return 0; }
Once the code has been entered, save the file in your GNUstep home directory (as outlined above) as hello.m . If you used Notepad, be sure to switch the Save as Type option to All Files so that the file is not given a .txt file name extension.
Once the code has been written and saved, it can be compiled from the GNUstep shell window by entering the following command:
$ gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Libraries hello.m -o hello -lgnustep-base -lobjc
Assuming a successful compilation, run the application as follows:
./hello.exe
When executed, the test program should produce output similar to:
2009-09-24 14:31:25.721 hello[2200] hello world
发表评论
-
Nuance - Dragon Mobile SDK - Speech Kit
2012-07-02 15:57 1415http://dragonmobile.nuancemobil ... -
iOS的开源库和开源项目
2012-06-14 10:54 1025http://www.cocoachina.com/iphon ... -
[iOS开发教程-5]Create Indexed UITableView
2012-06-13 16:31 1743http://www.iphonedevcentral.com ... -
[iOS开发教程-4]Create a UITabBarController from scratch
2012-06-13 15:20 1434http://www.iphonedevcentral.com ... -
[iOS开发教程-3]Create a Detail View Page using UIImageView, UITextView and UILabel
2012-06-13 14:11 2137http://www.iphonedevcentral.com ... -
[iOS开发教程-2]Customize that UIViewCell – Part 1: Using Interface Builder
2012-06-13 13:00 1488http://www.iphonedevcentral.com ... -
[iOS开发教程-1]Hello UITableView!
2012-06-13 11:12 2083http://www.iphonedevcentral.com ... -
Window 7主机与VMware中Mac虚拟机共享文件夹
2012-06-08 23:28 191421. 确保针对Mac虚拟机的VMware Tools的安装 ... -
VMware 8.02虚拟机安装MAC lion 10.7.3教程 附送原版提取镜像InstallESD.iso!
2012-06-08 23:14 6365http://www.winthink.net/thread- ... -
[iOS]深入浅出 iOS 之多线程 NSThread
2012-06-08 15:30 21310http://www.cocoachina.com/bbs/r ... -
Object-C中的Selector概念
2012-06-08 15:25 1103selector可以叫做选择器,其实指的就是对象的方法,也 ... -
CodeBlocks集成Objective-C
2012-06-05 23:35 1194http://www.jxva.com/?act=blog!a ... -
用ultraEdit打造自己的Objective-C IDE for Windows
2012-06-05 21:41 1488http://blog.csdn.net/tomatofly/ ... -
Windows下UltraEdit查看Objective-C代码高亮工具
2012-06-05 21:26 2497http://www.cocoachina.com/bbs/r ... -
Objective-C 编程教程(全)
2012-06-04 23:32 1284http://www.youku.com/playlist_s ... -
iPhone开发学习笔记
2012-06-04 22:15 2685http://blog.csdn.net/huanglx198 ... -
GNUStep
2012-06-04 16:45 1246http://www.gnustep.org/ T ... -
Objective C programming in Windows – GNUStep & ProjectCenter
2012-06-04 16:12 1154http://www.jaysonjc.com/program ... -
The Objective-C Programming Language
2012-06-03 19:31 1033http://developer.apple.com/libr ...
相关推荐
mingw-w64 是一个开源的 C 和 C++ 编译器,旨在帮助开发者更好地开发 Windows 应用程序。安装 mingw-w64 的步骤如下: 1. 打开 mingw-w64 官方网站,下载 mingw-w64 安装程序。 2. 安装 mingw-w64,按照提示进行...
To get started with Objective-C programming, the book provides guidance on installing and using Apple's development environment, Xcode. Xcode is a comprehensive toolset that includes everything needed...
### Objective-C for Absolute Beginners: iPhone and Mac Programming Made Easy #### Introduction This book, "Objective-C for Absolute Beginners: iPhone and Mac Programming Made Easy," is designed ...
用与解决错误: Error Code 0x800F081F when Installing .NET Framework 3.5
Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. Designed for experienced IT professionals ...
eCos RedBoot guide-A guide for installing and using RedBootdebug and bootstrap firmware.eCos操作系统redboot源码详细说明及使用移植说明
1. Open edX平台简介:文档中提到的“Installing, Configuring, and Running the Open edX Platform”是一个运行手册,该手册对如何安装、配置和运行Open edX平台提供了详尽的指导。Open edX平台支持各种在线教育...
根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...
### 标题解读:“Installing-Studio-v6-1-Plugins” 标题“Installing-Studio-v6-1-Plugins”清晰地指出了本文的主题:安装 Zend Studio 的 v6.1 版本作为插件。这暗示了该过程是在一个已经存在的 Eclipse 集成开发...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
- 如果一台计算机运行的是64位的Windows Server 2008或Windows Server 2008 R2,则可以升级到Windows Server 2012 R2,前提是使用相同的操作系统版本。 - Windows Server 2012 R2不支持以下升级路径: - 从...
根据提供的文件信息,我们可以得出《Exam 70-410 Installing and Configuring Windows Server 2012 Lab Manual》是一本针对微软认证考试70-410的专业实验手册,该手册主要围绕Windows Server 2012的安装与配置进行...