2012-01-11 20 views
1

我按照GNUStep網站上的指示逐字。這是我的make文件。使用GNUStep編譯應用程序包裝

include $(GNUSTEP_MAKEFILES)/common.make 

APP_NAME = FirstApp 

FirstApp_OBJC_FILES = main.m \ 
MyController.m 

FirstApp_MAIN_MODEL_FILE = FirstApp.gorm 

FirstApp_RESOURCE_FILES = FirstApp.gorm 

include $(GNUSTEP_MAKEFILES)/application.make 

下面是目錄中的內容(注意的是,在本教程中沒有創建一個main.m文件中提到,我以爲這是某種方式自動生成。如果這是在教程編寫者部分遺漏,請讓我知道。還有什麼應該main.m文件中包含。

FirstApp.gorm GNUmakefile MyController.h MyController.m MyController.m~ 

我切換到該目錄,並運行make編譯,這是我收到的輸出。

This is gnustep-make 2.6.1. Type 'make print-gnustep-make-help' for help. 
Making all for app FirstApp... 
Creating FirstApp.app/.... 
make[3]: *** No rule to make target `obj/FirstApp.obj/main.m.o', needed by `FirstApp.app/./FirstApp'. Stop. 
make[2]: *** [internal-app-run-compile-submake] Error 2 
make[1]: *** [FirstApp.all.app.variables] Error 2 
make: *** [internal-all] Error 2 

現在我可以看到,這與main.m文件有關,但是從輸出結果來看,我不確定該從哪裏開始。任何幫助將不勝感激,因爲我是GNUstep的新手。在使用gorm時,我可以錯誤地刪除它的創建嗎?

回答

相關問題