Re: [Omnetpp-l] Qtenv/GUI doesn`t show up in 5.1.1

785 views
Skip to first unread message

Alex Duan

unread,
Sep 10, 2018, 2:21:49 AM9/10/18
to omn...@googlegroups.com
Hi YIJU,

1- do you have the environment variable set? QT_PLUGIN_PATH, this should be sth like \Uses\Administrator\src\omnetpp-5.1.1\tools\macosx\plugins
2- try to run the command in terminal: tictoc.exe -m -u Qtenv omnetpp.ini

BR,

YIJU WU <karl...@gmail.com> 于2018年9月10日周一 下午1:37写道:
Hi, omnet community

I`m beginning with omnet++ recently.The environment is omnet++ 5.1.1 in Windows 10 64bits.

And now I have problem in running example code "tictoc" which I right click "omnetpp.ini" click run as "Omnet++ Simulation"(Run configuration`s User interface is set in Qtenv by default I think)
And then my Console stuck in Loading images... ,and the GUI shows up in toolbar but has no window actually. (screen shot as below)


Even I reinstalled and rebuild the whole omnet++ 5.1.1 from unzip.This problem still exist.
Beside, it is running well when set User Interface in Tkenv.

Thank for any tips and response.

WU



--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

YIJU WU

unread,
Sep 10, 2018, 4:04:53 AM9/10/18
to omn...@googlegroups.com
Hi, Alex. Thanks for the response.

Following your mentioned:
1- do you have the environment variable set? QT_PLUGIN_PATH, this should be sth like \Uses\Administrator\src\omnetpp-5.1.1\tools\macosx\plugins
2- try to run the command in terminal: tictoc.exe -m -u Qtenv omnetpp.ini

I add the "plugins" in User environment variable or System or both of them ,and run as "tictoc.exe -m -u Qtenv omnetpp.ini".
But still stuck in "Loading images..."(as picture)

Is there anything I made mistakes?



Alex於 2018年9月10日星期一 UTC+9下午3時21分49秒寫道:

Attila Török

unread,
Sep 10, 2018, 4:39:25 AM9/10/18
to OMNeT++ Users
Does the "Simulation terminated with exit code: 1" message appear "automatically"? If so, after how much time? Or, does it appear only when you "stop", or "kill" the simulation manually?

If it does not appear automatically, it might be possible that the window does appear, it just isn't visible on your desktop, because it's out of its bounds. This can happen if you changed display resolution or external display configuration recently.
If my guess is correct, you can try moving the window back onto your desktop by using one of these tricks for example: https://www.howtogeek.com/howto/windows/bring-misplaced-off-screen-windows-back-to-your-desktop-keyboard-trick/
Or you could try to delete the "global" .qtenvrc file that stores the last main window position and size. It should be somewhere within the C:\Users\Administrator\AppData\Roaming folder.

Let me know if any of this helped.


On Mon, Sep 10, 2018 at 10:04 AM YIJU WU <karl...@gmail.com> wrote:
Hi, Alex. Thanks for the response.

Following your mentioned:
1- do you have the environment variable set? QT_PLUGIN_PATH, this should be sth like \Uses\Administrator\src\omnetpp-5.1.1\tools\macosx\plugins
2- try to run the command in terminal: tictoc.exe -m -u Qtenv omnetpp.ini

I add the "plugins" in User environment variable, and run as "tictoc.exe -m -u Qtenv omnetpp.ini".
But still stuck in "Loading images..."(as picture)

Is there anything I made mistakes?



Alex於 2018年9月10日星期一 UTC+9下午3時21分49秒寫道:
Hi YIJU,

1- do you have the environment variable set? QT_PLUGIN_PATH, this should be sth like \Uses\Administrator\src\omnetpp-5.1.1\tools\macosx\plugins
2- try to run the command in terminal: tictoc.exe -m -u Qtenv omnetpp.ini

BR,


吳易儒

unread,
Sep 10, 2018, 8:53:57 PM9/10/18
to omn...@googlegroups.com

Thank you very much Attila Török.

I tried the way you told, and It works.
The follow is how I did.

First, the message "Simulation terminated with exit code: 1" message appear "does appear when I stop he simulation.
I tried the trick by the URL that you mentioned. Although I can see the simulation GUI window, but it is freezing.(can not be operating)

And then I tried the second way that to delete the "global" .qtenvrc file which in C:\Users\Administrator\AppData\Roaming\Microsoft\Windows folder.
Run the simulation, but the window is still freezing. So I deleted another .qtenvrc file which is in C:\Users\Administrator folder.
The GUI window is functional.

Thanks again.

WU

Fig.7.PNG



Reply all
Reply to author
Forward
0 new messages