【问题标题】:how can I fix Simu5G error when it is building?构建时如何修复 Simu5G 错误?
【发布时间】:2021-06-28 22:20:29
【问题描述】:

当我尝试在 Omnet++ 中导入 Simu5G 时出现一些错误 这是我的错误。

   **** 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

【问题讨论】:

    标签: omnet++ inet simulte


    【解决方案1】:

    您的工作区中没有(已安装)INET 项目,或者 INET 项目未打开或未在 Simu5G 的项目属性对话框中设置为项目依赖项。

    【讨论】:

    • 谢谢,但我已经安装了 Inet(它有警告标记),而且我认为它是开放的。您能否告诉我如何将其设置为 Simu5G 中的项目依赖项?我一步一步完成了安装指南中的所有操作。我尝试了不同的版本。
    【解决方案2】:

    我在 SimuLTE 中遇到过类似的问题。这是由于项目参考设置无效。要解决这个问题: 右键项目-属性-项目参考,然后选择你安装的inet。

    【讨论】:

      猜你喜欢
      • 2016-04-19
      • 1970-01-01
      • 2019-07-23
      • 1970-01-01
      • 2014-12-17
      • 1970-01-01
      • 1970-01-01
      • 2020-06-27
      • 1970-01-01
      相关资源
      最近更新 更多