Packaging inet framework with Omnet++ for students

763 views
Skip to first unread message

Siamak Sarmady

unread,
Feb 6, 2016, 3:50:11 PM2/6/16
to OMNeT++ Users
Hello,

I want to give the Omnet++ (4.6 or 5) package along with "inet framework" to my students to do a simulation project for the communication networks course (I used to do this with ns2 until last semester).

The problem is that most of the students do not have access to cheap internet (they have quotas in campus and dorms).

- Is it possible to give them the inet framework zip file and they can install it manually? (I guess it is possible to import it into the workspace)?

- It is more ideal if I can put it inside the Omnet++ zip file (e.g. "omnetpp-5.0b3-src-windows.zip"), so that they can just unzip, compile and use.

I'll appreciate your suggestions.

Rudolf Hornig

unread,
Feb 8, 2016, 4:37:55 AM2/8/16
to OMNeT++ Users


On Saturday, 6 February 2016 21:50:11 UTC+1, Siamak Sarmady wrote:
Hello,

I want to give the Omnet++ (4.6 or 5) package along with "inet framework" to my students to do a simulation project for the communication networks course (I used to do this with ns2 until last semester).

The problem is that most of the students do not have access to cheap internet (they have quotas in campus and dorms).

- Is it possible to give them the inet framework zip file and they can install it manually? (I guess it is possible to import it into the workspace)?
Sure, they are just ZIP files. It does not matter how they got it...
 

- It is more ideal if I can put it inside the Omnet++ zip file (e.g. "omnetpp-5.0b3-src-windows.zip"), so that they can just unzip, compile and use.

That's also an option. Unzip omnetpp, then go to the samples folder and unzip the INET archive there (then delete the ZIP file so it won't be include two times). If memory serves, the IDE will import all projects from the samples folder automatically on the first start so they just have to run
./configure then make and finally build INET too.

Siamak Sarmady

unread,
Feb 8, 2016, 11:52:46 AM2/8/16
to OMNeT++ Users
Rudolf, Hi

Thank you very much for your help.

1- I downloaded and extracted the inet in samples directory of Omnet (extracted source of omnet). I am planning to zip the clean (before make) directory and pass it to students using USB thumb drive. That's because when you configure and make the package it becomes dependent on the location of omnet of the PC used for make.

2- I tried to see whether the inet inside samples would do the trick. I configured and ran make. Then I opened IDE and again the popup warns that the workspace is empty and whether I want to import samples and "download and install" inet. When I say yes, it tries to download the inet! (I expected it to see the inet inside the samples directory).

3- Now comes the very very very annoying section. In almost every university (in at least two countries) I thaught and on almost every ISP I used the Omnet.org website blocks the connections and you should answer 2-3 captchas to enter the website.

So, when the IDE tries to download the inet these errors are shown:

Cannot download project description from http://omnetpp.org/download/contrib/descriptors/omnetpp-5.0/inet.xml
Server returned HTTP response code: 403 for URL: http://omnetpp.org/download/contrib/descriptors/omnetpp-5.0/inet.xml

So, what I ideally want is that the students unzip a package, probably configure and make. and then when they enter the IDE, they are not asked for download of inet (and perhaps import of samples).

Regards,
Mac

Rudolf Hornig

unread,
Feb 8, 2016, 12:28:22 PM2/8/16
to OMNeT++ Users
Download omnet and inet. Extract them as you have suggested.

- Now configure and then build OMNET.

- Start the IDE.

- Skip installing INET, but accept to import the samples.

- Now omnet should see/import INET too (among the other omnet samples).

- Close the what's new view. The one that checks for the new omnet version.

- Configure the IDE as you would like to present to the students.

- Exit the ide.

- In the omnetpp root dir: "make cleanall" - that will delete all executables.

- Delete also Makefile.inc (so students will be forced to run "./configure" and then build their own version.

- Zip the whole OMNETPP install (including INET and the already configured IDE)

- test it
Reply all
Reply to author
Forward
0 new messages