Comments (6)
Modules built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr energy
fd-net-device flow-monitor internet
internet-apps lora (no Python) lr-wpan
lte mesh mobility
netanim network nix-vector-routing
olsr point-to-point point-to-point-layout
propagation sixlowpan spectrum
stats tap-bridge test (no Python)
topology-read traffic-control uan
virtual-net-device wave wifi
wimax
Modules not built (see ns-3 tutorial for explanation):
brite click dpdk-net-device
mpi openflow visualizer
The test suite was not run because an unknown test suite name was requested.
from lora-ns3.
I think the reason is, in the ''lora-ns3/wscript" file they offer, they did not enable building examples for this lora module.
If you just want to run that lora.cc example, you can copy it under the "scratch" directory in ns3, then simply run it like
./waf --run lora
.
from lora-ns3.
i already do like what u say..but it still cannot run
s3@ubuntu:/Desktop/ns3/ns-allinone-3.32/ns-3.32$ cd scratch/Desktop/ns3/ns-allinone-3.32/ns-3.32/scratch$ cd lora
ns3@ubuntu:
ns3@ubuntu:/Desktop/ns3/ns-allinone-3.32/ns-3.32/scratch/lora$ cd ..//Desktop/ns3/ns-allinone-3.32/ns-3.32/src$ cd ../
ns3@ubuntu:
ns3@ubuntu:/Desktop/ns3/ns-allinone-3.32/ns-3.32$ ./waf --run lora/Desktop/ns3/ns-allinone-3.32/ns-3.32$
Traceback (most recent call last):
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 119, in waf_entry_point
run_commands()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 178, in run_commands
parse_options()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 158, in parse_options
ctx.execute()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Options.py", line 198, in execute
super(OptionsContext,self).execute()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 85, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 126, in recurse
user_function(self)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/wscript", line 272, in options
opt.recurse('src')
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 126, in recurse
user_function(self)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/src/wscript", line 51, in options
opt.recurse(module, mandatory=False)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 120, in recurse
wscript_module=load_module(node.abspath(),encoding=encoding)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 355, in load_module
exec(compile(code,path,'exec'),module.dict)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/src/lora/wscript", line 109
if (bld.env['ENABLE_EXAMPLES']):
^
IndentationError: unindent does not match any outer indentation level
ns3@ubuntu:
from lora-ns3.
i still cannot run the lora example...
s3@ubuntu:/Desktop/ns3/ns-allinone-3.32/ns-3.32$ cd scratch/Desktop/ns3/ns-allinone-3.32/ns-3.32/scratch$ cd lora
ns3@ubuntu:
ns3@ubuntu:/Desktop/ns3/ns-allinone-3.32/ns-3.32/scratch/lora$ cd ..//Desktop/ns3/ns-allinone-3.32/ns-3.32/src$ cd ../
ns3@ubuntu:
ns3@ubuntu:/Desktop/ns3/ns-allinone-3.32/ns-3.32$ ./waf --run lora/Desktop/ns3/ns-allinone-3.32/ns-3.32$
Traceback (most recent call last):
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 119, in waf_entry_point
run_commands()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 178, in run_commands
parse_options()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 158, in parse_options
ctx.execute()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Options.py", line 198, in execute
super(OptionsContext,self).execute()
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 85, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 126, in recurse
user_function(self)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/wscript", line 272, in options
opt.recurse('src')
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 126, in recurse
user_function(self)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/src/wscript", line 51, in options
opt.recurse(module, mandatory=False)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 120, in recurse
wscript_module=load_module(node.abspath(),encoding=encoding)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 355, in load_module
exec(compile(code,path,'exec'),module.dict)
File "/home/ns3/Desktop/ns3/ns-allinone-3.32/ns-3.32/src/lora/wscript", line 109
if (bld.env['ENABLE_EXAMPLES']):
^
IndentationError: unindent does not match any outer indentation level
ns3@ubuntu:
from lora-ns3.
-- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; --
import os.path
def build(bld):
obj = bld.create_ns3_module('lora', ['core', 'network', 'mobility', 'spectrum', 'propagation', 'energy'])
obj.source = [
'helper/lora-helper.cc',
'helper/lora-energy-source-helper.cc',
'helper/lora-radio-energy-model-helper.cc',
'model/lora-error-model.cc',
'model/lora-radio-energy-model.cc',
'model/lora-phy.cc',
'model/lora-application.cc',
'model/lora-sink-application.cc',
'model/lora-gw-phy.cc',
'model/lora-phy-header.cc',
'model/lora-mac-trailer.cc',
'model/lora-spectrum-signal-parameters.cc',
'model/lora-mac-header.cc',
'model/lora-mac-command.cc',
'model/lora-net-device.cc',
'model/lora-rs-net-device.cc',
'model/lora-rs-gw-net-device.cc',
'model/lora-gw-net-device.cc',
'model/lora-network.cc',
'model/lora-network-trailer.cc',
'model/lora-network-application.cc',
'model/lora-power-application.cc',
'model/lora-no-power-application.cc',
'model/lora-sf-controller-application.cc',
'model/lora-test-application.cc',
'model/sf-mab.cc',
'model/commands/link-check-req.cc',
'model/commands/link-adr-ans.cc',
'model/commands/dev-status-ans.cc',
'model/commands/duty-cycle-ans.cc',
'model/commands/rx-param-setup-ans.cc',
'model/commands/new-channel-ans.cc',
'model/commands/rx-timing-setup-ans.cc',
'model/commands/link-check-ans.cc',
'model/commands/link-adr-req.cc',
'model/commands/dev-status-req.cc',
'model/commands/duty-cycle-req.cc',
'model/commands/rx-param-setup-req.cc',
'model/commands/new-channel-req.cc',
'model/commands/rx-timing-setup-req.cc',
'model/gw-trailer.cc',
'model/noise-ism.cc',
'model/random-mixture.cc',
'model/mac32-address.cc'
]
obj.cxxflags=['-finstrument-functions']
module_test = bld.create_ns3_module_test_library('lora')
module_test.source = [
]
headers = bld(features='ns3header')
headers.module = 'lora'
headers.source = [
'helper/lora-helper.h',
'helper/lora-energy-source-helper.h',
'helper/lora-radio-energy-model-helper.h',
'model/lora-error-model.h',
'model/lora-radio-energy-model.h',
'model/lora-phy.h',
'model/lora-application.h',
'model/lora-sink-application.h',
'model/lora-gw-phy.h',
'model/lora-phy-header.h',
'model/lora-spectrum-signal-parameters.h',
'model/lora-mac-header.h',
'model/lora-mac-command.h',
'model/lora-mac-trailer.h',
'model/lora-net-device.h',
'model/lora-rs-net-device.h',
'model/lora-rs-gw-net-device.h',
'model/lora-gw-net-device.h',
'model/lora-network.h',
'model/lora-network-trailer.h',
'model/lora-network-application.h',
'model/lora-power-application.h',
'model/lora-no-power-application.h',
'model/lora-sf-controller-application.h',
'model/lora-test-application.h',
'model/sf-mab.h',
'model/commands/link-check-req.h',
'model/commands/link-adr-ans.h',
'model/commands/dev-status-ans.h',
'model/commands/duty-cycle-ans.h',
'model/commands/rx-param-setup-ans.h',
'model/commands/new-channel-ans.h',
'model/commands/rx-timing-setup-ans.h',
'model/commands/link-check-ans.h',
'model/commands/link-adr-req.h',
'model/commands/dev-status-req.h',
'model/commands/duty-cycle-req.h',
'model/commands/rx-param-setup-req.h',
'model/commands/new-channel-req.h',
'model/commands/rx-timing-setup-req.h',
'model/gw-trailer.h',
'model/noise-ism.h',
'model/random-mixture.h',
'model/mac32-address.h'
]
if (bld.env['ENABLE_EXAMPLES']):
bld.recurse('examples')
#bld.ns3_python_bindings()
from lora-ns3.
Could you please keep the original wscript
as it is - I mean, do not uncomment the two lines:
# if (bld.env['ENABLE_EXAMPLES']):
# bld.recurse('examples')
It seems the compiler is complaining about the indention for these two lines.
Then copy the lora.cc
under scratch
and run it.
Also, could you include the complete command you are using, and the output in a readable way? Otherwise it is really hard to view.
from lora-ns3.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lora-ns3.