how can I fix Simu5G error when it is building?

666 Views Asked by At

I have some error when I try to import Simu5G in Omnet++ here is my error.

   **** Build of configuration gcc-debug for project simu5G ****`enter code here`
  Error: cannot resolve import 'inet.common.INETDefs'

  Error: cannot resolve import 'inet.common.packet.chunk.Chunk'

  Error: cannot resolve import 'inet.common.geometry.Geometry'
  Error: 'MultihopD2DPacket': unknown base class 'inet::FieldsChunk'
  Error: unknown type 'inet::Coord' for field 'srcCoord' in 'MultihopD2DPacket'
  Error: Unknown field 'chunkLength' (not found in any super class)
  Error: cannot resolve import 'inet.common.INETDefs'
  Error: cannot resolve import 'inet.common.packet.chunk.Chunk'
  Error: 'AlertPacket': unknown base class 'inet::FieldsChunk'
  [Makefile:339: apps/cbr/CbrPacket_m.h] Error 1
  *** [Makefile:2: all] Error 2
2

There are 2 best solutions below

1
Rudi On

You do not have (an installed) INET project in your workspace, or the INET project is not open or it is not set as a project dependency in Simu5G's project properties dialog.

1
XLyu On

I have experienced the similar issue in SimuLTE. This is due to an invalid project reference setting. To fix it: Right Click the projet - Property - Project Reference, then select the inet you installed.