Today I found out that simulations in OMNeT++ 4.1 won’t launch after I upgraded my Ubuntu to 11.10. I got the error message “Error during startup: No user interface (Cmdenv, Tkenv, etc.) found.”
Fortunately Rudolf Hornig, the guy from OpenSim Ltd., gave out a solution just a day ago.
Here is the solution:
In Makefile.inc.in find the following lines (towards the end):
CMDENV_LIBS = -u _cmdenv_lib -loppcmdenv$D -loppenvir$D
TKENV_LIBS = -u _tkenv_lib -lopptkenv$D -loppenvir$D -lopplayout$D
and replace them with:
CMDENV_LIBS = -u _cmdenv_lib -Wl,–no-as-needed -loppcmdenv$D -loppenvir$D
TKENV_LIBS = -u _tkenv_lib -Wl,–no-as-needed -lopptkenv$D -loppenvir$D -lopplayout$D
If you have other frameworks installed on top of OMNeT++, such as INet and OverSim, please recompile everything.
Original post: http://groups.google.com/group/omnetpp/browse_thread/thread/135b0491a2e8eae6