"Class "inet::NetworkBase" not found" when running simulation from shell #1122
-
I'm trying to run inet4.5/showcases/measurement/datarate from shell with the following command in Ubuntu which I grabbed from omnet IDE when it ran the showcase:
But when Qtenv starts I get the following error: <!> Class "inet::NetworkBase" 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() -- during network setup I get stuck here when trying to run simulations via the terminal, in the end, I will use Cmdenv to run several experiments. This is the output when I try to run the same command but with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To fix this: put the NED package list after the exclusions (-x) into quotes. That will prevent the shell processing it and will pass correctly as a single parameter. Or even better: type That's being said, using the ; as a separator can cause issues, so maybe it would be better to use colons for separation (even on windows). I will add an issue to keep track this. |
Beta Was this translation helpful? Give feedback.
opp_run -h classes
will not give you any INET related classes, because those are in the INET shared library (libINET.so) which must be loaded manually with the-l
switch, but your issue is not related to this. The INET library is fineopp_run
causing the missing (not loaded) class definitions.To fix this: put the NED package list after the exclusions (-x…