problems in installing Mixim

1,133 views
Skip to first unread message

Mulugeta Atlabachew

unread,
Dec 28, 2015, 7:51:18 AM12/28/15
to OMNeT++ Users
Hello friends!

After the re-installation of omnetpp 5.0b3 I have imported Mixim and the build, but it generates the following error.
Anyone who has the idea, please help me.

thanks.

12:50:16 **** Build of configuration gcc-debug for project MiXiM ****

make MODE=debug CONFIGNAME=gcc-debug all

cd src && /usr/bin/make

make[1]: Entering directory '/c/MY_OMNET/omnetpp-5.0b3/samples/MiXiM/src'

base/connectionManager/BaseConnectionManager.cc

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:8:

base/utils\MiXiMDefs.h:38:19: error: unknown type name 'simsignal_t'; did you mean 'omnetpp::simsignal_t'?

mutable volatile simsignal_t ssChangeSignal;

^~~~~~~~~~~

omnetpp::simsignal_t

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/clistener.h:34:13: note: 'omnetpp::simsignal_t' declared here

typedef int simsignal_t;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:8:

base/utils\MiXiMDefs.h:56:2: error: unknown type name 'simsignal_t'; did you mean 'omnetpp::simsignal_t'?

simsignal_t initialize() const {

^~~~~~~~~~~

omnetpp::simsignal_t

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/clistener.h:34:13: note: 'omnetpp::simsignal_t' declared here

typedef int simsignal_t;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:8:

base/utils\MiXiMDefs.h:67:11: error: unknown type name 'simsignal_t'; did you mean 'omnetpp::simsignal_t'?

operator simsignal_t () const {

^~~~~~~~~~~

omnetpp::simsignal_t

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/clistener.h:34:13: note: 'omnetpp::simsignal_t' declared here

typedef int simsignal_t;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:8:

base/utils\MiXiMDefs.h:58:36: error: use of undeclared identifier 'cComponent'; did you mean 'omnetpp::cComponent'?

const char *const sRegSigName = cComponent::getSignalName(ssChangeSignal);

^~~~~~~~~~

omnetpp::cComponent

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/cresultlistener.h:25:7: note: 'omnetpp::cComponent' declared here

class cComponent;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:8:

base/utils\MiXiMDefs.h:69:21: error: use of undeclared identifier 'cComponent'; did you mean 'omnetpp::cComponent'?

ssChangeSignal = cComponent::registerSignal(sSignalName);

^~~~~~~~~~

omnetpp::cComponent

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/cresultlistener.h:25:7: note: 'omnetpp::cComponent' declared here

class cComponent;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:9:

In file included from base/connectionManager/NicEntry.h:29:

In file included from inet_stub/base\Coord.h:24:

inet_stub/base/INETDefs.h:48:9: warning: 'EV' macro redefined [-Wmacro-redefined]

#define EV ev.isDisabled()?ev:ev

^

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/clog.h:196:9: note: previous definition is here

#define EV EV_INFO ///< Short for EV_INFO

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:9:

In file included from base/connectionManager/NicEntry.h:29:

In file included from inet_stub/base\Coord.h:24:

inet_stub/base/INETDefs.h:65:9: error: use of undeclared identifier 'opp_error'

opp_error("Expression %s returned NULL at %s:%d", expr, file, line);

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:9:

In file included from base/connectionManager/NicEntry.h:29:

inet_stub/base\Coord.h:37:31: error: unknown class name 'cObject'; did you mean 'omnetpp::cObject'?

class INET_API Coord : public cObject

^~~~~~~

omnetpp::cObject

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/clog.h:25:7: note: 'omnetpp::cObject' declared here

class cObject;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:9:

base/connectionManager/NicEntry.h:41:35: error: expected class name

class MIXIM_API NicEntry : public cObject

^

base/connectionManager/NicEntry.h:57:39: error: use of undeclared identifier 'cGate'

typedef std::map<const NicEntry*, cGate*, NicEntryComparator> GateList;

^

base/connectionManager/NicEntry.h:57:45: error: expected expression

typedef std::map<const NicEntry*, cGate*, NicEntryComparator> GateList;

^

base/connectionManager/NicEntry.h:63:5: error: unknown type name 'cModule'; did you mean 'omnetpp::cModule'?

cModule *nicPtr;

^~~~~~~

omnetpp::cModule

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/envirext.h:31:7: note: 'omnetpp::cModule' declared here

class cModule;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:9:

base/connectionManager/NicEntry.h:164:11: error: unknown type name 'cGate'; did you mean 'omnetpp::cGate'?

const cGate* getOutGateTo(const NicEntry* to) const {

^~~~~

omnetpp::cGate

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/cmodule.h:28:8: note: 'omnetpp::cGate' declared here

class cGate;

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

In file included from base/connectionManager/BaseConnectionManager.h:9:

base/connectionManager/NicEntry.h:92:9: error: member initializer 'cObject' does not name a non-static data member or base class

: cObject()

^~~~~~~~~

base/connectionManager/NicEntry.h:103:9: error: member initializer 'cObject' does not name a non-static data member or base class

: cObject(o)

^~~~~~~~~~

base/connectionManager/NicEntry.h:153:25: error: member reference base type 'GateList' (aka 'int') is not a structure or union

return (outConns.find(other) != outConns.end());

~~~~~~~~^~~~~

base/connectionManager/NicEntry.h:153:49: error: member reference base type 'GateList' (aka 'int') is not a structure or union

return (outConns.find(other) != outConns.end());

~~~~~~~~^~~~

base/connectionManager/NicEntry.h:165:21: error: member reference base type 'const GateList' (aka 'const int') is not a structure or union

return outConns.at(to);

~~~~~~~~^~~

In file included from base/connectionManager/BaseConnectionManager.cc:1:

base/connectionManager/BaseConnectionManager.h:29:48: error: unknown class name 'cSimpleModule'; did you mean 'omnetpp::cSimpleModule'?

class MIXIM_API BaseConnectionManager : public cSimpleModule

^~~~~~~~~~~~~

omnetpp::cSimpleModule

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/csimplemodule.h:60:15: note: 'omnetpp::cSimpleModule' declared here

class SIM_API cSimpleModule : public cModule //implies noncopyable

^

In file included from base/connectionManager/BaseConnectionManager.cc:1:

base/connectionManager/BaseConnectionManager.h:408:8: error: unknown type name 'cGate'; did you mean 'omnetpp::cGate'?

const cGate* getOutGateTo(const NicEntry* nic, const NicEntry* targetNic) const;

^~~~~

omnetpp::cGate

C:/MY_OMNET/omnetpp-5.0b3/include/omnetpp/cmodule.h:28:8: note: 'omnetpp::cGate' declared here

class cGate;

^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

1 warning and 20 errors generated.

Makefile:261: recipe for target '../out/gcc-debug/src/base/connectionManager/BaseConnectionManager.o' failed

make[1]: *** [../out/gcc-debug/src/base/connectionManager/BaseConnectionManager.o] Error 1

make[1]: Leaving directory '/c/MY_OMNET/omnetpp-5.0b3/samples/MiXiM/src'

make: *** [all] Error 2

Makefile:5: recipe for target 'all' failed

12:50:17 Build Finished (took 1s.37ms)


aymen

unread,
Feb 1, 2016, 2:12:31 AM2/1/16
to OMNeT++ Users
the same problem 

Alfonso Ariza Quintana

unread,
Feb 1, 2016, 4:19:26 AM2/1/16
to omn...@googlegroups.com
Include this code in your headers

#if OMNETPP_VERSION >= 0x500
using namespace omnetpp;
#endif


Date: Sun, 31 Jan 2016 23:12:30 -0800
From: ayme...@gmail.com
To: omn...@googlegroups.com
Subject: [Omnetpp-l] Re: problems in installing Mixim
--
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.

Avantika Iyer

unread,
Feb 29, 2016, 2:35:04 PM2/29/16
to OMNeT++ Users
Hello, 

I am relatively new to Mixim. The issue still persists. Could you please provide a code snippet to help me understand where I need to add the below statements.

Thanks and Regards,
Avanti 

Lucas Leão

unread,
Apr 29, 2016, 10:19:18 AM4/29/16
to omn...@googlegroups.com
"ev" and "opp_warning" were removed from OMNET++ API


I'm still checking what to do, but for the 
1) "ev" it is enough to change it to "EV"
2) "opp_warning" you may use "EV_WARN <<" (https://omnetpp.org/doc/omnetpp/manual/#sec:sim-lib:log-statements)
3) "opp_error" you may use "EV_ERROR <<"
4) "simulation." change to "getSimulation()->"

Li Tao

unread,
Nov 23, 2016, 6:45:23 AM11/23/16
to OMNeT++ Users
Hello, any guys solve this problem? I have met the same problem now. Thanks for your probable reply. 

在 2015年12月28日星期一 UTC+8下午8:51:18,Mulugeta Atlabachew写道:

marzieh ghasemi

unread,
Nov 24, 2016, 4:21:49 AM11/24/16
to OMNeT++ Users
Hello
I don't know what happened for you.But, I have installed MIXIM easily. 
plz tell me what is your operating system? probably I can help.

Li Tao

unread,
Nov 24, 2016, 4:41:21 AM11/24/16
to OMNeT++ Users
Hi, thanks for your reply. I have installed MiXiM. The latest version of MiXiM is not support for OMNET5.0, so I reinstall OMNET4.6 and INET 3.0. Then I complete the installation. 

BTW, I am a newbie for OMNET and MiXiM, could u plz give me some materials or urls to start use these tools? Thx very much.

在 2016年11月24日星期四 UTC+8下午5:21:49,marzieh ghasemi写道:

Rudolf Hornig

unread,
Nov 24, 2016, 4:53:20 AM11/24/16
to OMNeT++ Users
DON'T use MiXiM. It's no longer maintained and deprecated. INET 3.x has all the features that MiXiM had, so everything you could do with mixim could be done with INET 3.x too. 

Aqsa Aslam

unread,
Nov 24, 2016, 5:57:58 AM11/24/16
to omn...@googlegroups.com
But 3.x is not supported on omnet++  5.0. it is giving me error when i build a project. 

--
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+unsubscribe@googlegroups.com.

Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.



--


Regards,
Aqsa Aslam

marzieh ghasemi

unread,
Nov 25, 2016, 11:22:27 AM11/25/16
to OMNeT++ Users
I agree with Mr.Rudolf Hornig.But if you want to learn MIXIM,please use this site:

http://mixim.sourceforge.net/doc/MiXiM/doc/doxy/

I hope it was helpful.

monali suthar

unread,
Jan 24, 2018, 11:49:58 PM1/24/18
to OMNeT++ Users

how ???
i have many errors in coord.h,INETDefs.h,MiXiMDefs.h,NicEntry.h....

will you help me ???
Reply all
Reply to author
Forward
0 new messages