[ndnSIM] Scenario/template based example compile failing.

Chris Mantis chrismantis73 at gmail.com
Sun Oct 15 13:19:12 PDT 2017


Hi,

While following the steps provided here:
https://github.com/named-data-ndnSIM/scenario-ndn-ping

I cloned and compiled the ndnSIM and installed it with sudo ./waf install
in the standard location.

Then I cloned the scenario (ndn-ping) and saved it under "ndnSIM/ns-3", and
configured it and tried to compile and it faces the below compile error. I
see that file manager-base.hpp is part of the ndnSIM/build folder.

The above article says that"The code should also work with the latest
version of ndnSIM, but it is not guaranteed." So, not sure what is missing
in the scenario code, build files.

Waf: Entering directory
`/home/workspace/ndnSIM/ns-3/scenario-ndn-ping/build'
[ 1/10] Compiling ndn-tools/core/version.cpp
[ 2/10] Compiling ndn-tools/tools/ping/client/ping.cpp
[ 3/10] Compiling ndn-tools/tools/ping/client/statistics-collector.cpp
[ 4/10] Compiling ndn-tools/tools/ping/client/tracer.cpp
[ 5/10] Compiling ndn-tools/tools/ping/server/ping-server.cpp
[ 6/10] Compiling ndn-tools/tools/ping/server/tracer.cpp
[ 7/10] Compiling extensions/ping-client-app.cpp
[ 8/10] Compiling extensions/ping-server-app.cpp
In file included from
/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/mgmt/strategy-choice-manager.hpp:29:0,
                 from
/usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:30,
                 from
/usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:32,
                 from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23,
                 from /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10,
                 from ../extensions/ping-client-app.hpp:22,
                 from ../extensions/ping-client-app.cpp:22:
/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/mgmt/nfd-manager-base.hpp:29:33:
fatal error: core/manager-base.hpp: No such file or directory
 #include "core/manager-base.hpp"
                                 ^
compilation terminated.

In file included from
/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/mgmt/strategy-choice-manager.hpp:29:0,
                 from
/usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:30,
                 from
/usr/local/include/ns3-dev/ns3/ndnSIM/helper/ndn-stack-helper.hpp:32,
                 from /usr/local/include/ns3-dev/ns3/ndn-all.hpp:23,
                 from /usr/local/include/ns3-dev/ns3/ndnSIM-module.h:10,
                 from ../extensions/ping-server-app.hpp:22,
                 from ../extensions/ping-server-app.cpp:22:
/usr/local/include/ns3-dev/ns3/ndnSIM/NFD/daemon/mgmt/nfd-manager-base.hpp:29:33:
fatal error: core/manager-base.hpp: No such file or directory
 #include "core/manager-base.hpp"
                                 ^
compilation terminated.


If I do these two steps, then I hit the below error...

git clone https://github.com/named-data-ndnSIM/ns-3-dev ns-3
(cd ns-3; git checkout ns-3.23-dev-ndnSIM-2.1)
git clone https://github.com/named-data-ndnSIM/ndnSIM ns-3/src/ndnSIM
(cd ns-3/src/ndnSIM; git checkout ndnSIM-2.

home:~/workspace/ndnSIM/ns-3$
home:~/workspace/ndnSIM/ns-3$ ./waf
Waf: Entering directory `/home/workspace/ndnSIM/ns-3/build'
Waf: Leaving directory `/home/workspace/ndnSIM/ns-3/build'
cound not find 'NFD/version.hpp.in' for bld(VERSION_STRING='0.5.0',
features=['subst'], idx=1, VERSION_MAJOR='0', posted=True,
meths=['collect_compilation_db_tasks', 'process_subst', 'process_rule',
'process_source'], install_path=None, prec=defaultdict(<type 'list'>, {}),
_name='version-NFD', VERSION_BUILD='0.5.0-41-g38111cd-ndnSIM', source='NFD/
version.hpp.in', VERSION_PATCH='0', VERSION=5000, mappings={},
path=/home/workspace/ndnSIM/ns-3/src/ndnSIM, VERSION_MINOR='5',
target='../../ns3/ndnSIM/NFD/version.hpp') in /home/workspace/ndnSIM/ns-3
home:~/workspace/ndnSIM/ns-3$

Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171015/b0e266bd/attachment.html>


More information about the ndnSIM mailing list