Error in OMNeT++ 4.1 over Ubuntu 11.10

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

then
./configure
make clean
make

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

 

Comments & Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>