[英]Omnet++ 5.1 preview 2 Error
我已在Windows 10上安装OMNeT ++ 5.1预览版2(没有任何错误)。
我不知道问题出在哪里,但是我无法运行任何仿真。 我尝试了tictoc示例。 我构建并运行它,这是控制台的输出:
Starting...
$ cd C:/omnetpp-5.1pre2/samples/tictoc
$ tictoc.exe -m -u Qtenv omnetpp.ini
Simulation terminated with exit code: -1073741511
Working directory: C:/omnetpp-5.1pre2/samples/tictoc
Command line: tictoc.exe -m -u Qtenv omnetpp.ini
Environment variables:
PATH=;C:\omnetpp-5.1pre2\bin;C:\omnetpp-5.1pre2\tools\win64\usr\bin;C:\omnetpp-5.1pre2\tools\win64\mingw64\bin;C:/omnetpp-5.1pre2/ide/jre/bin/server;C:/omnetpp-5.1pre2/ide/jre/bin;C:/omnetpp-5.1pre2/ide/jre/lib/amd64;.;C:\omnetpp-5.1pre2\bin;C:\omnetpp-5.1pre2\tools\win64\mingw64\bin;C:\omnetpp-5.1pre2\tools\win64\usr\local\bin;C:\omnetpp-5.1pre2\tools\win64\usr\bin;C:\omnetpp-5.1pre2\tools\win64\usr\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\omnetpp-5.1pre2\tools\win64\usr\bin\site_perl;C:\omnetpp-5.1pre2\tools\win64\usr\bin\vendor_perl;C:\omnetpp-5.1pre2\tools\win64\usr\bin\core_perl;C:\omnetpp-5.1pre2;
OMNETPP_ROOT=C:/omnetpp-5.1pre2/
OMNETPP_IMAGE_PATH=C:\omnetpp-5.1pre2\images
其他示例也是如此。
问题是什么?
您是否尝试清理和重建OMNeT及其示例?
启动mingw.cmd时,键入:
make cleanall
./configure
make -j2
-j2用于并行化编译过程。 您可以将其调整为可用的CPU内核数。
如果示例仍然无法运行,请尝试将编译器从Clang更改为GCC。
编辑“ omnetpp-5.1pre2”目录中的“ configure.user”文件并更改行(21号):
PREFER_CLANG=yes
并将其更改为
PREFER_CLANG=no
然后再次:
make cleanall
./configure
make -j2
之后,您可以再试一次。 如果您的错误与Clang问题有关,则应通过GCC构建所有可执行文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.