<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Chris and Philipp,<br>
    <br>
    I'm also using ndnSIM from a non-standard location and I've went
    through a lot of trouble when doing so.<br>
    Here are some steps you could follow:<br>
    <br>
    1. After you "exported" your custom paths, you should run
    "ldconfig". This command tells the machine to configure its run time
    libraries.<br>
    2. Don't forget to configure, build, and install your ndnSIM files <b>with</b>
    the "--prefix" flag. <br>
        For example, the command will be like:<br>
       <tt> cd <ns-3-folder></tt><tt><br>
    </tt><tt>   ./waf configure --boost-includes=[boost-path]/include
      --boost-libs=[boost-path]/lib --enable-examples
      --prefix=[custom-path]</tt><tt><br>
    </tt><tt>   ./waf --prefix=[custom-path]</tt><tt><br>
    </tt><tt>   ./waf install -prefix=[custom-path]</tt><br>
    3. You should then check whether you can run some sample simulations
    with your ndnSIM.<br>
         e.g.) <tt>./waf --run=ndn-simple</tt><br>
    <br>
    Running a simulation using the Scenario Template Structure is a
    little bit different from when you are running a simulation directly
    from the ns-3-folder.<br>
    <br>
    4. The Scenario Template has its own <tt>waf</tt> that needs
    configuration.<br>
        e.g.) <br>
        <tt>cd <scenario-template-folder></tt><tt><br>
    </tt><tt>  </tt><tt>./waf configure --prefix=[custom-path]</tt><br>
    5. Then check whether you can run your simulation file from your
    Scenario Template folder.<br>
        e.g.) <tt>./waf --run=your-custom-simulation</tt><br>
    <br>
    When you get an error when configuring ndnSIM (i.e., running <tt>./waf
      configure</tt>) and you are sure that you have installed all the
    dependencies, your LD_LIBRARY_PATH or your PKG_CONFIG_PATH (or both)
    could be wrong.<br>
    When you get an error when building ndnSIM (i.e., running <tt>./waf</tt>),
    most of the time your simulation file has something wrong.<br>
    <br>
    Hope that this helps!<br>
    <br>
    Best,<br>
    Yoshimichi<br>
    <br>
    <div class="moz-cite-prefix">On 2017/05/03 18:04, Philipp Moll
      wrote:<br>
    </div>
    <blockquote
      cite="mid:6a134d78-f7d6-0970-bbef-d58757a3c94f@itec.aau.at"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <p>Hi Chris,</p>
      <p>I am using ndnSIM from a non-standard location, because I need
        the simulator on a server without superuser access rights.
        ...and it works.</p>
      <p>When I compiled ndnSIM i used the "--prefix" flag for choosing
        the location. I'm not completely sure, but I think no waf-flags
        are required for compiling the scenario. But maybe some more
        exports:<br>
      </p>
      <pre>export LIBRARY_PATH=/[custom-path]/bin/:$LIBRARY_PATH
export LD_LIBRARY_PATH=/[custom-path]/bin/lib/:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=/[custom-path]/bin/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/[custom-path]/bin/include/:$CPLUS_INCLUDE_PATH
export PKG_CONFIG_PATH=/[custom-path]/bin/lib/pkgconfig
export PATH=$PATH:/[custom-path]/bin/
</pre>
      <p>This are all exports on my machine, not all of them were needed
        for ndnSIM. But maybe one of them is required for your
        installation.</p>
      <p>The exact flag for compiling ndnSIM was
        "--prefix=/[custom-path]/bin" in my case.</p>
      <p>Regards,<br>
        Philipp</p>
      <div class="moz-cite-prefix">On 03/05/17 10:52, Chris Mantis
        wrote:<br>
      </div>
      <blockquote
cite="mid:CAEu=03rwG=S=KAawasFp-av7+fC1pZst3au5tLrY9d2HTFULcg@mail.gmail.com"
        type="cite">
        <div dir="ltr">Hi <span style="font-size:12.8px">Philipp, </span>It

          is not helping. I think this two exports IMO would take care
          of loading dynamic libraries at run time. I am having issues
          with compiling itself. There are bundle of headers from
          ndnSIM, which I am trying to use/include in my 'scenario' and
          only way I see at the moment is to install the ndnSIM in
          default (/usr/local/) path. Does this make sense? </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, May 3, 2017 at 12:39 AM,
            Philipp Moll <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:philipp.moll@itec.aau.at" target="_blank">philipp.moll@itec.aau.at</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <p>Hi Chris,</p>
                <p>have you tried exporting the "LD_LIBRARY_PATH" and
                  the "PKG_CONFIG_PATH" variables? Compiling the
                  scenario worked for me after the following exports.</p>
                <pre>export LD_LIBRARY_PATH=/[custom-path]<wbr>/bin/lib/:$LD_LIBRARY_PATH</pre>
    <pre>export PKG_CONFIG_PATH=/[custom-path]<wbr>/bin/lib/pkgconfig</pre>
    Regards,

    Philipp<div><div class="h5">

    

    <div class="m_5127920726269546209moz-cite-prefix">On 03/05/17 09:26, Chris Mantis wrote:

    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr"><font size="4">Hi,

          

          While using the 'scenario template structure' (as mentioned at
          the bottom of this page: <a moz-do-not-send="true" href="http://ndnsim.net/2.3/getting-started.html" target="_blank">http://ndnsim.net/2.3/getting-<wbr>started.html</a>), </font><font size="4">I fail to understand which (waf) configure options to
          use while configuring my scenario s.t. it </font><span style="font-size:large">uses the non-standard ndnSIM install
          paths to build my template base use case.</span>
        <div><font size="4">

          </font></div>
        <div><font size="4">Note: I have cloned the ndnSIM code base and
            configured it using --prefix option so that I install it in
            a non-standard location. 

          </font><span style="font-size:large">

          </span></div>
        <div><span style="font-size:large">any help?</span><font size="4">

          </font></div>
        <div><span style="font-size:large">

          </span></div>
        <div><span style="font-size:large">Chris. </span></div>
      </div>
      

      <fieldset class="m_5127920726269546209mimeAttachmentHeader"></fieldset>
      

      </div></div><pre>______________________________<wbr>_________________
ndnSIM mailing list
<a moz-do-not-send="true" class="m_5127920726269546209moz-txt-link-abbreviated" href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a>
<a moz-do-not-send="true" class="m_5127920726269546209moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a>
</pre>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

ndnSIM mailing list

<a moz-do-not-send="true" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a>

<a moz-do-not-send="true" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a>


</blockquote></div>
</div>



</blockquote>


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
ndnSIM mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a>
</pre>

</blockquote></body></html>