Run Issue with Mobility Example in INET (OMNeT++)

804 views
Skip to first unread message

antonis phasouliotis

unread,
Nov 27, 2012, 8:00:59 AM11/27/12
to omn...@googlegroups.com
Hi there,

I have recently installed OMNeT++ 4.2.2 on a Windows 7 (64bit) pc and  I have also imported and built successfully the INET project.

However, when I try to run the BonnMotionMobility1 Example (run as OMNeT++ simulation the omnetpp.ini file in the mobility example), the following error is obtained and the simulation doesn't start:

<!> Error in module (cCompoundModule) MobileNetwork (id=1) during network setup: Error adding statistic 'coordX' to module MobileNetwork.host[0] (NED type: inet.examples.mobility.MobileHost): 
error in source=xCoord(mobilityPos(mobilityStateChanged)): Result filter "mobilityPos" not found -- perhaps the name is wrong, or the filter was not registered with Register_ResultFilter().

It would be really helpful to me if someone knows why this error is present.

Many thanks and Best regards,

Antonis

Rudolf Hornig

unread,
Nov 28, 2012, 6:28:58 AM11/28/12
to omn...@googlegroups.com
check the size of libinet.dll in the src directory. It should be several megabytes in size... Be sure that the compilation/linking was successful.
Rudolf

antonis phasouliotis

unread,
Nov 28, 2012, 8:45:10 AM11/28/12
to omn...@googlegroups.com
Dear Rudolf,

Thanks for your reply.

The size of the libinet.dll is only 42 KB.

What's the right way to compile/link INET with OMNeT++?

Thanks.

Antonis

Rudolf Hornig

unread,
Nov 30, 2012, 4:59:35 AM11/30/12
to omn...@googlegroups.com
This seems to be a known but unfixed bug with the linker or windows 64bit machines... The linker simply leaves out actual code from the final DLL and we don't know why. I'm also unable to reproduce it here locally, but I would LOVE to fix this.

Anyone with the similar problem have an idea why their windows machine is different than other installations? Or possibly anyone had this issue in a virtual box? I would love to get my hands on that image....

Rudolf

you may try to run OMNET in XP compatibility mode (although I've never tried it myself). 

Rudolf Hornig

unread,
Nov 30, 2012, 5:47:42 AM11/30/12
to omn...@googlegroups.com
An additional request:
Could you please zip the libinet.dll file with encryption and send it to me directly via email (rudi at omnetpp dot org).
Please don forget to specify a password otherwise the mail checker will remove it (as it is an executable file).

I would like to take alook at the DLL what is included/not included in the stub.
Rudolf

antonis phasouliotis

unread,
Nov 30, 2012, 7:36:14 AM11/30/12
to omn...@googlegroups.com
Dear Rudolf,

Here are the files you requested.
The password is antonisrudiinetomnet++

Best regards and looking forward to your reply,

Antonis
libinet.rar
libinet.zip

Rudolf Hornig

unread,
Nov 30, 2012, 8:29:22 AM11/30/12
to omn...@googlegroups.com
Hmm, this seems to be a linker problem. Perhaps you may try to download a new version of the linker. It may or may not help.

http://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/binutils-2.23.1/binutils-2.23.1-1-mingw32-bin.tar.lzma/download

copy the file into the <omnetpproot>/mingw directory and extract it.

tar --use-compress-program lzma -xf binutils-2.23.1-1-mingw32-bin.tar.lzma

clean the project and try to rebuild it.
If it helps, please let me know so we can include the new linker in OMNeT++ 4.3

Rudolf

antonis phasouliotis

unread,
Nov 30, 2012, 9:01:51 AM11/30/12
to omn...@googlegroups.com
Hi Rudolf,

I am sorry but can you tell me how to extract the binutils-2.23.1-1-mingw32-bin.tar.lzma file?
Also where shall I type the following "tar --use-compress-program lzma -xf binutils-2.23.1-1-mingw32-bin.tar.lzma"?

Best regards,

Antonis

Rudolf Hornig

unread,
Dec 1, 2012, 4:40:44 AM12/1/12
to omn...@googlegroups.com
Copy the file into the "mingw" directory

Open a MingwEnv command prompt (the one where you build omnet etc.)

change to the mingw directory

tar --use-compress-program lzma -xf binutils-2.23.1-1-mingw32-bin.tar.lzma

Rudolf

antonis phasouliotis

unread,
Dec 3, 2012, 6:17:56 AM12/3/12
to omn...@googlegroups.com
Hi Rudi,

I tried what you suggested but unfortunately I get the following errors in the OMNeT++ Console window:

Starting...

$ cd C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/samples/inet/examples/mobility
$ ../../../../bin/opp_run.exe -r 0 -n ..;../../src -l ../../src/inet test.ini

<!> Warning: opp_run: Cannot check library ../../src/inet: The specified module could not be found


<!> Error during startup: Cannot load library '../../src//libinet.dll': The operation completed successfully.
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

End.

Simulation terminated with exit code: 1
Working directory: C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/samples/inet/examples/mobility
Command line: ../../../../bin/opp_run.exe -r 0 -n ..;../../src -l ../../src/inet test.ini

Environment variables:
PATH=;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/samples/inet/src;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\msys\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\mingw\bin;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/ide/jre/bin/client;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/ide/jre/bin;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/ide/jre/lib/i386;C:\Program Files (x86)\HP SimplePass 2011\x64;C:\Program Files (x86)\HP SimplePass 2011\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\MATLAB\R2010b\runtime\win64;C:\Program Files\MATLAB\R2010b\bin;C:\Program Files\Java\jdk1.7.0_07\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\ide;
OMNETPP_IMAGE_PATH=C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\images

I checked the inet/src folder and it seems that the libinet.dll file is deleted after I clean up the project.
I hope you have an explanation for this.

Furthermore, do you suggest me to work with Windows XP or maybe Windows 7 32bit?

Thanks a lot for your help.

Regards,

Antonis

Rudolf Hornig

unread,
Dec 3, 2012, 9:38:36 AM12/3/12
to omn...@googlegroups.com


On Monday, December 3, 2012 12:17:56 PM UTC+1, antonis phasouliotis wrote:
Hi Rudi,

I tried what you suggested but unfortunately I get the following errors in the OMNeT++ Console window:

Starting...

$ cd C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/samples/inet/examples/mobility
$ ../../../../bin/opp_run.exe -r 0 -n ..;../../src -l ../../src/inet test.ini

<!> Warning: opp_run: Cannot check library ../../src/inet: The specified module could not be found


<!> Error during startup: Cannot load library '../../src//libinet.dll': The operation completed successfully.
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

End.

Simulation terminated with exit code: 1
Working directory: C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/samples/inet/examples/mobility
Command line: ../../../../bin/opp_run.exe -r 0 -n ..;../../src -l ../../src/inet test.ini

Environment variables:
PATH=;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/samples/inet/src;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\msys\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\mingw\bin;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/ide/jre/bin/client;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/ide/jre/bin;C:/Users/antonis/Downloads/omnetpp-4.2.2-src-windows/omnetpp-4.2.2/ide/jre/lib/i386;C:\Program Files (x86)\HP SimplePass 2011\x64;C:\Program Files (x86)\HP SimplePass 2011\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\MATLAB\R2010b\runtime\win64;C:\Program Files\MATLAB\R2010b\bin;C:\Program Files\Java\jdk1.7.0_07\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\bin;C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\ide;
OMNETPP_IMAGE_PATH=C:\Users\antonis\Downloads\omnetpp-4.2.2-src-windows\omnetpp-4.2.2\images

I checked the inet/src folder and it seems that the libinet.dll file is deleted after I clean up the project.
I hope you have an explanation for this.

Yes, the clean target is supposed to delete all the files the build created. You havo rebuild the whole project after you have cleared... The question whether the build process with the new linker will create also that faulty DLL (the one with the very small size).

Furthermore, do you suggest me to work with Windows XP or maybe Windows 7 32bit?

Well, of choice is available, I would suggest Linux :) but omnet works fine on XP and WIn7 32bit. It is also working on most of the Win7 64bit systems, but on some systems for whathever reason we don't know curretly the linker produces bad executables... 

Win7 also has a so called XP copatibility mode, so certain programs can run under this mode. That may also help (but I've never tried it personally)

Rudolf

antonis phasouliotis

unread,
Dec 4, 2012, 9:59:43 AM12/4/12
to omn...@googlegroups.com
Hi Rudi,

Just to let you know that I solved my problem by installing OMNeT++ and building INET on Windows 7 - 32 bit and Windows XP machines.
Everything simulates perfectly now and I am able to carry on with my tasks.

Thanks a lot for your help.

Best regards,

Antonis

--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
 
 

Rudolf Hornig

unread,
Dec 5, 2012, 4:44:15 AM12/5/12
to omn...@googlegroups.com
Ok fine. We still have to track down that issue as more and more people will start using 64bit windows and this is a rather annoying bug... Hopefully this week we will release OMNeT++ 4.3beta1 so we will see if that still has the issue...

Rudolf

Varun Agarwal

unread,
Jun 9, 2017, 1:33:10 AM6/9/17
to OMNeT++ Users
I am using Win 64 bit machine. I have installed Omnet++ 5.1 and run the samles which are working correctly. Then I have installed Inet 3.5.0 but the examples are not working. I am getting 189 warnings of the type "NED Consistency Problem". When I run adhoc, i get the following error:
"<!> Function hasVisualizer() not found (Define_NED_Function() or Define_NED_Math_Function() missing from C++ code?), at C:\omnetpp-5.1-src-windows\omnetpp-5.1\samples\inet\examples\adhoc\hostautoconf\Scenario.ned:29 -- in module (omnetpp::cModule) Scenario (id=1), during network setup".
Similarly, trying to run aodv gives the below error:
"<!> Class "inet::physicallayer::RadioMedium" 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() -- in module (omnetpp::cModule) AODVNetwork (id=1), during network setup
"
I have checked the size of libINET.dll in the inet/src folder and it is only 106 kb.
Please suggest me a solution.

Rudolf Hornig

unread,
Jun 9, 2017, 5:13:10 AM6/9/17
to OMNeT++ Users
That's definitely a problem. (I mean the size of the INET dll. It seems that it is only an empty dll and nothing is linked into it.). First you have to concentrate to build the INET model successfully. I have no idea, why the DLL is so small and without the build logs, probably nobody will be able to tell.
Reply all
Reply to author
Forward
0 new messages