在eclispe平臺中不能夠編譯CDT源代碼的問題

一、前期準備:

1、java的JRE,並設置了相應的環境變量;

2、安裝了ant工具,unzip和zip工具。

二、描述:

我通過用eclipse IDE 3.1.2版本的cvs工具下載了CDT的源代碼(版本應該是最新的啦),但是,用ant運行的時候卻出現以下問題:

Buildfile: D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/build.xml
init:
unzip:
unpack:
unpackzip:
    [unzip] Expanding: D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/eclipseDist undefined.zip into D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/results

BUILD FAILED
D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/build.xml:83: The following error occurred while executing this line:
D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/build.xml:132: The following error occurred while executing this line:
D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/build.xml:123: Error while expanding D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/eclipseDist undefined.zip

Total time: 890 milliseconds
 

當我講build.xml中123行代碼註釋後,如下

 <target name="unpackzip" if="onWindows">
  <!--unzip src="${srcPrefix}.zip" dest="${dest}"/-->
 </target>

重新編譯後卻又發現出現以下錯誤:

Buildfile: D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/build.xml
init:
unzip:
unpack:
unpackzip:
unpacktar:
zips:

BUILD FAILED
D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/build.xml:90: Basedir D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/${eclipse.home}/plugins/org.eclipse.pde.build/scripts does not exist

Total time: 672 milliseconds

這個錯誤我最不能夠理解的,因爲

eclipse.home=D:/eclipse就是我的eclipse的安裝目錄,而

${eclipse.home}/plugins/org.eclipse.pde.build/scripts

這個文件又是存在的。這和Basedir沒有關係哈,爲什麼錯誤提示中卻出現Basedir D:/eclipse/workspace/org.eclipse.cdt-releng/org.eclipse.cdt.releng/如此錯誤哈。

另外,通過命令行方式和將CDT源代碼拷貝到linux下編譯得到的錯誤類似。

敬請各位大俠指教,到底怎麼樣才能夠編譯CDT的源代碼呢。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章