inet-framework / simulte

SimuLTE - LTE System Level Simulation Model and Simulator for INET & OMNeT++ - deprecated, use Simu5G instead
https://simulte.omnetpp.org
Other
137 stars 110 forks source link

Mode4 error - fatal error: 'inet/transportlayer/contract/udp/UDPSocket.h' file not found #66

Open admf1 opened 2 years ago

admf1 commented 2 years ago

Hello, I'm a student and new to VANET and Omnet in general

I'm trying to implement the Mode4 simulation. I have not been able to compile and build the project.

I changed the name of the project to CV2X, however, it was not working previously either. I've changed the name of the packages from lte to CV2X.

Currently using:

Omnet 5.6.2 INET 4.2.2 SimuLTE 1.2.0 Veins 5.1

Error Message: make MODE=debug all cd src && make make[1]: Entering directory '/home/omnetpp-5.6.2/SegurAuto/CV2X/src' apps/alert/AlertReceiver.cc In file included from apps/alert/AlertReceiver.cc:10: ./apps/alert/AlertReceiver.h:17:10: fatal error: 'inet/transportlayer/contract/udp/UDPSocket.h' file not found

include "inet/transportlayer/contract/udp/UDPSocket.h"

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated. Makefile:319: recipe for target '../out/clang-debug/src/apps/alert/AlertReceiver.o' failed make[1]: [../out/clang-debug/src/apps/alert/AlertReceiver.o] Error 1 make[1]: Leaving directory '/home/omnetpp-5.6.2/SegurAuto/CV2X/src' Makefile:2: recipe for target 'all' failed make: [all] Error 2 "make MODE=debug all" terminated with exit code 2. Build might be incomplete.

18:37:04 Build Failed. 5 errors, 0 warnings. (took 765ms)

Not all, but some of files referenced from Inet have the small red x's next to.

Screenshot from 2021-09-20 19-06-23

And also,

Screenshot from 2021-09-20 19-08-30

wischhof commented 2 years ago

Your combination of the Simulte and INET versions do not match: In newer inet-Versions, classes like UDPSocket.h were renamed to UdpSocket.h.

Therefore, the includes needed to be adapted, but that is already done in the current Simulte master, e.g. see https://github.com/inet-framework/simulte/blob/master/src/apps/alert/AlertReceiver.h in line 17

Please check out the current simulte master, clean & build and then it should work.