为什么OMNET ++无法编译?

时间:2019-03-06 14:00:41

标签: omnet++

我在ubuntu 18上安装OMNET ++ 5.0,同时编译时出现以下错误消息:

/usr/include/osgQt/Version:8:2: error: #error "Qt version mismatch detected! Make sure to compile applications using osgQt with the same major Qt version that osgQt has been compiled against."
 #error "Qt version mismatch detected! Make sure to compile applications using osgQt with the same major Qt version that osgQt has been compiled against."
  ^~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
Makefile:1200: recipe for target 'osgcanvasinspector.o' failed
make[3]: *** [osgcanvasinspector.o] Error 1
make[3]: Leaving directory '/home/ros/Desktop/bnj/omnetpp-5.0-src/omnetpp-5.0/out/gcc-release/src/qtenv'
Makefile:37: recipe for target 'qmake' failed
make[2]: *** [qmake] Error 2
make[2]: Leaving directory '/home/ros/Desktop/bnj/omnetpp-5.0-src/omnetpp-5.0/src/qtenv'
Makefile:100: recipe for target 'qtenv' failed
make[1]: *** [qtenv] Error 2
make[1]: Leaving directory '/home/ros/Desktop/bnj/omnetpp-5.0-src/omnetpp-5.0'
Makefile:23: recipe for target 'allmodes' failed
make: *** [allmodes] Error 2

有人可以帮助我吗

1 个答案:

答案 0 :(得分:0)

OMNeT ++ 5.0需要Qt4 IIRC。确保已安装Qt4的开发库。有关详细信息,请查阅doc/文件夹中的安装手册。

QT_SELECT环境变量设置为4可能也有帮助。

或者,如果您不需要3D(OSG和osgEarth)模拟支持,则可以在configure.user中禁用该部分。