我尝试使用 Omnet++ 和 Simu5G 设置车辆网络模拟。 我遵循了此说明(http://simu5g.org/veins_integration.html),但当我尝试在最后一步中集成静脉时,出现构建错误。
我的规格:
错误信息:
Creating shared library: ../out/clang-debug/src/libsimu5g_dbg.so
ld.lld: error: unable to find library -lveins_inet_dbg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:423: ../out/clang-debug/src/libsimu5g_dbg.so] Error 1
make[1]: Leaving directory '/home/user/omnetpp-6.0/Omnetpp_Projects/simu5g/src'
make: *** [Makefile:2: all] Error 2
"make MODE=debug -j2 all" terminated with exit code 2. Build might be incomplete.
20:41:00 Build Failed. 2 errors, 9 warnings. (took 5m:12s.851ms)
我尝试清理并重建工作区,但问题仍然存在。
更新
在我的工作区中仅构建 Veves-5.2 时出现错误消息(正确导入并构建 inet-4.4.0,但没有 simu5g)
make[1]: Entering directory '/home/puma/omnetpp-6.0/Omnetpp_Projects/veins-veins-5.2/subprojects/veins_inet/src'
MSGC: veins_inet/VeinsInetSampleMessage.msg
veins_inet/VeinsInetSampleMessage.msg:27: Error: cannot resolve import 'inet.common.INETDefs'
veins_inet/VeinsInetSampleMessage.msg:28: Error: cannot resolve import 'inet.common.packet.chunk.Chunk'
veins_inet/VeinsInetSampleMessage.msg:34: Error: 'VeinsInetSampleMessage': unknown base class 'inet::FieldsChunk'
opp_msgtool: error in 1 file(s)
make[1]: Leaving directory '/home/puma/omnetpp-6.0/Omnetpp_Projects/veins-veins-5.2/subprojects/veins_inet/src'
make[1]: *** [Makefile:131: veins_inet/VeinsInetSampleMessage_m.h] Error 1
make: *** [Makefile:36: all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.
根据Veins 5.2 兼容性 Veins 5.2 不支持 INET 4.4.0。尝试使用INET 4.3.5。
确保项目名称“inet”不带任何版本号。将(文件夹)“inet4.4”重命名为“inet”解决了我的问题。 在此输入图片描述