【问题标题】:Omnet++ 5.1 preview 2 ErrorOmnet++ 5.1 预览 2 错误
【发布时间】:2017-06-23 13:02:38
【问题描述】:

我已在 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

其他例子也是如此。

有什么问题?

【问题讨论】:

    标签: c++ simulator omnet++ inet


    【解决方案1】:

    您是否尝试清理和重建 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
    

    之后,您可以重试。所有可执行文件都应通过 GCC 构建,以防您的错误与 Clang 问题有关。

    【讨论】:

    • 错误仍然存​​在
    • 您是否在调试模式下运行了仿真?错误到底发生在源代码的哪一点?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-17
    • 1970-01-01
    • 2018-06-05
    相关资源
    最近更新 更多