Mixnet 2.3 - problem, BaseMobility is included and not found, some hints?

542 views
Skip to first unread message

Humberto

unread,
Mar 16, 2013, 11:56:54 AM3/16/13
to omn...@googlegroups.com
Hi,

after knowing that mixim 2.3 was released, I wanted to perform some tests, regarding the phy layer.
My new system is a
 - Xubuntu 12.10
 - g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
 - Omnet 4.2.2 (patched applied for getting the make working)
 - mixim 2.3

right after installing mixim 2.3  I wanted to create a normal project with an analogue model but while building I get an error. It is the following:

In file included from ../MiXiM/src/base/phyLayer/BasePhyLayer.h:9:0,
                 
from ../MiXiM/src/modules/phy/PhyLayer.h:12,
                 
from FOOPhy.h:19,
                 
from FOOPhy.cc:16:
../MiXiM/src/base/connectionManager/ConnectionManagerAccess.h:40:26: fatal error: BaseMobility.h: No such file or directory
compilation terminated
.
make
: *** [out/gcc-debug//HOLAPhy.o] Error 1




My ConnectionManagerAccess.h: at line 40 looks like

#ifndef MIXIM_INET
#include "FindModule.h"
#include "BaseMobility.h"
typedef AccessModuleWrap<BaseMobility>       ChannelMobilityAccessType;
typedef ChannelMobilityAccessType::wrapType* ChannelMobilityPtrType;
#endif


However, I am not able to find the file BaseMobility.h and therefore unable to solve the problem.
If I tweak mixim 2.3 with the missing files from mixim2.2.1 I solve the problem but then I get the new following error while compiling my FOO project:

g++ -Wl,--export-dynamic  -Wl,-rpath,/home/user/omnetpp-4.2.2/lib -Wl,-rpath,. -o out/gcc-debug//FOO  out/gcc-debug//FOOPhy.o out/gcc-debug//FOO.o  -Wl,--no-as-needed -Wl,--whole-archive -L../MiXiM/out/gcc-debug/src  -lmixim -Wl,-rpath,`abspath ../MiXiM/out/gcc-debug/src` -Wl,--no-whole-archive -L"/home/user/omnetpp-4.2.2/lib/gcc" -L"/home/user/omnetpp-4.2.2/lib" -loppmaind -u _tkenv_lib -Wl,--no-as-needed -lopptkenvd -loppenvird -lopplayoutd -u _cmdenv_lib -Wl,--no-as-needed -loppcmdenvd -loppenvird  -loppsimd -ldl -lstdc++
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x22c): undefined reference to `non-virtual thunk to BasePhyLayer::getChannelInfo(SimTime const&, SimTime const&, std::list<MiximAirFrame*, std::allocator<MiximAirFrame*> >&) const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x230): undefined reference to `non-virtual thunk to BasePhyLayer::getThermalNoise(SimTime const&, SimTime const&)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x234): undefined reference to `non-virtual thunk to BasePhyLayer::sendControlMsgToMac(cMessage*)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x238): undefined reference to `non-virtual thunk to BasePhyLayer::sendUp(MiximAirFrame*, DeciderResult*)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x23c): undefined reference to `non-virtual thunk to BasePhyLayer::getSimTime() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x240): undefined reference to `non-virtual thunk to BasePhyLayer::cancelScheduledMessage(cMessage*)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x244): undefined reference to `non-virtual thunk to BasePhyLayer::rescheduleMessage(cMessage*, SimTime const&)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x248): undefined reference to `non-virtual thunk to BasePhyLayer::drawCurrent(double, int)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x24c): undefined reference to `non-virtual thunk to BasePhyLayer::recordScalar(char const*, double, char const*)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x250): undefined reference to `non-virtual thunk to BasePhyLayer::getCurrentRadioChannel() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x254): undefined reference to `non-virtual thunk to BasePhyLayer::getNbRadioChannels() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x258): undefined reference to `non-virtual thunk to BasePhyLayer::isRadioInRX() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x25c): undefined reference to `non-virtual thunk to BasePhyLayer::getPhyHeaderLength() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x270): undefined reference to `non-virtual thunk to BasePhyLayer::getRadioState() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x274): undefined reference to `non-virtual thunk to BasePhyLayer::setRadioState(int)'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x278): undefined reference to `non-virtual thunk to BasePhyLayer::getChannelState() const'
out/gcc-debug//FOOPhy.o:(.rodata._ZTV7FOOPhy[_ZTV7FOOPhy]+0x280): undefined reference to `non-virtual thunk to BasePhyLayer::setCurrentRadioChannel(int)'
collect2
: error: ld returned 1 exit status
make
: *** [out/gcc-debug//FOO] Error 1




Is it a bug in the new mixim 2.3 or am I doing something wrong?


PD: I am aware of MIXIME_INET symbol for filtering the includes between the INET and MIXIM frameworks. I want to use mixim, not inet, therefore I though I did not have to install INET.

Regards


Michael

unread,
Mar 16, 2013, 2:59:38 PM3/16/13
to omn...@googlegroups.com
Hi,

please define the preprocessor variable MIXIM_INET for your project. This variable should be defined allways and will be removed in future releases.

Michael
Message has been deleted

Humberto

unread,
Mar 16, 2013, 3:48:53 PM3/16/13
to omn...@googlegroups.com
Hi Michael,

I assumed that the definition at MIXIM's project was also used in my own project. You should probably specify that on the installation instructions.
In any case, thanks for the hint.

cheers

Hans-Jacob Enemark

unread,
Dec 4, 2013, 9:22:30 PM12/4/13
to omn...@googlegroups.com
Hi

I've run into the same problem with Mixim 2.3 but I am unable to find the right place to define MIXIM_INET. 
The BaseMobility.h and MobilityAccess.h seems not to be found in ConnectionManagerAccess.h. 

Where do I define MIXIM_INET and how?

Michael

unread,
Dec 5, 2013, 2:51:52 PM12/5/13
to omn...@googlegroups.com
In "Project"-"Properties"-"C/C++ General"-"Path and Symbols" under symbols for "GNU C++"!

Hans-Jacob Enemark

unread,
Dec 5, 2013, 3:27:05 PM12/5/13
to omn...@googlegroups.com
When doing that the build process comes up with this error message:
"MiXiM Framework": Feature is enabled but macro MIXIM_INET is not set in at least one configuration, folder or language

And the subsequent build reveals no change.

Mulugeta Atlabachew

unread,
Jan 12, 2016, 9:01:37 AM1/12/16
to OMNeT++ Users

Hi,
Did you get a solution to your problem, you see i`m facing the same problem with mixim 2.3.

if you have anything important please let me know it.

thanks.

Zainab Anwar

unread,
May 20, 2018, 3:02:07 AM5/20/18
to OMNeT++ Users
can any one help me  about mixim versions because in my mixim 2.3 some files are not present like basemobility.h is this file available in earlier version? i want just mixim, and with is d/b veins and mixim?

Zainab Anwar

unread,
May 20, 2018, 3:38:25 AM5/20/18
to OMNeT++ Users
where do we need to  add this in which file of our project?
Reply all
Reply to author
Forward
0 new messages