Starting...
cd /Users/.../workspace/mysim
$ mysim -r 0 -u Cmdenv -c General -n simulations:src:../inet/examples:../inet/src -l ../inet/src/inet simulations/omnetpp.ini
OMNeT++ Discrete Event Simulation (C) 1992-2011 Andras Varga, OpenSim Ltd.
Version: 4.2.2, build: 120327-7947143, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Cmdenv...
Loading NED files from simulations: 2
Loading NED files from src: 48
Loading NED files from ../inet/examples: 59
Loading NED files from ../inet/src: 183
Preparing for running configuration General, run #0...
Scenario: $k=4, $cl=10, $httpport=80, $ftpport=21, $repetition=0
Assigned runID=General-0-20120609-11:42:10-24267
Setting up network `mysim'...
<!> Error in module (cCompoundModule) mysim.pods[0].racks[0] (id=12) during network setup: Class "EdgeIPConfig" not found -- perhaps its code was not linked in, or the class wasn't registered with Register_Class(), or in the case of modules and channels, with Define_Module()/Define_Channel().
End.
Simulation terminated with exit code: 1
Working directory: /Users/.../workspace/mysim
Command line: mysim -r 0 -u Cmdenv -c General -n simulations:src:../inet/examples:../inet/src -l ../inet/src/inet simulations/omnetpp.ini
...
Hello,I created my simulation with the IDE and tested it there but now I need to change into the Terminal to see if it performs better and to run it on a couple servers.I'm confused by the manual chapter 8 - Building simulation program and chapter 10 - NEDPATH. I have no clue about C++ and including libraries and linking stuff. I just used the IDE until now.After reading chapter 8 I find no starting point how to set up opp_makemake.But before that, is it possible to use the same codefiles I use with the IDE? Because the IDE creates Makefiles and I have to do that with the Terminal too.
Some words to my directory structure. inet and my source code are in the same directory, as it uses the workspace from the IDE, i.e., my folders look like this../workspace/inet../workspace/mysim/simulations../workspace/mysim/srcI have several folders under ../workspace/mysim/src to organize my code.As far as I know from the makefiles in the IDE, the opp_makemake commands look like this:In src folder and simulations folder:opp_makemake -f --deep -I../../inet/src/networklayer/ipv4 -I../../inet/src/networklayer/common -I../../inet/src/networklayer/rsvp_te -I../../inet/src/networklayer/icmpv6 -I../../inet/src/transport/tcp -I../../inet/src/base -I../../inet/src/util/headerserializers -I../../inet/src/networklayer/contract -I../../inet/src/util -I../../inet/src/transport/contract -I../../inet/src/linklayer/mfcore -I../../inet/src/networklayer/ipv6 -I../../inet/src/transport/sctp -I../../inet/src/world -I../../inet/src/applications/pingapp -I../../inet/src/linklayer/contract -I../../inet/src/networklayer/arp -I../../inet/src/transport/udp -I../../inet/src/applications/tcpapp -L../../inet/out/$(CONFIGNAME)/src -linet -KINET_PROJ=../../inetin workspace/inet:opp_makemake -f --deep --make-so -o inet -O outin mysim:opp_makemake -fI started with the one for INET (called from ../workspace/inet) and after calling make, I get several errors which is not the case when I use the IDE.
After playing around with some opp_makemake commands yesterday without using the opp_makemake commands from the IDE I had several missing files. I think this happened because I didn't include anything.Apart from that I defined the NEDPATH, but the chapter in the documentation isn't very helpful.It looks like this:export NEDPATH=/Users/.../workspace/inet/src\;/Users/.../workspace/mysim/src\;/Users/.../workspace/mysim/simulations(the ... are replaced by the whole path but I don't want to show it here)Well, to repeat my questions:1. Do I need a different directory for INET and my source code to run it with the terminal?
2. How do I use opp_makemake? What needs to be included, in which order do I need to make it.
3. Is the NEDPATH set correctly?
4. What else do I have to pay attention to? Is there any further reading or better examples? Couldn't find anything useful in the documentation and in this group, i.e., a full tutorial.I appreciate every helpful advise :-)