抓了ns-allinone-2.29_multichan.rar下來 想把他弄到Fedora上面跑
沒想到工程比想像中的浩大 囧....
----
先解壓縮 然後搜尋檔案內容 把/home/smallko/ns-allinone-2.28/改成你自己的ns2路徑
然後再執行./install
不過中間會遇到很多錯誤訊息 (有人說是編譯器版本問題!?)
下面節錄部份解決方法 因為改的東西太多了 那就改天吧(冷)
不然就去參考這個
http://shagin45.blogspot.com/2008/02/ns2-nistmobility.html
或者是把你的錯誤訊息丟到google 應該也可以找到
----
dsr/dsragent.cc: In member function ‘void DSRAgent::handleFlowForwarding(SRPacket&, int)’:
dsr/dsragent.cc:828: error: ‘XmitFlowFailureCallback’ was not declared in this scope
dsr/dsragent.cc: In member function ‘void DSRAgent::sendOutPacketWithRoute(SRPacket&, bool, Time)’:
dsr/dsragent.cc:1385: error: ‘XmitFailureCallback’ was not declared in this scope
dsr/dsragent.cc:1386: error: ‘XmitFlowFailureCallback’ was not declared in this scope
dsr/dsragent.cc:1403: error: ‘XmitFailureCallback’ was not declared in this scope
make: *** [dsr/dsragent.o] Error 1
@line 220, add:
void XmitFlowFailureCallback(Packet *pkt, void *data);
void XmitFailureCallback(Packet *pkt, void *data);
= = = = = = = = = = = = = =
diffusion/diffusion.cc: In member function 'void DiffusionAgent::MACprepare(Packet*, nsaddr_t, int, bool)':
diffusion/diffusion.cc:429: error: 'XmitFailedCallback' was not declared in this scope
make: *** [diffusion/diffusion.o] Error 1
add:
void XmitFailedCallback(Packet *pkt, void *data);
before
void DiffusionAgent::MACprepare(Packet *pkt, nsaddr_t next_hop,
int type, bool lk_dtct)
= = = = = = = = = = = = = =
diffusion/omni_mcast.cc: In member function 'void OmniMcastAgent::MACprepare(Packet*, nsaddr_t, unsigned int, bool)':
diffusion/omni_mcast.cc:388: error: 'OmniMcastXmitFailedCallback' was not declared in this scope
make: *** [diffusion/omni_mcast.o] Error 1
@line 106, add:
void OmniMcastXmitFailedCallback(Packet *pkt, void *data);
沒有留言:
張貼留言