<div dir="ltr">Hi Anil,<div><br></div><div>I just created a very simple chronoChat example to show how to use ChronoSync library.</div><div>Here is the pointer:</div><div><a href="https://github.com/chengyu/Simple-Chrono-Chat.git">https://github.com/chengyu/Simple-Chrono-Chat.git</a> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 5:37 PM, Yingdi Yu <span dir="ltr"><<a href="mailto:yingdi@cs.ucla.edu" target="_blank">yingdi@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi anil,<div><br></div><div>Did you rebuild and install the ChronoSync lib? also make sure the ChronoSync submodule is updated.<div><span class="HOEnZb"><font color="#888888"><br><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div>Yingdi</div><div><br></div></div></span><br></span><br>
</div></font></span><div><div class="h5">
<br><div><blockquote type="cite"><div>On Feb 25, 2015, at 4:27 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Thanks Yingdi. <div><br></div><div>Is this something to do with ndn-cxx ? I am already using the latest code of it, but still getting this error now after rectifying earlier one. </div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div><div>[79/79] Linking build/ChronoChat</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `ndn::Scheduler::cancelEvent(std::shared_ptr<ndn::EventIdImpl> const&)'</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `ndn::Name::compare(ndn::Name const&) const'</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `ndn::Scheduler::scheduleEvent(boost::chrono::duration<long, boost::ratio<1l, 1000000000l> > const&, std::function<void ()> const&)'</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `ndn::Scheduler::cancelAllEvents()'</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `ndn::Scheduler::Scheduler(boost::asio::io_service&)'</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `unsigned long ndn::Name::wireEncode<false>(ndn::EncodingImpl<false>&) const'</div></div><div><div>/usr/local/lib/libChronoSync.so: undefined reference to `unsigned long ndn::Name::wireEncode<true>(ndn::EncodingImpl<true>&) const'</div></div><div><div>collect2: error: ld returned 1 exit status</div></div><div><div><br></div></div><div><div>Waf: Leaving directory `/home/ndnusr2/sandbox/ChronoChat/build'</div></div></blockquote></div><div><div>Build failed</div></div><div><br></div><div>/anil.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 4:05 PM, Yingdi Yu <span dir="ltr"><<a href="mailto:yingdi@cs.ucla.edu" target="_blank">yingdi@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>Please checkout the latest ChronoChat, commit <a href="https://github.com/named-data/ChronoChat/commit/1cc45d96b8d7b4c442469147f7ba3e6a37f90d4b" target="_blank">https://github.com/named-data/ChronoChat/commit/1cc45d96b8d7b4c442469147f7ba3e6a37f90d4b</a> should fix this bug.</div><div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div>Yingdi</div><div><br></div></div></span><br></span><br>
</div>
<br><div><blockquote type="cite"><div><div><div>On Feb 25, 2015, at 4:00 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:</div><br></div></div><div><div><div><div dir="ltr">Hi List,<div><br></div><div>I am trying to build the ChronoChat application, and my build is consistently failing due to following error log. Incidentally, I also see a bug report logged couple of weeks back; want to know if this is fixed already?</div><div><br></div><div><a href="http://redmine.named-data.net/issues/2477" target="_blank">http://redmine.named-data.net/issues/2477</a><br></div><div><br></div><div>The compilation error is: </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>[58/79] Compiling src/main.cpp</div></div><div><div>../src/chatroom-info.cpp: In instantiation of ‘std::size_t chronos::ChatroomInfo::wireEncode(ndn::encoding::EncodingImpl<P>&) const [with bool T = false; std::size_t = long unsigned int]’:</div></div><div><div>../src/chatroom-info.cpp:94:46:   required from here</div></div><div><div>../src/chatroom-info.cpp:75:85: error: ‘prependNonNegativeIntegerBlock’ was not declared in this scope</div></div><div><div>   totalLength += prependNonNegativeIntegerBlock(block, tlv::TrustModel, m_trustModel);</div></div><div><div>                                                                                     ^</div></div><div><div>../src/chatroom-info.cpp:75:85: note: suggested alternative:</div></div><div><div>In file included from /usr/local/include/ndn-cxx/name-component.hpp:27:0,</div></div><div><div>                 from /usr/local/include/ndn-cxx/name.hpp:30,</div></div><div><div>                 from /usr/local/include/ndn-cxx/interest.hpp:27,</div></div><div><div>                 from ../src/common.hpp:32,</div></div><div><div>                 from ../src/chatroom-info.hpp:14,</div></div><div><div>                 from ../src/chatroom-info.cpp:11:</div></div><div><div>/usr/local/include/ndn-cxx/encoding/block-helpers.hpp:55:1: note:   ‘ndn::prependNonNegativeIntegerBlock’</div></div><div><div> prependNonNegativeIntegerBlock(EncodingImpl<P>& encoder, uint32_t type, uint64_t number)</div></div><div><div> ^</div></div><div><div>../src/chatroom-info.cpp: In instantiation of ‘std::size_t chronos::ChatroomInfo::wireEncode(ndn::encoding::EncodingImpl<P>&) const [with bool T = true; std::size_t = long unsigned int]’:</div></div><div><div>../src/chatroom-info.cpp:97:20:   required from here</div></div><div><div>../src/chatroom-info.cpp:75:85: error: ‘prependNonNegativeIntegerBlock’ was not declared in this scope</div></div><div><div>   totalLength += prependNonNegativeIntegerBlock(block, tlv::TrustModel, m_trustModel);</div></div><div><div>                                                                                     ^</div></div><div><div>../src/chatroom-info.cpp:75:85: note: suggested alternative:</div></div><div><div>In file included from /usr/local/include/ndn-cxx/name-component.hpp:27:0,</div></div><div><div>                 from /usr/local/include/ndn-cxx/name.hpp:30,</div></div><div><div>                 from /usr/local/include/ndn-cxx/interest.hpp:27,</div></div><div><div>                 from ../src/common.hpp:32,</div></div><div><div>                 from ../src/chatroom-info.hpp:14,</div></div><div><div>                 from ../src/chatroom-info.cpp:11:</div></div><div><div>/usr/local/include/ndn-cxx/encoding/block-helpers.hpp:55:1: note:   ‘ndn::prependNonNegativeIntegerBlock’</div></div><div><div> prependNonNegativeIntegerBlock(EncodingImpl<P>& encoder, uint32_t type, uint64_t number)</div></div><div><div> ^</div></div><div><div>cc1plus: warning: unrecognized command line option "-Wno-nested-anon-types" [enabled by default]</div></div><div><div><br></div></div><div><div>In file included from ../src/chat-dialog.hpp:25:0,</div></div><div><div>                 from ../src/controller.hpp:26,</div></div><div><div>                 from ../src/main.cpp:14:</div></div><div><div>../src/digest-tree-scene.hpp:22:20: fatal error: Leaf.hpp: No such file or directory</div></div><div><div> #include <Leaf.hpp></div></div><div><div>                    ^</div></div><div><div>compilation terminated.</div></div></blockquote><div><div><br></div></div><div>/anil.</div><div><br></div></div></div></div>
_______________________________________________<br>Ndn-interest mailing list<br><a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div><br>_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks,</div><div><br></div>Chengyu</div></div>
</div>