简体   繁体   English

omn​​et ++中的TKenv无法运行

[英]TKenv in omnet++ cannot run

i installed omnet++ on my ubuntu 15.10 我在ubuntu 15.10上安装了omnet ++

i am trying to run omnetpp.ini on TKenv simulator but it gave an error i don't know what it is. 我试图在TKenv模拟器上运行omnetpp.ini,但它给出了一个错误,我不知道它是什么。

this is the error 这是错误

Error during startup: Could not start user interface 'Tkenv'. 启动期间出错:无法启动用户界面'Tkenv'。 OMNeT++ Discrete Event Simulation (C) 1992-2014 Andras Varga, OpenSim Ltd. Version: 4.6, build: 141202-f785492, edition: Academic Public License -- NOT FOR COMMERCIAL USE See the license for distribution terms and warranty disclaimer OMNeT ++离散事件模拟(C)1992-2014 Andras Varga,OpenSim Ltd.版本:4.6,内部版本:141202-f785492,版本:Academic Public License –非用于商业用途请参阅许可证以了解分发条款和保修免责声明

User interface 'Tkenv' not found (not linked in or loaded dynamically). 找不到用户界面“ Tkenv”(未链接或未动态加载)。 Available ones are: Cmdenv : command-line user interface 可用的有:Cmdenv:命令行用户界面

End. 结束。 Starting... 开始...

$ cd /home/ibrahim/Downloads/omnetpp-4.6/samples/ijij/Simulations/radioTest $ ../../ijij -r 0 -u Tkenv -n ..:../../src omnetpp.ini $ cd /home/ibrahim/Downloads/omnetpp-4.6/samples/ijij/Simulations/radioTest $ ../../ijij -r 0 -u Tkenv -n ..:../../ src omnetpp.ini

Simulation terminated with exit code: 1 Working directory: /home/ibrahim/Downloads/omnetpp-4.6/samples/ijij/Simulations/radioTest Command line: ../../ijij -r 0 -u Tkenv -n ..:../../src omnetpp.ini 模拟以退出代码终止:1工作目录:/home/ibrahim/Downloads/omnetpp-4.6/samples/ijij/Simulations/radioTest命令行:../../ijij -r 0 -u Tkenv -n ..:。 ./../src omnetpp.ini

Environment variables: PATH=/home/ibrahim/Downloads/omnetpp-4.6/bin::/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games LD_LIBRARY_PATH=/home/ibrahim/Downloads/omnetpp-4.6/lib:: OMNETPP_IMAGE_PATH=/home/ibrahim/Downloads/omnetpp-4.6/images 环境变量:PATH = / home / ibrahim / Downloads / omnetpp-4.6 / bin :: / usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin:/ usr /游戏:/ usr / local / games LD_LIBRARY_PATH = / home / ibrahim / Downloads / omnetpp-4.6 / lib :: OMNETPP_IMAGE_PATH = / home / ibrahim / Downloads / omnetpp-4.6 / images

please help me. 请帮我。

[error screen shot] 1 [错误屏幕截图] 1

The Castalia project by default uses Cmdenv mode only. 默认情况下, Castalia项目仅使用Cmdenv模式。 In order to run simulation in Tkenv open makemake file (from root directory) in a text editor and add -u Tkenv to the OPTS variable. 为了在Tkenv运行模拟, Tkenv在文本编辑器中打开makemake文件(从根目录),然后将-u Tkenv添加到OPTS变量中。 As a consequence, this line should look like: 因此,此行应如下所示:

OPTS=" -f -r --deep -o CastaliaBin -u Cmdenv -u Tkenv -P $ROOT -M release"

Next, open Ubuntu terminal, go to root directory of the Castalia project and type ./makemake . 接下来,打开Ubuntu终端,转到Castalia项目的根目录,然后输入./makemake (This has to be done every time after changing of makemake file.) Then type: make clean && make . (必须在更改makemake文件后每次执行makemake操作。)然后键入: make clean && make

The solution is based on this line: User interface 'Tkenv' not found (not linked in or loaded dynamically). 解决方案基于以下这一行:找不到用户界面“ Tkenv”(未链接或未动态加载)。 Available ones are: Cmdenv : command-line user interface. 可用的有:Cmdenv:命令行用户界面。

This means that OMNeT++ itself was built without Tk support. 这意味着OMNeT ++本身是在没有Tk支持的情况下构建的。 Follow carefully the Installation guide. 认真遵循安装指南。 It specifies exactly what pakages you should install before running the ./configure . 它确切指定在运行./configure之前应安装的包。 It's most likely that you have not installed the development Tk and Tcl packages. 您很可能尚未安装开发Tk和Tcl软件包。

Hint: watch the output of the ./configure command closely. 提示:密切注意./configure命令的输出。 It prints out whether Tk was correctly detected or not. 它打印出是否正确检测到Tk。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM