Re: [ns] How to add new C++ classes to NS-2 2.31?
You should make changes in some tcl files in the directory '.../tcl/lib/'. See the following link: http://icapeople.epfl.ch/widmer/uwb/ns-2/index.html In this link many changes are made to install new changes in the physical and mac layers of ns-2. Also a new propagation model (tarokh propagation) is also added. See what are changed in the directory '.../tcl/lib/' regarding tarokh propagation only (DO NOT MAKE the other changes of course). You will find the changes in patch.tcl.lib file that you can download from the link above. I hope that this will help you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ghada Al-Mashaqbeh Sent: Mittwoch, 12. September 2007 10:01 To: ns-users@ISI.EDU Subject: Re: [ns] How to add new C++ classes to NS-2 2.31? OK, after that do I need to modify any files or classes in ns2, I have added the Ricean model classes to the mobile directory using this method, but when I try to use it in my Tcl test code using the follwing code : / /** set val(prop) Propagation/Ricean ;# radio-propagation model set prop_inst [$ns_ set propInstance_] $prop_inst MaxVelocity 2.5; $prop_inst RiceanK6; $prop_inst LoadRiceFile "rice_table.txt"; / ***/ I got the follwing error: "invalid command "Propagation/Ricean" What shall I do? Thanx Samer Bali <[EMAIL PROTECTED]> wrote: You should add it to Makefile.in under OBJ_CC (as I remember). Then you run configure then make. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ghada Al-Mashaqbeh Sent: Dienstag, 11. September 2007 20:21 To: ns-users@ISI.EDU Subject: Re: [ns] How to add new C++ classes to NS-2 2.31? Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in then run configure then make in the ns2 directory? Is this method correct? Thanx Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12597152 >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12620738 Sent from the ns-users mailing list archive at Nabble.com. - Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
Re: [ns] How to add new C++ classes to NS-2 2.31?
OK, after that do I need to modify any files or classes in ns2, I have added the Ricean model classes to the mobile directory using this method, but when I try to use it in my Tcl test code using the follwing code : / /** set val(prop) Propagation/Ricean ;# radio-propagation model set prop_inst [$ns_ set propInstance_] $prop_inst MaxVelocity 2.5; $prop_inst RiceanK6; $prop_inst LoadRiceFile "rice_table.txt"; / ***/ I got the follwing error: "invalid command "Propagation/Ricean" What shall I do? Thanx Samer Bali <[EMAIL PROTECTED]> wrote: You should add it to Makefile.in under OBJ_CC (as I remember). Then you run configure then make. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ghada Al-Mashaqbeh Sent: Dienstag, 11. September 2007 20:21 To: ns-users@ISI.EDU Subject: Re: [ns] How to add new C++ classes to NS-2 2.31? Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in then run configure then make in the ns2 directory? Is this method correct? Thanx Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12597152 >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12620738 Sent from the ns-users mailing list archive at Nabble.com. - Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
Re: [ns] How to add new C++ classes to NS-2 2.31?
You should add it to Makefile.in under OBJ_CC (as I remember). Then you run configure then make. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ghada Al-Mashaqbeh Sent: Dienstag, 11. September 2007 20:21 To: ns-users@ISI.EDU Subject: Re: [ns] How to add new C++ classes to NS-2 2.31? Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in then run configure then make in the ns2 directory? Is this method correct? Thanx Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh <[EMAIL PROTECTED]> wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12597152 >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12620738 Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] How to add new C++ classes to NS-2 2.31?
Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in then run configure then make in the ns2 directory? Is this method correct? Thanx Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh <[EMAIL PROTECTED]> wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12597152 >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12620738 Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] How to add new C++ classes to NS-2 2.31?
Hi, I have did this where I have added this line to the Makefile, then I opened cygwin and enetred the ns directory where I run configure then make, the Makefile were modified by the configure command. My question, the Makefile was changed were the line which I have added have disappeared, can I follow the same procedure for future additions and modifications? Thanx Leonard Tracy <[EMAIL PROTECTED]> wrote: ricean.o is created by adding the line mobile/ricean.o to the Makefile. Leonard On 9/10/07, Ghada Al-Mashaqbeh < [EMAIL PROTECTED]> wrote: OK! how to create Ricean.o? I have told u before that when I compile it with gcc many errors appears that said many required classes (included in Ricean.h) are not found in mobile directory, how can I do that under windows (using cygwin)? Thanx. Ghada Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh <[EMAIL PROTECTED]> wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12597152 >> >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12607902 Sent from the ns-users mailing list archive at Nabble.com. - Pinpoint customers who are looking for what you sell.
Re: [ns] How to add new C++ classes to NS-2 2.31?
OK! how to create Ricean.o? I have told u before that when I compile it with gcc many errors appears that said many required classes (included in Ricean.h) are not found in mobile directory, how can I do that under windows (using cygwin)? Thanx. Ghada Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh <[EMAIL PROTECTED]> wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12597152 >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12607902 Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] How to add new C++ classes to NS-2 2.31?
You may need this page: http://www.isi.edu/nsnam/ns/tutorial/nsnew.html Is that Ricean.h and Ricean.cc? Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. Paste your error messages here if it doesn't work. On 9/11/07, Ghada Al-Mashaqbeh <[EMAIL PROTECTED]> wrote: > > > Dear all, > > I am new to NS-2, and frankly I am still in the learning phase to use it in > my Master Thesis, I am trying to include the .cc and .h classes of the > Ricean propagation model within the simulator. I am working under windows > (using Cygwin), and I have no .o file of the classes, I have put the classes > in the mobile directory in ns, but when I am trying to compile them, a list > of errors appears since many of the included classes (such as > wireless_phy.h) is not exist in mobile directory. Then how can I include > this class with ns-2? I have tried ./install (reinstall ns-2), also I have > tried to run configure then make, but nothing work, and still there is no .o > file generated nor NS-2 has added the new class. > > Please can anybody help me and give me simple instruction to that under > windows ASAP? > > Thanx > > -- > View this message in context: > http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12597152 > Sent from the ns-users mailing list archive at Nabble.com. > > -- Regards -Ye
[ns] How to add new C++ classes to NS-2 2.31?
Dear all, I am new to NS-2, and frankly I am still in the learning phase to use it in my Master Thesis, I am trying to include the .cc and .h classes of the Ricean propagation model within the simulator. I am working under windows (using Cygwin), and I have no .o file of the classes, I have put the classes in the mobile directory in ns, but when I am trying to compile them, a list of errors appears since many of the included classes (such as wireless_phy.h) is not exist in mobile directory. Then how can I include this class with ns-2? I have tried ./install (reinstall ns-2), also I have tried to run configure then make, but nothing work, and still there is no .o file generated nor NS-2 has added the new class. Please can anybody help me and give me simple instruction to that under windows ASAP? Thanx -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581.html#a12597152 Sent from the ns-users mailing list archive at Nabble.com.
[ns] How to add new C++ classes to NS-2 2.31?
Dear all, I am new to NS-2, and frankly I am still in the learning phase to use it in my Master Thesis, I am trying to include the .cc and .h classes of the Ricean propagation model within the simulator. I am working under windows (using Cygwin), and I have no .o file of the classes, I have put the classes in the mobile directory in ns, but when I am trying to compile them, a list of errors appears since many of the included classes (such as wireless_phy.h) is not exist in mobile directory. Then how can I include this class with ns-2? I have tried ./install (reinstall ns-2), also I have tried to run configure then make, but nothing work, and still there is no .o file generated nor NS-2 has added the new class. Please can anybody help me and give me simple instruction to that under windows ASAP? Thanx - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.