2013-09-26 28 views
0

我安裝了cygwin,並且通常可以通過命令行編譯項目makeEclipse + Cygwin =程序「make」未在PATH中找到

現在如何用eclipse編譯同一個項目?

它說

**** Build of configuration Default for project leptonica-1.69 **** 

**** WARNING: The "Default" Configuration may not build **** 
**** because it uses the "cdt.managedbuild.toolchain.gnu.cygwin.base" **** 
**** tool-chain that is unsupported on this system. **** 

**** Attempting to build... **** 

make all 

Cannot run program "make": Launching failed 
Error: Program "make" is not found in PATH 

,如果我嘗試編譯。

我發現沒有地方設置CDT的某個位置cygwin。當然,我不想將cygwin路徑添加到全局窗口路徑。

是否有可能只爲eclipse設置它?

回答

0

您可以在Eclipse Preferences -> C/C++ -> Build -> Environment中設置路徑(和其他變量),即添加值爲${PATH};C:\cygwin\bin的變量PATH

(編輯:刪除了我誤解了的東西的第二段)