Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

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

Open
admf1 opened this issue Sep 20, 2021 · 1 comment

Comments

@admf1
Copy link

admf1 commented Sep 20, 2021

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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants