【问题标题】:OMNeT++ INET Parse error in match expression匹配表达式中的 OMNeT++ INET 解析错误
【发布时间】:2021-03-23 19:59:22
【问题描述】:

我下载了最新版本的 OMNeT++ (omnnetpp-6.0pre10) 和最新版本的 INET (inet4.3) 以了解 inet4.2.1 版本的一些问题是否可以解决。 但是,在安装后,我尝试启动所有 INET 内容附带的教程模拟(我在 inet/tutorials/wireless 中运行 WirelessA.ned 文件),但出现此错误:

<!> Error: Parse error in match expression: syntax error

这显示在模拟开始之前,在控制台中,并且 Qtenv 图形环境没有打开。这里我将留下我在控制台中看到的完整代码:

Starting...

$ cd C:/omnetpp/omnetpp-6.0pre10/samples/inet/tutorials/wireless
$ ../../../../bin/opp_run.exe -m -c Wireless01 -n ../../src;../../examples;..;../../showcases -x inet.emulation;inet.showcases.visualizer.osg;inet.showcases.emulation;inet.clock.common;inet.clock.model;inet.visualizer.osg;inet.examples.voipstream;inet.clock.oscillator;inet.examples.emulation;inet.transportlayer.tcp_lwip;inet.applications.voipstream;inet.clock.base;inet.examples.clock;inet.transportlayer.tcp_nsc --image-path=../../images -l ../../src/INET omnetpp.ini

OMNeT++ Discrete Event Simulation  (C) 1992-2020 Andras Varga, OpenSim Ltd.
Version: 6.0pre10, build: 201218-d9021c6e4d, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer

Setting up Qtenv...

Loading NED files from ../../src:  997
Loading NED files from ../../examples:  181
Loading NED files from ..:  20
Loading NED files from ../../showcases:  43

Loading images from 'C:\omnetpp\omnetpp-6.0pre10\samples\inet\images': *: 0  3d/*: 0  background/*: 1  block/*: 2  misc/*: 218  showcases/*: 9 
Loading images from 'C:\omnetpp\omnetpp-6.0pre10\images': *: 0  abstract/*: 90  background/*: 4  block/*: 320  device/*: 195  logo/*: 1  maps/*: 9  misc/*: 70  msg/*: 55  old/*: 111  status/*: 28 


<!> Error: Parse error in match expression: syntax error


End.

我认为这与模拟的图形部分有关,因为我发现了这个:Parse Error

任何帮助将不胜感激。

【问题讨论】:

    标签: parsing graphics omnet++ inet


    【解决方案1】:

    尝试从您的主目录中删除.qtenvrc 文件。该文件可能包含在 OMNeT++ 6 中不再有效的过滤器表达式。(还要检查项目的根目录和文件的当前工作目录)

    【讨论】:

    • 谢谢。顺便说一句,我在另一台计算机上重新安装了 OMNeT++ 6.0pre10,按照 INET 中的安装程序文档逐步打开 INET,并使用以管理员身份运行选项从 mingw shell 启动 OMNeT++,问题就消失了。
    猜你喜欢
    • 2017-02-16
    • 2021-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多