Search code examples
omnet++veins

How to launch artery example without graphical user interface


I have a question about artery (the veins extension):

If you launch the example with the command cmake --build build --target run_example the framework will launch omnet++ for graphical debugging.

Is it possible to run this example without a graphical user interface?


Solution

  • Whether the GUI is started or not depends on how you have configured OMNeT++. Configuring it with Tkenv or Qtenv starts the GUI and configuring it with Cmdenv does not. If you want to start batched simulation runs for parameter analysis then this is only possible from the command line version.

    You can reconfigure OMNeT++ by setting the parameters WITH_TKENV and WITH_QTENV in the configure.user file to no and running ./configure followed by make cleanall and make.

    When using the command line, selecting the scenario to run can be done by going to your build directory (probably build/) executing ccmake . and setting parameter RUN_FLAGS to -c <config_name> (e.g. -c My_First_Config).