I am trying to run omnet via terminal in order to develop automatic simulations, but i can not. When i use the IDE, everything works fine but via terminal i always receive the same message "<!> Error in module (cCompoundModule) DarpTestNet (id=1) during network setup: Class "ChannelControl" 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()"
I was looking for a solution and most of them are focused on the omnetpp version. I am using omnetpp-4.4.1 with inetmanet-2.0 under Xubuntu 14.04-64 bits. I am using an omnetpp.ini file with only the general configuration.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
You should now probably be running the simulation under gdb or another
debugger. The simulation kernel will now raise a SIGABRT signal which will
get you into the debugger. If you are not running under a debugger, you can
still use the core dump for post-mortem debugging. Once in the debugger,
view the call stack (in gdb: "bt" command) to see the context of the
runtime error.
<!> Error in module (cCompoundModule) DarpTestNet (id=1) during network setup: Class "ChannelControl" 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().
TRAPPING on the exception above, due to a debug-on-errors=true configuration option. Is your debugger ready?
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff6f8d482 in cRuntimeError::breakIntoDebuggerIfRequested (this=0x18741f0) at cexception.cc:296
296 DEBUG_TRAP;
(gdb) bt
#0 0x00007ffff6f8d482 in cRuntimeError::breakIntoDebuggerIfRequested (this=0x18741f0) at cexception.cc:296
#1 0x00007ffff6f8d16a in cRuntimeError::cRuntimeError (this=0x18741f0,
msgformat=0x7ffff705a098 "Class \"%s\" 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()") at cexception.cc:242
#2 0x00007ffff6f62126 in cObjectFactory::get (classname=0x1847c28 "ChannelControl") at cobjectfactory.cc:55
#3 0x00007ffff6f6221e in cObjectFactory::createOne (classname=0x1847c28 "ChannelControl") at cobjectfactory.cc:68
#4 0x00007ffff6f71471 in cModuleType::instantiateModuleClass (this=0x18490a0, classname=0x1847c28 "ChannelControl") at ccomponenttype.cc:359
#5 0x00007ffff703aa02 in cDynamicModuleType::createModuleObject (this=0x18490a0) at netbuilder/cdynamicmoduletype.cc:69
#6 0x00007ffff6f71169 in cModuleType::create (this=0x18490a0, modname=0xe2db08 "channelControl", parentmod=0x186b720, vectorsize=-1, index=0) at ccomponenttype.cc:298
#7 0x00007ffff6f70fdb in cModuleType::create (this=0x18490a0, modname=0xe2db08 "channelControl", parentmod=0x186b720) at ccomponenttype.cc:270
#8 0x00007ffff703efde in cNEDNetworkBuilder::addSubmodule (this=0x7fffffffd360, modp=0x186b720, submod=0xe2d9d0) at netbuilder/cnednetworkbuilder.cc:792
#9 0x00007ffff703d272 in cNEDNetworkBuilder::addSubmodulesAndConnections (this=0x7fffffffd360, modp=0x186b720) at netbuilder/cnednetworkbuilder.cc:496
#10 0x00007ffff703d20f in cNEDNetworkBuilder::buildRecursively (this=0x7fffffffd360, modp=0x186b720, decl=0x17f16f0) at netbuilder/cnednetworkbuilder.cc:488
#11 0x00007ffff703d076 in cNEDNetworkBuilder::buildInside (this=0x7fffffffd360, modp=0x186b720, decl=0x17f16f0) at netbuilder/cnednetworkbuilder.cc:461
#12 0x00007ffff703ab81 in cDynamicModuleType::buildInside (this=0x17f18e0, module=0x186b720) at netbuilder/cdynamicmoduletype.cc:87
#13 0x00007ffff6f79e31 in cCompoundModule::doBuildInside (this=0x186b720) at ccompoundmodule.cc:50
#14 0x00007ffff6fa92d8 in cModule::buildInside (this=0x186b720) at cmodule.cc:1161
#15 0x00007ffff6fccd9e in cSimulation::setupNetwork (this=0x6663b0, network=0x17f18e0) at csimulation.cc:351
#16 0x00007ffff783bee4 in EnvirBase::setupNetwork (this=0x666100, network=0x17f18e0) at envirbase.cc:839
#17 0x00007ffff7300efb in Cmdenv::run (this=0x666100) at cmdenv.cc:262
#18 0x00007ffff78380e5 in EnvirBase::run (this=0x666100, argc=5, argv=0x7fffffffdb08, configobject=0x634790) at envirbase.cc:261
#19 0x00007ffff78352c0 in setupUserInterface (argc=5, argv=0x7fffffffdb08) at startup.cc:239
#20 0x00007ffff783625f in evMain (argc=5, argv=0x7fffffffdb08) at evmain.cc:38
#21 0x0000000000401c2d in main (argc=5, argv=0x7fffffffdb08) at opp_run.cc:294
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Any help would be very appreciated.