Mailing list archive (omnetpp-l at omnetpp.org)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[Omnetpp-l] Error in compiling a module in INET framework
Hello,
I have my omnet and INET framework working in a Ubuntu machine. I am
new to INET framework and I am learning it. First, I try tictoc2
tutorial. I create a directory named "tictoc2" and follow the tutorial
instruction (http://www.omnetpp.org/doc/tictoc-tutorial/), everything
works well. Then, I insert the import lines below into the top of
tictoc2.ned:
import
"MobileHost",
"ChannelControl";
Then, I use the command: "opp_makemake -f -N -b
/home/longvu2/omnetpp/INET -c /home/longvu2/omnetpp/INET/inetconfig"
to create Makefile. Then I run "make" and run "./tictoc2". Everything
is ok. This means I can import the two modules without any problems.
Next, I copy and change the name of directory
"/home/longvu2/omnetpp/INET/Examples/Adhoc/Ieee80211" to the sub
directory /home/longvu2/omnetpp/INET/Examples/Adhoc/mytest". Because I
copy to the same directory (just different dr names), this copy
ensures that I don't need to change anything in the files
"Net80211.ned" and "omnetpp.ini" under sub directory
/home/longvu2/omnetpp/INET/Examples/Adhoc/mytest. Notice that, the
file "Net80211.ned" also has import lines:
import
"MobileHost",
"ChannelControl";
Then, when I am inside
/home/longvu2/omnetpp/INET/Examples/Adhoc/mytest, I use the same
command as before: "opp_makemake -f -N -b /home/longvu2/omnetpp/INET
-c /home/longvu2/omnetpp/INET/inetconfig" to create Makefile and run
"make" to create a binary file named "mytest". Next, I run "./mytest",
the graphic interface of omnet is starting and omnet loads many NED
files, including:
....
Loading NED file: ./World/NAMTrace.ned
Loading NED file: ./World/ChannelControl.ned
.....
Loading NED file: ./Nodes/Adhoc/MobileHost.ned
......
Next, on the graphic interface of omnet, I select a run: "Run 1: host1
pinging host0" (one run created in this Ieee82011 example). However, I
get the following popup message:
"Error in module (Net80211)
net80211: dynamic module builder:
module type definition
`ChannelControl' for submodule
channelcontrol in
(Net80211) net80211 not found
(Define_Module() missing from C++ source?)
"
When I click OK on this popup message, a small windows appears with 2
hosts (host[0] and host[1]) in graphic interface and two circles
representing their transmission ranges (however, there is no
channelcontrol object in this interface). It seems "MobileHost" module
is working but "ChannelControl" is not.
At the same time, I try to run "./Ieee80211" under
"/home/longvu2/omnetpp/INET/Examples/Adhoc/eee80211" (compiled by INET
by default) and it is working: when I select the run: "Run 1: host1
pinging host0", it displays 2 mobile hosts with "channelcontrol" and
"configuration" objects.
I don't know why this happens. Could you please help?
Thank you,
-Long
_______________________________________________
Omnetpp-l mailing list
Omnetpp-l at xxx
http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
Home |
Main Index |
Thread Index