MiXiM make file & Compilation

118 views
Skip to first unread message

darry don

unread,
Mar 29, 2010, 11:36:06 AM3/29/10
to omnetpp
Dear All,

I'm trying to build the routing simulation using MiXiM framework, I
create a folder in mixim/modules directory which i put my module files
(.ned,.cc,.h ) and another folder in mixim/examples which have file
like the baseNetwork example (.ned, ini & config.xml)

I compile it with "make -f makemakefiles CONFIGNAME=gcc-debug" and
make all, but when i come across the mixim/examples/xxx folder there
is neither any make file nor simulation file build.

Any assistance please.

BR

Darry

Karl Wessel

unread,
Mar 29, 2010, 11:42:42 AM3/29/10
to omn...@googlegroups.com
You shouldn't mix your own code with the MiXiM code because then you
will get problems in case you have to upgrade MiXiM.
Instead you should add your own simulations and classes in a seperate
project which references the MiXiM project (in case you use the IDE) or
a seperate directory with your own build-system which links to the MiXiM
libraries "miximmodules" and "miximbase" (in case you don't use the IDE).

Karl

darry don schrieb:

darry don

unread,
Mar 29, 2010, 11:53:56 AM3/29/10
to omnetpp
Dear Karl

Thanks for your quickly reply.

I did the same way as you described, there problem i don't see the
make file and the build system
when i run the command i described in command line. Is it the right
command? (check my previous post)

Thank you in advance.

Darry

Daniel Willkomm

unread,
Mar 29, 2010, 12:17:37 PM3/29/10
to omn...@googlegroups.com
If you don't use the IDE you have to manually create your own Makefiles. Omnet
provides the opp_makemake command for Makefile creation

Something like
opp_makemake -f -o YOUR-TARGET -L/PATH/TO/MIXIM/LIBRARIES -lmiximbase -
lmiximmodules
should do the trick

If you insist on writing your own code within the MiXiM tree (which is really
NOT recommended) you'll have to adapt the makemakefiles file.


Daniel

--
-----------------------------------------
o Dipl.-Ing. Daniel Willkomm
o TU-Berlin
o Telecommunication Networks Group
o http://www.tkn.tu-berlin.de/~willkomm/
o Mail: will...@tkn.tu-berlin.de

darry don

unread,
Mar 30, 2010, 6:51:26 AM3/30/10
to omnetpp
Daniel,

I have tried to play with opp_makemake as you suggested for netw in
(mixim/modules) directory by using:

opp_makemake -f --deep --make-so -o miximmodules -O out -I../base/
modules -I../base/messages -I../base/phyLayer -I../base/
connectionManager -I../base/utils -L../out/gcc-debug/base -L../out/gcc-
debug/tests/testUtils -lmiximbase

and in mixim/examples directory

opp_makemake -f --nolink -O out -d analogueModels -d CSMAMac -d
multiConnectionManager -d Mac80211 -d baseNetwork -d GreedyRoute -L../
out/gcc-debug/base -L../out/gcc-debug/modules -L../out/gcc-debug/tests/
testUtils

and then in my GreedyRoute directory

opp_makemake -f -O out -L../../out/gcc-debug/base -L../../out/gcc-
debug/modules -L../../out/gcc-debug/tests/testUtils -lmiximbase -
lmiximmodules

the problem i'm getting this kind of error message when i'm trying to
run MiXiM simulation.

<!> Error: module type has no gate `upperGateIn', required by
interface `org.mixim.base.modules.IBaseNetwLayer', at /home/darius/
MiXiM/modules/netw/GreedyGeo.ned:20.

Note: My setup of directory ( mixim/examples/GreedyRoute and mixim/
modules/netw) based on the jerome rousselot / mixim-uwb concept
"http://github.com/jeromerousselot/mixim-uwb".

Please assist.

Darry

Reply all
Reply to author
Forward
0 new messages