<div dir="auto"><div><p dir="ltr">Hello,</p>
<p dir="ltr">Could you try Ubuntu 20.04? The versions you mentioned would have little luck compiling these libraries.</p><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2024, 8:27 PM Albatool via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">  Hello,<br><br>I am trying to run ndnSIM-NLSR and so far I was able to configure ndnSIM-NLSR successfully. However, when I try to run ndnSIM using ./waf, I get the following error in all Ubuntu versions 14.04, 16.04, and 18.04:<div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">[2400/3287] Compiling src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp<br></font><font face="monospace">[2401/3287] Compiling src/ndnSIM/ndn-cxx/src/management/nfd-strategy-choice.cpp<br></font><font face="monospace">[2402/3287] Compiling src/ndnSIM/NFD/daemon/table/cs-policy-priority-fifo.cpp<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25:0,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:<br></font><font face="monospace">../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:136:17: error: field ‘m_nodes’ has incomplete type ‘ns3::NodeContainer’<br></font><font face="monospace">   NodeContainer m_nodes;<br></font><font face="monospace">                 ^~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:<br></font><font face="monospace">./ns3/topology-reader.h:41:7: note: forward declaration of ‘class ns3::NodeContainer’<br></font><font face="monospace"> class NodeContainer;<br></font><font face="monospace">       ^~~~~~~~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:0:<br></font><font face="monospace">../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:151:17: error: field ‘m_backboneRouters’ has incomplete type ‘ns3::NodeContainer’<br></font><font face="monospace">   NodeContainer m_backboneRouters;<br></font><font face="monospace">                 ^~~~~~~~~~~~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:<br></font><font face="monospace">./ns3/topology-reader.h:41:7: note: forward declaration of ‘class ns3::NodeContainer’<br></font><font face="monospace"> class NodeContainer;<br></font><font face="monospace">       ^~~~~~~~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:0:<br></font><font face="monospace">../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:152:17: error: field ‘m_gatewayRouters’ has incomplete type ‘ns3::NodeContainer’<br></font><font face="monospace">   NodeContainer m_gatewayRouters;<br></font><font face="monospace">                 ^~~~~~~~~~~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:<br></font><font face="monospace">./ns3/topology-reader.h:41:7: note: forward declaration of ‘class ns3::NodeContainer’<br></font><font face="monospace"> class NodeContainer;<br></font><font face="monospace">       ^~~~~~~~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:0:<br></font><font face="monospace">../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:153:17: error: field ‘m_customerRouters’ has incomplete type ‘ns3::NodeContainer’<br></font><font face="monospace">   NodeContainer m_customerRouters;<br></font><font face="monospace">                 ^~~~~~~~~~~~~~~~~<br></font><font face="monospace">In file included from ../src/ndnSIM/utils/topology/annotated-topology-reader.hpp:25:0,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.hpp:25,<br></font><font face="monospace">                 from ../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:22:<br></font><font face="monospace">./ns3/topology-reader.h:41:7: note: forward declaration of ‘class ns3::NodeContainer’<br></font><font face="monospace"> class NodeContainer;<br></font><font face="monospace">       ^~~~~~~~~~~~~<br></font><font face="monospace">../src/ndnSIM/utils/topology/rocketfuel-map-reader.cpp:484:1: warning: ‘void ns3::nodeWriter(std::ostream&, ns3::NodeContainer&)’ defined but not used [-Wunused-function]<br></font><font face="monospace"> nodeWriter(std::ostream& os, NodeContainer& m)<br></font><font face="monospace"> ^~~~~~~~~~</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace"><br></font><font face="monospace">Waf: Leaving directory `/home/a/Desktop/ndnSIM-NLSR/ns-3/build'<br></font><font face="monospace">Build failed<br></font><font face="monospace"> -> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display more information)</font></blockquote><div><br></div><div>Please help me resolve this issue, knowing that I performed the below commands to get to this state .</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">sudo apt-get update<br>sudo apt-get install build-essential libsqlite3-dev libcrypto++-dev<br>sudo apt-get install libboost-all-dev<br>sudo apt-get install python-dev python-pygraphviz python-kiwi<br>sudo apt-get install python-pygoocanvas python-gnome2<br>sudo apt-get install python-rsvg ipython<br>sudo apt install git<br>mkdir ndnSIM-NLSR<br>cd ndnSIM-NLSR<br>git clone <a href="https://github.com/named-data-ndnSIM/ns-3-dev.git" target="_blank" rel="noreferrer">https://github.com/named-data-ndnSIM/ns-3-dev.git</a> ns-3<br>git clone <a href="https://github.com/named-data-ndnSIM/pybindgen.git" target="_blank" rel="noreferrer">https://github.com/named-data-ndnSIM/pybindgen.git</a> pybindgen<br>git clone --recursive <a href="https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR.git" target="_blank" rel="noreferrer">https://github.com/3rd-ndn-hackathon/ndnSIM-NLSR.git</a> ns-3/src/ndnSIM<br>cd ../<br>sudo apt update<br>sudo apt install -y build-essential git cmake pkg-config libssl-dev libboost-all-dev libpcap-dev libsqlite3-dev<br>cd ~<br>git clone <a href="https://github.com/named-data/ndn-cxx.git" target="_blank" rel="noreferrer">https://github.com/named-data/ndn-cxx.git</a><br>cd ndn-cxx<br>git checkout tags/ndn-cxx-0.4.1<br>./waf configure<br>./waf<br>sudo ./waf install<br>cd ~<br>git clone <a href="https://github.com/named-data/NFD.git" target="_blank" rel="noreferrer">https://github.com/named-data/NFD.git</a><br>cd NFD<br>git checkout tags/NFD-0.4.1<br>git submodule init<br>git submodule update<br>./waf configure<br>./waf<br>sudo ./waf install<br>cd ~<br>git clone <a href="https://github.com/named-data/NLSR.git" target="_blank" rel="noreferrer">https://github.com/named-data/NLSR.git</a><br>cd NLSR<br>git checkout tags/NLSR-0.3.0<br>git submodule init<br>git submodule update<br>sudo apt-get install liblog4cxx-dev<br>sudo apt-get install libprotobuf-dev protobuf-compiler<br>./waf configure<br>./waf<br>sudo ./waf install<br>cd ~/ndnSIM-NLSR/ns-3<br>expand -t 4 /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript > /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript_new<br>mv /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript_new /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript<br>sudo apt-get install -y python-software-properties<br>sudo apt-get install software-properties-common<br>cd ~<br>wget --no-check-certificate <a href="https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.gz" target="_blank" rel="noreferrer">https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.gz</a><br>tar -xvf gcc-7.5.0.tar.gz<br>sudo apt-get install build-essential libgmp-dev libmpfr-dev libmpc-dev<br>cd gcc-7.5.0<br>./configure --disable-multilib<br>make -j$(nproc)<br>sudo make install<br>sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc 10<br>sudo update-alternatives --install /usr/bin/g++ g++ /usr/local/bin/g++ 10<br>sudo update-alternatives --config gcc<br>sudo update-alternatives --config g++<br>---------------------<br>changed /home/a/Desktop/ndnSIM-NLSR/ns-3/src/ndnSIM/wscript :<br>if not os.environ.has_key('PKG_CONFIG_PATH'):          >>>>to>>>>      if 'PKG_CONFIG_PATH' not in os.environ:<br>----------------------------<br>./waf configure --disable-python --enable-examples --enable-nlsr<br>./waf</blockquote><br><br></div><div> </div><div> </div></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" rel="noreferrer">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div></div></div>