<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi,
<div><br>
</div>
<div>I’ve tried it. And it gives me the same output. I can start and stop simulation. I wonder whether the result looks good ? Will it generate a report for the simulation or do I need to add sth to the source code?</div>
<div>Here’s the log.</div>
<div><b><br>
</b></div>
<div>
<div><b>caster@ubuntu:~/ndnSim/ns-3$ NS_LOG=ndn.Consumer ./waf --run ndn-first --visualize</b></div>
<div><b>Waf: Entering directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Build commands will be stored in build/compile_commands.json</b></div>
<div><b>'build' finished successfully (2.131s)</b></div>
<div><b>Could not load plugin 'show_last_packets.py': No module named 'kiwi.ui'</b></div>
<div><b>Could not load icon applets-screenshooter due to missing gnomedesktop Python module</b></div>
<div><b>scanning topology: 3 nodes...</b></div>
<div><b>scanning topology: calling graphviz layout</b></div>
<div><b>scanning topology: all done.</b></div>
<div><b>/home/caster/ndnSim/ns-3/src/visualizer/visualizer/core.py:1505: Warning: Source ID 368 was not found when attempting to remove it</b></div>
<div><b> GLib.source_remove(self._update_timeout_id)</b></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Caster<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年3月23日 下午7:47,Sirapop Theeranantachai <sirapop741@gmail.com> 写道:</div>
<br class="Apple-interchange-newline">
<div>
<div dir="auto">Hi,
<div dir="auto">Your command needs to look like this</div>
<div dir="auto">NS_LOG=ndn.Consumer ./waf --run ndn-first --visualize<br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Alternatively, you can set environment variable with commands such as export. </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Mar 23, 2024, 1:10 AM 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="line-break:after-white-space">
<div>I’ve attached here, I’m currently using the simple scenario given in the documentation. After running “./waf” and “./waf —run ndn-simple”, I got the outputs below. </div>
<div>
<div><b>caster@ubuntu:~/ndnSim/ns-3$ ./waf --run ndn-first --visualize</b></div>
<div><b>Waf: Entering directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Waf: Leaving directory `/home/caster/ndnSim/ns-3/build'</b></div>
<div><b>Build commands will be stored in build/compile_commands.json</b></div>
<div><b>'build' finished successfully (1.699s)</b></div>
<div><b>Could not load plugin 'show_last_packets.py': No module named 'kiwi.ui'</b></div>
<div><b>Could not load icon applets-screenshooter due to missing gnomedesktop Python module</b></div>
<div><b>scanning topology: 3 nodes...</b></div>
<div><b>scanning topology: calling graphviz layout</b></div>
<div><b>scanning topology: all done.</b></div>
</div>
<div><br>
</div>
<div>From the documentation, I also noticed that “logging” and “debug” mode can be set using “./waf configure —logging/—debug”. But it gave me error showing no such option.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div style="line-break:after-white-space">
<div><br>
</div>
<div>Thanks,</div>
<div>Caster<br id="m_2396695572196925320x_lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年3月23日 下午3:48,Sirapop Theeranantachai <<a href="mailto:sirapop741@gmail.com" target="_blank" rel="noreferrer">sirapop741@gmail.com</a>> 写道:</div>
<br>
<div>
<div dir="auto">
<div>Could you send us your source code? You should be able to see some output. <br>
<br>
<div>
<div dir="ltr">On Fri, Mar 22, 2024, 8:04 PM 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn" target="_blank" rel="noreferrer">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-break:after-white-space">Hi,
<div><br>
</div>
<div>I want to run my own simulation, after using ./waf —run xx command, I can’t see any outputs.</div>
<div><br>
</div>
<div>I’ve tried the solution in the template, which uses <b>./waf configure —debug/./waf configure —logging</b>. But it’s not working, it shows “<b>waf: error: no such option</b>”. “<b><span style="background-color:rgb(238,255,204)">NS_LOG</span><span style="background-color:rgb(238,255,204);color:rgb(102,102,102)">=</span><span style="background-color:rgb(238,255,204)">ndn</span><span style="background-color:rgb(238,255,204);color:rgb(102,102,102)">.</span><span style="background-color:rgb(238,255,204)">Consumer</span><span style="background-color:rgb(238,255,204)">
</span><span style="background-color:rgb(238,255,204);color:rgb(102,102,102)">./</span><span style="background-color:rgb(238,255,204)">waf</span><span style="background-color:rgb(238,255,204)">
</span><span style="background-color:rgb(238,255,204);color:rgb(102,102,102)">--</span><span style="background-color:rgb(238,255,204)">run</span><span style="background-color:rgb(238,255,204);color:rgb(102,102,102)">=</span><span style="background-color:rgb(238,255,204)">ndn</span><span style="background-color:rgb(238,255,204);color:rgb(102,102,102)">-</span><span style="background-color:rgb(238,255,204)">simple</span></b>”
is not working as well. I wonder if I need to add some command in the source file to see the outputs?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Caster</div>
<div><br>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>