-
Notifications
You must be signed in to change notification settings - Fork 0
Home
vthglyk edited this page Apr 20, 2016
·
43 revisions
- Installation of ns3 (https://www.nsnam.org/wiki/Installation). The project has been tested with versions 3.24 and 3.25.
- Download rapidjson (https://github.com/miloyip/rapidjson).
- Create a new directory named rapidjson under ns-allinone-3.xx/ns-3.xx.
- Copy the contents of the directory include/rapidjson (from the downloaded rapidjson project in step 2) to the newly created rapidjson folder.
- Update the ns-allinone-3.xx/ns-3.xx/src/applications/wscript.
- Add the following lines in module.source:
'model/bitcoin.cc',
'model/bitcoin-node.cc',
'model/bitcoin-miner.cc',
'model/bitcoin-simple-attacker.cc',
'model/bitcoin-selfish-miner.cc',
'model/bitcoin-selfish-miner-trials.cc',
'helper/bitcoin-topology-helper.cc',
'helper/bitcoin-node-helper.cc',
'helper/bitcoin-miner-helper.cc'
- Add the following lines in headers.source:
'model/bitcoin.h',
'model/bitcoin-node.h',
'model/bitcoin-miner.h',
'model/bitcoin-simple-attacker.h',
'model/bitcoin-selfish-miner.h',
'model/bitcoin-selfish-miner-trials.h',
'helper/bitcoin-topology-helper.h',
'helper/bitcoin-node-helper.h',
'helper/bitcoin-miner-helper.h'
- Add the following lines in module.source:
- Update the ns-allinone-3.xx/ns-3.xx/src/internet/wscript.
- Add the following line in module.source:
'helper/ipv4-address-helper-custom.cc'
- Add the following lines in headers.source:
'helper/ipv4-address-helper-custom.h'
- Add the following line in module.source:
- Copy all the files from Bitcoin-Simulation/src to the respective folder under ns-allinone-3.xx/ns-3.xx/src/
- Rebuild ns3. CXXFLAGS="-std=c++11" ./waf configure --build-profile=optimized --out=build/optimized --with-pybindgen=/home/bill/Desktop/workspace/ns-allinone-3.24/pybindgen-0.17.0.post41+ngd10fa60 --enable-mpi --enable-static
{Please fill}