[Omnetpp-l] INET Framework examples result in errors

917 views
Skip to first unread message

Mämmelä Olli

unread,
Apr 23, 2009, 7:44:37 AM4/23/09
to omne...@omnetpp.org

Hello,

I sent an email earlier but I did not get an answer yet. I am using omnet++ 4.0 and mingw on windows xp and I have the latest release of the INET Framework (I'm using the INET Fork).

I installed the INET framework exactly as told here: http://www.omnetpp.org/pmwiki/index.php?n=Main.HowToImportInet

The inet framework is located at c:/omnetpp-4.0/inet

So I compiled the framework and everything worked ok. But running the example simulations result in errors. When I try launching an INET framework example from the IDE (e.g. 802.11 Handover) and press launch there is an error:

"Error running the simulation program: couldn't execute "run": no such file or directory!"

I also tried running the simulation from the mingw shell but it did not work.

1. When i type "run" at the corresponding example simulation directory (e.g. c:/omnetpp-4.0/inet/examples/wireless/lan80211 I get the following error:

<!> Error during startup: Cannot load library '../../../src/libinet.dll' : The specified module could not be found

2. Instead of command "run" I tried "opp_run" but I also get an error from that:

<!> Error: Error loading NED sources from '.' : NED error in file 'Lan80211.ned' : declared package 'inet.examples.wireless.lan80211' does not mach expected package ' '.

3. There's a line "package inet.examples.wireless.lan80211; " in the Lan80211.ned so I try commenting it out:

The Tkenv and  the configuration option pops up and I select "Ping1", but it results again in an error:

Error in module (cCompoundModule) Lan80211 (id=1): Submodule host: cannot resolve module type 'WirelessHostSimplified' (not in the loaded NED files?), at c:\omnetpp-4.0\inet\examples\wireless\lan80211\Lan80211.ned:34

So my guess is that the example simulation cannot seem to find the approriate files needed. Is this because of the wrong installation directory?

Thank you





Rudolf Hornig

unread,
Apr 23, 2009, 8:51:56 AM4/23/09
to omne...@omnetpp.org
see below:

On Thu, Apr 23, 2009 at 1:44 PM, Mämmelä Olli <Olli.M...@vtt.fi> wrote:

Hello,

I sent an email earlier but I did not get an answer yet. I am using omnet++ 4.0 and mingw on windows xp and I have the latest release of the INET Framework (I'm using the INET Fork).

I installed the INET framework exactly as told here: http://www.omnetpp.org/pmwiki/index.php?n=Main.HowToImportInet

You don't have to follow this procedure. This is rather obsolete and as it states it is for and older version of INETMANET and for OMNET 4.0rc1. If you downloaded omnetpp 4.0 final and the lastes INET archive, you just have to import the project and build it. There should be no need for tweaking the project settings. Everythig should work automatically...

The inet framework is located at c:/omnetpp-4.0/inet

So I compiled the framework and everything worked ok. But running the example simulations result in errors. When I try launching an INET framework example from the IDE (e.g. 802.11 Handover) and press launch there is an error:

"Error running the simulation program: couldn't execute "run": no such file or directory!"

I don't know what is in your launch configuration but you should check it, or delete it and recreate it. One good way is to select the omnetpp.ini file in the corresponding project and select Run As... from the context menu.
 

I also tried running the simulation from the mingw shell but it did not work.

1. When i type "run" at the corresponding example simulation directory (e.g. c:/omnetpp-4.0/inet/examples/wireless/lan80211 I get the following error:

<!> Error during startup: Cannot load library '../../../src/libinet.dll' : The specified module could not be found

And, have you checked that libinet.dll file does exists in that place? If not, then there is something wrong with the build process. Again, everything SHOULD work out of the bixafter importing the inet project...

Rudolf
 

2. Instead of command "run" I tried "opp_run" but I also get an error from that:

<!> Error: Error loading NED sources from '.' : NED error in file 'Lan80211.ned' : declared package 'inet.examples.wireless.lan80211' does not mach expected package ' '.

3. There's a line "package inet.examples.wireless.lan80211; " in the Lan80211.ned so I try commenting it out:

The Tkenv and  the configuration option pops up and I select "Ping1", but it results again in an error:

Error in module (cCompoundModule) Lan80211 (id=1): Submodule host: cannot resolve module type 'WirelessHostSimplified' (not in the loaded NED files?), at c:\omnetpp-4.0\inet\examples\wireless\lan80211\Lan80211.ned:34

So my guess is that the example simulation cannot seem to find the approriate files needed. Is this because of the wrong installation directory?

Thank you






_______________________________________________
Omnetpp-l mailing list
Omne...@omnetpp.org
http://lists.omnetpp.org/mailman/listinfo/omnetpp-l


Mämmelä Olli

unread,
Apr 24, 2009, 5:34:50 AM4/24/09
to omne...@omnetpp.org
Hello,
 
I now followed the updated instructions: http://www.omnetpp.org/pmwiki/index.php?n=Main.HowToImportInet
The INET framework builds ok with no errors.
 
But I still get the same error when running an example simulation from the mingw shell:
 
<!> Error during startup: Cannot load library '../../../src/libinet.dll' : The specified module could not be found
 
I have checked the directory C:\omnetpp-4.0\inet\src and it has the "libinet.dll" file included in it.


From: omnetpp-...@omnetpp.org [mailto:omnetpp-...@omnetpp.org] On Behalf Of Rudolf Hornig
Sent: 23. huhtikuuta 2009 15:52
To: omne...@omnetpp.org
Subject: Re: [Omnetpp-l] INET Framework examples result in errors

Mämmelä Olli

unread,
Apr 24, 2009, 6:20:28 AM4/24/09
to omne...@omnetpp.org
In addition to the <!> Error during startup: Cannot load library '../../../src/libinet.dll' : The specified module could not be found 
message, I get this message for opp_run.exe - Unable to locate component
 
"this application has failed to start because wpcap.dll was not found. re-installing the application may fix this problem"
 
What is this wpcap.dll file?


From: Mämmelä Olli
Sent: 24. huhtikuuta 2009 12:35
To: 'omne...@omnetpp.org'
Subject: RE: [Omnetpp-l] INET Framework examples result in errors

Hello,
 
I now followed the updated instructions: http://www.omnetpp.org/pmwiki/index.php?n=Main.HowToImportInet
The INET framework builds ok with no errors.
 
But I still get the same error when running an example simulation from the mingw shell:
 
<!> Error during startup: Cannot load library '../../../src/libinet.dll' : The specified module could not be found
 
I have checked the directory C:\omnetpp-4.0\inet\src and it has the "libinet.dll" file included in it.


From: omnetpp-...@omnetpp.org [mailto:omnetpp-...@omnetpp.org] On Behalf Of Rudolf Hornig
Sent: 23. huhtikuuta 2009 15:52
To: omne...@omnetpp.org
Subject: Re: [Omnetpp-l] INET Framework examples result in errors

Mämmelä Olli

unread,
Apr 24, 2009, 7:34:18 AM4/24/09
to omne...@omnetpp.org
Hello
 
"I don't know what is in your launch configuration but you should check it, or delete it and recreate it. One good way is to select the omnetpp.ini file in the corresponding project and select Run As... from the context menu."
 
I also tried running the simulation from the IDE by selecting Run As.. Omnet++ Simulation from the corresponding omnetpp.ini but following error occurs:
 

<!> Error during startup: Cannot load library 'C:\omnetpp-4.0\inet\src\\/libinet.dll': The specified module could not be found.

Simulation terminated with exit code: 1

Command line: C:/omnetpp-4.0/inet/examples/ethernet/arptest/run.cmd -r 0 -n C:/omnetpp-4.0/inet/examples;C:/omnetpp-4.0/inet/src -l C:/omnetpp-4.0/inet/src/inet C:/omnetpp-4.0/inet/examples/ethernet/arptest/omnetpp.ini

Working directory: C:/omnetpp-4.0/inet/examples/ethernet/arptest

OMNETPP_ROOT=C:/OMNETPP-4.0

PATH=;C:/OMNETPP-4.0/INET/SRC;C:\OMNETPP-4.0\BIN;C:\OMNETPP-4.0\MSYS\BIN;C:\OMNETPP-4.0\MINGW\BIN;C:/PROGRAM FILES/JAVA/JRE1.6.0_07/BIN/CLIENT;C:/PROGRAM FILES/JAVA/JRE1.6.0_07/BIN;.;C:\OMNETPP-4.0\MSYS\LOCAL\BIN;C:\OMNETPP-4.0\MINGW\BIN;C:\OMNETPP-4.0\MSYS\BIN;C:\OMNETPP-4.0\BIN;C:\PROGRAM FILES\PC CONNECTIVITY SOLUTION\;D:\PERL\BIN\;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\PROGRAM FILES\UTIMACO\SAFEGUARD EASY\;C:\PROGRAM FILES\MATLAB\R2007A\BIN;C:\PROGRAM FILES\MATLAB\R2007A\BIN\WIN32;C:\PROGRAM FILES\MATLAB\R2006B\BIN;C:\PROGRAM FILES\MATLAB\R2006B\BIN\WIN32;C:\PROGRAM FILES\MICROSOFT SQL SERVER\90\TOOLS\BINN\;C:\PROGRAM FILES\COMMON FILES\SYMBIAN\TOOLS;C:\PROGRAM FILES\CSL ARM TOOLCHAIN\BIN;C:\PROGRAM FILES\QUICKTIME\QTSYSTEM\;C:\PROGRAM FILES\WINDOWS IMAGING\;C:\OMNETPP-4.0\BIN\;V:\SQL125\OCS-12_5\DLL;V:\SQL125\OCS-12_5\BIN;.;C:\PROGRAM FILES\SSH COMMUNICATIONS SECURITY\SSH SECURE SHELL

OMNETPP_IMAGE_PATH=C:\OMNETPP-4.0\IMAGES

And yes I have included the C:\omnetpp-4.0\bin to the system path.



From: omnetpp-...@omnetpp.org [mailto:omnetpp-...@omnetpp.org] On Behalf Of Rudolf Hornig
Sent: 23. huhtikuuta 2009 15:52
To: omne...@omnetpp.org
Subject: Re: [Omnetpp-l] INET Framework examples result in errors

Rudolf Hornig

unread,
Apr 24, 2009, 6:33:59 PM4/24/09
to omne...@omnetpp.org
Hmm. wpcap is used for realtime packet capturing on network interfaces, but is is an optional component (see winpcap.org)

You can either install the winpcap dll from the above site OR disable it:
go to your omnetpp root directory and open configure.user

Add a line at the end:
PCAP_LIBS = -loff

now run ./configure

now check the newly created Makefile.inc (it should contain a line: HAVE_PCAP = no)

go to your inet directory
clean your INET build (delete all objects/executables (make clean))

rebuild INET
now INET should not depend on wpcap.

Rudolf

Rudolf Hornig

unread,
Apr 25, 2009, 4:02:29 AM4/25/09
to omne...@omnetpp.org
see below...

On Fri, Apr 24, 2009 at 1:34 PM, Mämmelä Olli <Olli.M...@vtt.fi> wrote:
Hello
 
"I don't know what is in your launch configuration but you should check it, or delete it and recreate it. One good way is to select the omnetpp.ini file in the corresponding project and select Run As... from the context menu."
 
I also tried running the simulation from the IDE by selecting Run As.. Omnet++ Simulation from the corresponding omnetpp.ini but following error occurs:
 

<!> Error during startup: Cannot load library 'C:\omnetpp-4.0\inet\src\\/libinet.dll': The specified module could not be found.

Simulation terminated with exit code: 1

Command line: C:/omnetpp-4.0/inet/examples/ethernet/arptest/run.cmd -r 0 -n C:/omnetpp-4.0/inet/examples;C:/omnetpp-4.0/inet/src -l C:/omnetpp-4.0/inet/src/inet C:/omnetpp-4.0/inet/examples/ethernet/arptest/omnetpp.ini


This is not good!!! you are starting the run.cmd file (I guess you have explicitly specified it in the launch config). If you are trying to run a model which is built as a shared library, you MUST select opp_run in the launch config.

Also if you are running form command line (MINGW prompt) you should use the run file and not run.cmd
i.e. go to the directory and type ./run

Rudolf

ps: you can also delete the launch config for the ARP example, then clik on the omnetpp.ini file in the ARP directory and click the run button (green arrow), the rest of the lauch config should be correctly created for you

Mämmelä Olli

unread,
Apr 27, 2009, 1:19:23 AM4/27/09
to omne...@omnetpp.org
Hi,
 
It seems that installing winpcap helped to solve the problem. Thank you very much for your help!


From: omnetpp-...@omnetpp.org [mailto:omnetpp-...@omnetpp.org] On Behalf Of Rudolf Hornig
Sent: 25. huhtikuuta 2009 1:34
Reply all
Reply to author
Forward
0 new messages