问题描述
我用最新版本的INET(inet4.3)下载到最新版本的OMNeT++(omnnetpp-6.0pre10),看看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。
任何帮助将不胜感激。
解决方法
尝试从您的主目录中删除 .qtenvrc
文件。该文件可能包含在 OMNeT++ 6 中不再有效的过滤器表达式。(还要检查项目的根目录和文件的当前工作目录)