Build error in INET Project

1,287 views
Skip to first unread message

hrades...@mail.juit.ac.in

unread,
Jul 10, 2017, 12:48:33 AM7/10/17
to OMNeT++ Users
Dear Researcher,

                      When i Build INET project then found some error given below, Please gave me solution for removing such errors.

Thanks in advance. 





10:10:25 **** Incremental Build of configuration gcc-debug for project inet ****
make MODE=debug -j4 all 
cd src && /usr/bin/make
make[1]: Entering directory '/c/Users/Hradesh/Desktop/inet/src'
*** COMPILING with:
g++ -c -std=c++11 -g -Wall -MMD -MP -MF .d    -isystem /usr/include -isystem /mingw64/include -fno-stack-protector  -DXMLPARSER=libxml -DPREFER_QTENV -DWITH_QTENV -DWITH_TKENV -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_OSG -DWITH_OSGEARTH -DINET_EXPORT -Wno-overloaded-virtual -include inet/common/precompiled_debug.h  -DINET_EXPORT -I. -I/c/omnetpp-5.1.1/include
*** LINKING with:
g++ -shared  -o ../out/gcc-debug/src/libINET.dll -Wl,--no-as-needed -Wl,--whole-archive  -lws2_32 -Wl,--no-whole-archive -loppenvird -loppsimd -lstdc++  -lOpenThreads -losg -losgText -losgDB -losgEarth -losgEarthUtil -Wl,-rpath,/c/omnetpp-5.1.1/lib -Wl,-rpath,/c/omnetpp-5.1.1/tools/win64/lib -Wl,-rpath,. -L/usr/bin -L/usr/lib -L/mingw64/lib -shared-libgcc -L/c/omnetpp-5.1.1/lib
Building...
MSGC: inet/applications/base/ApplicationPacket.msg
MSGC: inet/applications/dhcp/DHCPMessage.msg
MSGC: inet/applications/ethernet/EtherApp.msg
MSGC: inet/applications/httptools/common/HttpEventMessages.msg
make[1]: *** [Makefile:1319: inet/applications/base/ApplicationPacket_m.h] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1319: inet/applications/dhcp/DHCPMessage_m.h] Error 127
make[1]: *** [Makefile:1319: inet/applications/ethernet/EtherApp_m.h] Error 127
make[1]: *** [Makefile:1319: inet/applications/httptools/common/HttpEventMessages_m.h] Error 127
make[1]: Leaving directory '/c/Users/Hradesh/Desktop/inet/src'
make: *** [Makefile:6: all] Error 2

10:10:29 Build Finished (took 3s.933ms)

Michael Kirsche

unread,
Jul 10, 2017, 9:56:07 AM7/10/17
to OMNeT++ Users
I've come across this error while using Clang instead of GCC, it helped to build the message files and then run the normal compilation process. Simply go to the command shell (mingwenv.cmd), enter the folder of your INET src directory and use 'make msgheaders' to compile the message files. Sometimes after the first run, you can start the INET compilation and it will still produce errors that not all message headers are correctly compiled. Then you have to run the make msgheaders command a second time.

You can also try out the preview version of OMNeT 5.2 to see if the error still occurs. Be aware that you need to use the latest INET version from the Github master branch with the 5.2 preview version.

Hradesh Kumar

unread,
Jul 10, 2017, 12:46:09 PM7/10/17
to OMNeT++ Users
Thank You so much sir
          This will work . those error are successfully removed.
  But now some other error came like below.



Starting...

$ cd D:/omnetpp-5.1.1/samples/inet/tutorials/wireless
$ ../../../../bin/opp_run.exe -m -n ../../src;../../examples;..;../../showcases --image-path=../../images -l ../../src/INET omnetpp.ini


<!> Warning: opp_run: Cannot check library ../../src/INET: %1 is not a valid Win32 application

OMNeT++ Discrete Event Simulation  (C) 1992-2017 Andras Varga, OpenSim Ltd.
Version: 5.1.1, build: 170508-adbabd0, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer


<!> Error: Cannot load library '../../src//libINET.dll': 3s not a valid Win32 application

End.

Simulation terminated with exit code: 1
Working directory: D:/omnetpp-5.1.1/samples/inet/tutorials/wireless
Command line: ../../../../bin/opp_run.exe -m -n ../../src;../../examples;..;../../showcases --image-path=../../images -l ../../src/INET omnetpp.ini

Environment variables:
PATH=;D:/omnetpp-5.1.1/samples/inet/src;D:\omnetpp-5.1.1\bin;D:\omnetpp-5.1.1\tools\win64\mingw64\bin;D:\omnetpp-5.1.1\tools\win64\usr\bin;;D:/omnetpp-5.1.1/ide/jre/bin/server;D:/omnetpp-5.1.1/ide/jre/bin;D:/omnetpp-5.1.1/ide/jre/lib/amd64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\omnetpp-5.1.1\ide;
OMNETPP_IMAGE_PATH=D:\omnetpp-5.1.1\images

Michael Kirsche

unread,
Jul 10, 2017, 5:58:06 PM7/10/17
to OMNeT++ Users
Are you trying to use the new OMNeT 5.1.1 under a 32-bit Windows?
OMNeT versions newer than 5.0 are only usable under 64-bit Windows, so you would need to downgrade to version 5.0 if you have a 32-bit Windows.

Hradesh Kumar

unread,
Jul 10, 2017, 11:45:23 PM7/10/17
to OMNeT++ Users
Thanks for Response Sir,

          I am using Omnet++ 5.1.1 and operating system is Windows 7 64 bit. 

Michael Kirsche

unread,
Jul 11, 2017, 6:56:47 AM7/11/17
to OMNeT++ Users
Strange error, did you try to clean and rebuild INET?

Hradesh Kumar

unread,
Jul 12, 2017, 12:48:54 AM7/12/17
to OMNeT++ Users
Thank you Sir,

                   I am working on data aggregation in wireless sensor network, so please can you suggest me which module should i preferred for my work.

Thanks in advance for your suggestion.

Hradesh 

Michael Kirsche

unread,
Jul 12, 2017, 10:22:41 AM7/12/17
to OMNeT++ Users
Depends on what you are actually interested at... data aggregation on the application layer without considered real wireless communication systems? Then you might not need INET at all if you model everything at a high level.
If you want to use lower layer WSN standards, you would need to check which ones you are interested in and find out which framework might provide these models (INET 3.x for example has a PHY and simplified MAC model of IEEE 802.15.4).
If you want to look at some overlay like structures and simulate data aggregation, maybe one of the older / not maintained frameworks like Castalia or Oversim can help you.

Hradesh Kumar

unread,
Jul 12, 2017, 1:29:29 PM7/12/17
to OMNeT++ Users
A Great Thanks,

                   Such a valuable suggestion, while I want to calculate network life time, throughput, delay and energy consumption in wireless sensor network using data aggregation. would you suggest which one is suitable for this among INET, Castalia,Mixim and Oversim.

Thanks for your valuable suggestion in advance.

Hradesh

Michael Kirsche

unread,
Jul 12, 2017, 5:39:19 PM7/12/17
to OMNeT++ Users
Depends on the level-of-detail of the PHY/MAC layer that you require.
If you require detailed PHY models, MiXiM and the newer INET 3.x would probably be good choices.
If you only want to model higher layer protocols or abstract methods, Oversim for overlay network simulation might be your choice.
Castalia might be the best case for body area network simulation.

Hradesh Kumar

unread,
Jul 13, 2017, 12:45:38 AM7/13/17
to OMNeT++ Users
Thank You Sir.

Hradesh Kumar

unread,
Jul 14, 2017, 12:42:08 AM7/14/17
to OMNeT++ Users
Respected Sir,

                         I simulate the aggregation test in two scenario, without aggregation and with aggregation but I found the same result in both scenario why so Sir?

              Simulation details:
                                         sim time       100ms
                                 no of nodes            50
                                and other parameters are same as it.  

Michael Kirsche

unread,
Jul 14, 2017, 7:16:45 AM7/14/17
to OMNeT++ Users
What did you simulate? What model did you use? Which scenario? Which options etc...

Hradesh Kumar

unread,
Jul 14, 2017, 10:10:28 AM7/14/17
to OMNeT++ Users
Respected Sir,

             I simulate the following: INET/Examples/wireless/aggregationtest  in two scenario without aggregation and with aggregation. Then I found that all results are same, then what is role of aggregation in wireless network?

Thanks
Hradesh

Alfonso Ariza Quintana

unread,
Jul 14, 2017, 12:59:59 PM7/14/17
to omn...@googlegroups.com

I haven’t test it, but I suppose that it should MPDU-S or/and MSDU-A

https://en.wikipedia.org/wiki/Frame_aggregation

 

 

Enviado desde Correo para Windows 10

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

 

Reply all
Reply to author
Forward
0 new messages