Cent OS Objective-C:GCC+GNUstep配置

1730 ワード

http://www.techotopia.com/index.php/Building_and_Installing_GNUstep_うむLinuxhttp://blog.csdn.net/reddream228/article/details/6588032 上の二つは全部できます。私は第一編に基づいて来ましたが、その間に問題がありました。
最初のエラー:
E127 Eror No.X 11 libriries/headers were found forcomppiling GNUstep GUI.You may have X 11 installd、but not the developerpackags、which arare required forcopipipipipipiling anythihisisisisisisisisisisisisisisies X.If theeeyou thethestststststststinininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininininagagagagagagagsystem.
は、該当するインストールパッケージが不足しています。
http://pkgs.info/ つはlinuxがカバンをインストールするウェブサイトを調べることができます。yum install libXt-devel
次に足りないもの:
yum install gnutls-devel yum install libicu-devel yum install libjpeg-devel
インストール成功後のヒント:
Now run the GNUstep initialization script(put this in your.bashrc or other type of startup script).Note the.'t the begining of the line./usr/GNUstep/System/Library/Makeeps/fipt/Makeep
Now you can install some appications and start using GNUstep Look for a few appication in in in the AppSources directory.The typical way to install is:tar-zxf MyAppliation.tar.gz MyApple Store mapication
The n start the application:openapp MyApplication.app
しかし、コンパイルする時はずっと違っています。長い間苦労して、初めてのインストール説明の中のパスが間違っていました。なぜなら、
gcc gnustep-config --objc-flags-L/usr/GNUstep/System/Library/Libries-lgnustep-base hello.m-o hello
バージョンが違っていることもあります。私がインストールした最新の0.30
以下のコマンドもコンパイルできます。
gcc-o hellowworld hellowworld.m-I/GNUstep/System/Library/Headers-fconstant-string-class=NSContString-L/GNUstep/System/Library/Libjc-lgnustep-base
前はwindowsでずっとコンパイルして通っていませんでしたが、パスが間違っています。