Click here to load reader
Upload
amit-saxena
View
25
Download
0
Embed Size (px)
Citation preview
OMNet++ 安裝步驟:
Supported Platforms
OMNeT++ has been tested and is supported on the following operating systems:
• Windows 7, Vista, XP
• Mac OS X 10.5 and 10.6
• Linux distributions covered in this Installation Guide
The Simulation IDE can be used on the following platforms:
• Linux x86 (32-bit / 64-bit)
• Windows 7, Vista, XP (32-bit)
• Mac OS X 10.5 and 10.6 (32-bit)
前往 http://www.omnetpp.org/ 下載最新版的OMNet ++
下載完成後解壓縮檔案到 C:\目錄底下,例如:C:\omnetpp-4.1
到解壓的目錄下點開
下載這個
點開後會看到如下視窗:
分別在命令列上輸入./configure
./make clean (用於重新編譯上,此步驟可不理會)
./make (這個步驟會執行相當久,耐心等待)
注意:configure之後會出現Good的結果,若沒有出現則建議重新下載一次檔案
make完成以後可以輸入 omnetpp來執行視窗化介面開啟時要決定workspace (也就是建檔時,檔案預設放置的位置)
先使用預設值,直接點選OK
注意:使用前要先注意是否安裝(JRE),若沒有安裝,可至 sun底下下載 http://
www.java.com
測試 sample檔:初次使用應該會看到如下介面:
點選後在左方的 Project Explore中選擇任意一個專案,這裡用Aloha來做測試在Aloha的圖示上點選右鍵:Open Project
Ctrl+F11觀看執行結果
另外一個方法就是在MINGW下執行: 利用 cd的指令找到 sample目錄,進入專案後輸入(./名稱.exe)執行例如:cd samples/Aloha/
./aloha.exe
點選這個
點選 run看結果