Почему OMNET ++ не может скомпилироваться? - PullRequest
0 голосов
/ 06 марта 2019

Я устанавливаю OMNET ++ 5.0 на свою Ubuntu 18, во время компиляции я получаю следующее сообщение об ошибке:

/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 голосов
/ 06 марта 2019

OMNeT ++ 5.0 требуется Qt4 IIRC.Убедитесь, что у вас установлены библиотеки разработки для Qt4.Обратитесь к руководству по установке в папке doc/ за подробностями.

Установка QT_SELECT envvar на 4 также может помочь.

В качестве альтернативы, если вам не нужно 3D (OSGи osgEarth) поддержка ваших симуляций, вы можете отключить эту часть в configure.user.

...