<div dir="ltr"><div>Thanks for the writeup, that&#39;s very helpful!<br><br></div>Pat<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 11:18 PM, Laurent Paul <span dir="ltr">&lt;<a href="mailto:laurent.paul@uclouvain.be" target="_blank">laurent.paul@uclouvain.be</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Dear Developpers,<br>
    <br>
    I&#39;ve foudn out how to attach the sample data.<br>
    So, to avoid future questions:<br>
    I&#39;ve added the files to the xcode project. In the &quot;project
    navigator&quot;, develop the project &quot;KiwiViewer&quot;, display the content of
    the directory &quot;KiwiViewer&quot;, there&#39;s a directory called &quot;resources&quot;,
    and again inside, there&#39;s &quot;datasets&quot;. Right click &quot;Add files...&quot; and
    give th sample datasets.<br>
    <br>
    I&#39;ve uncommented the content of unpackSampleData, and built the
    project. That&#39;s it.<br>
    <br>
    Laurent.<br>
    <div><br>
      <br>
      <br>
      Le 29/03/2013 13:43, Laurent Paul a écrit&nbsp;:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      
      Dear Pat, dear Deng,<br>
      <br>
      Where do I have to paste the sample data? Or where can I say to
      xcode where he can find these?<br>
      I have pasted them almost everywhere :-) ... with no success.<br>
      Once commented out, the simulator is working fine. I&#39;ve downloaded
      a 3D file from an URL, and everything is perfect! Cool!<br>
      <br>
      In the same way, where is located the directory &quot;Downloads&quot; of the
      Kiwiviewer App?<br>
      I have found the physical location....<br>
      <br>
      Many thanks,<br>
      Laurent.<br>
      <br>
      <div>Le 28/03/2013 17:59, 邓卓夫 a écrit&nbsp;:<br>
      </div>
      <blockquote type="cite">Hi pat,
        <div><br>
        </div>
        <div>&nbsp; &nbsp;Sorry to give you so much trouble.</div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp;In my last ves mail which was posted just 20 minutes
          ago, I said the simulator soon crashed as your 2 instructions
          and I want to know why.</div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp;But just now I use ipad to test the code and It works
          well strangely. puzzle me!!</div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp;So why the modified codes soon crashed in the simulator
          but works well in the ipad???&nbsp;</div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp;THANK YOU VERY MUCH!</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Deng zhuofu<br>
          kiwi fan<br>
          <br>
          <blockquote name="replyContent" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0">-----原始邮件-----<br>
            <b>发件人:</b> &quot;Pat Marion&quot; <a href="mailto:pat.marion@kitware.com" target="_blank">&lt;pat.marion@kitware.com&gt;</a><br>
            <b>发送时间:</b> 2013年3月28日 星期四<br>
            <b>收件人:</b> &quot;邓卓夫&quot; <a href="mailto:dengzf@swc.neu.edu.cn" target="_blank">&lt;dengzf@swc.neu.edu.cn&gt;</a><br>
            <b>抄送:</b> <a href="mailto:ves@public.kitware.com" target="_blank">ves@public.kitware.com</a><br>
            <b>主题:</b> Re: Re: [Ves] subject: about build kiwiviewer 2.0
            on iOS<br>
            <br>
            Hi,<br>
            <br>
            It might be crashing when it tries to copy the bundled
            sample datasets.&nbsp; In the branch I pushed, I did not include
            the sample datasets because I don&#39;t want to add them to the
            git repository.&nbsp; You could either download the sample
            datasets ( <a href="https://midas3.kitware.com/midas/folder/9479" target="_blank">https://midas3.kitware.com/midas/folder/9479</a>
            ) and add them to your xcode project, or comment out the
            code in DocumentsTableViewController.m where it unpacks the
            sample data.&nbsp; Just add a return statement at the very top of
            the unpackSampleData() function.<br>
            <br>
            Pat<br>
            <br>
            <br>
            <div class="gmail_quote">On Wed, Mar 27, 2013 at 3:06 AM,
              邓卓夫 <span dir="ltr">&lt;<a href="mailto:dengzf@swc.neu.edu.cn" target="_blank">dengzf@swc.neu.edu.cn</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                  <div>Hi,
                    <div><br>
                    </div>
                    <div>&nbsp; &nbsp;I will describe the errors in detail.</div>
                    <div><br>
                    </div>
                    <div>&nbsp; &nbsp;1) &nbsp;as your instructions, I create a new
                      folder named frameworks and put the kiwi, dropbox
                      and pcl frameworks in it.</div>
                    <div>&nbsp; &nbsp;</div>
                    <div>&nbsp; &nbsp;2) &nbsp;when I rerun the project,it errors that
                      Eigen/Dense not found. So also as your instruction
                      I check the Header Search Paths, and find there
                      are .../kiwi.frameworks/Headers, so WHY? &nbsp;Then I
                      check the kiwi.framework and find that the Eigen
                      as folder exists in the /kiwi.frameworks/Headers.
                      So I guess whether xcode cannot search subfolder
                      in the&nbsp;/kiwi.frameworks/Headers. So I add a new
                      path&nbsp;$(frameworks_dir)/kiwi.framework/Headers/eigen
                      in it and no errors.</div>
                    <div><br>
                    </div>
                    <div>&nbsp; &nbsp;3) Although it works and when I want to run
                      on the simulator but it produce 70 more warnings
                      and Suddenly exit showing FINISHED RUNNING
                      KIWIVIEWER ON IPAD SIMULATOR &nbsp;. For example, the
                      warning is that&nbsp;</div>
                    <div>
                      <p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br>
                      </p>
                      <p style="margin:0px"><span style="font-family:Menlo;font-size:11px;line-height:normal">&nbsp;
                          &nbsp; UITextAlignmentCenter is deprecated. first
                          deprecated in&nbsp;</span><font face="Menlo"><span style="font-size:11px;line-height:normal">iOS

                            6.0</span></font></p>
                      <p style="margin:0px"><font face="Menlo"><span style="font-size:11px;line-height:normal">...............</span></font></p>
                    </div>
                    <div><br>
                    </div>
                    <div>&nbsp; &nbsp; &nbsp;&nbsp;<span style="font-family:Menlo;font-size:11px;line-height:normal">ld:

                        warning: ignoring file
                        ../frameworks/pcl.framework/pcl, missing
                        required architecture i386 in file
                        ../frameworks/pcl.framework/pcl (1 slices)</span>
                      <p style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">
                        ld: warning: direct access in
                        std::tr1::_Sp_counted_base_impl&lt;vesTextureCoordinateVertexAttribute*,
                        std::tr1::_Sp_deleter&lt;vesTextureCoordinateVertexAttribute&gt;,

                        (__gnu_cxx::_Lock_policy)2&gt;::~_Sp_counted_base_impl()

                        to global weak symbol vtable for
                        std::tr1::_Sp_counted_base&lt;(__gnu_cxx::_Lock_policy)2&gt;
                        means the weak symbol cannot be overridden at
                        runtime. This was likely caused by different
                        translation units being compiled with different
                        visibility settings.</p>
                      <p style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">ld:

                        warning: direct access in
                        std::tr1::_Sp_counted_base_impl&lt;vesColorVertexAttribute*,
                        std::tr1::_Sp_deleter&lt;vesColorVertexAttribute&gt;,

                        (__gnu_cxx::_Lock_policy)2&gt;::~_Sp_counted_base_impl()

                        to global weak symbol vtable for
                        std::tr1::_Sp_counted_base&lt;(__gnu_cxx::_Lock_policy)2&gt;
                        means the weak symbol cannot be overridden at
                        runtime. This was likely caused by different
                        translation units being compiled with different
                        visibility settings.</p>
                      <p style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">ld:

                        warning: direct access in
                        std::tr1::_Sp_counted_base_impl&lt;vesNormalVertexAttribute*,
                        std::tr1::_Sp_deleter&lt;vesNormalVertexAttribute&gt;,

                        (__gnu_cxx::_Lock_policy)2&gt;::~_Sp_counted_base_impl()

                        to global weak symbol vtable for
                        std::tr1::_Sp_counted_base&lt;(__gnu_cxx::_Lock_policy)2&gt;
                        means the weak symbol cannot be overridden at
                        runtime. This was likely caused by different
                        translation units being compiled with different
                        visibility settings.</p>
                      <p style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">ld:

                        warning: direct access in
                        std::tr1::_Sp_counted_base_impl&lt;vesNormalVertexAttribute*,
                        std::tr1::_Sp_deleter&lt;vesNormalVertexAttribute&gt;,

                        (__gnu_cxx::_Lock_policy)2&gt;::~_Sp_counted_base_impl()

                        to global weak symbol vtable for
                        std::tr1::_Sp_counted_base&lt;(__gnu_cxx::_Lock_policy)2&gt;
                        means the weak symbol cannot be overridden at
                        runtime. This was likely caused by different
                        translation units being compiled with different
                        visibility settings.</p>
                      <p style="margin:0px 0px 0px 12px;font-size:11px;line-height:normal;font-family:Menlo">...............</p>
                      &nbsp; &nbsp;..........<br>
                      &nbsp; &nbsp;Finally it suspended. But I do not know why?</div>
                    <div><br>
                    </div>
                    <div>4) &nbsp;Finally I guess maybe the simulator is just
                      a process in the os and it may not support the
                      test very well. SO I intend to test on the iPad.
                      When the app start it suddenly suspend also. And
                      in the xcode an exception is thrown out in the
                      DocumentsTableViewController.m and the located
                      line is :</div>
                    <div><br>
                    </div>
                    <div>&nbsp; &nbsp;&nbsp;<span style="font-family:Menlo;font-size:11px;line-height:normal">&nbsp;&nbsp;</span><span style="font-family:Menlo;font-size:11px;line-height:normal;color:rgb(187,44,162)">if</span><span style="font-family:Menlo;font-size:11px;line-height:normal">&nbsp;([[</span><span style="font-family:Menlo;font-size:11px;line-height:normal;color:rgb(112,61,170)">NSFileManager</span><span style="font-family:Menlo;font-size:11px;line-height:normal">&nbsp;</span><span style="color:rgb(61,29,129);font-family:Menlo;font-size:11px;line-height:normal">defaultManager</span><span style="font-family:Menlo;font-size:11px;line-height:normal">]&nbsp;</span><span style="color:rgb(61,29,129);font-family:Menlo;font-size:11px;line-height:normal">copyItemAtPath</span><span style="font-family:Menlo;font-size:11px;line-height:normal">:srcFile&nbsp;</span><span style="color:rgb(61,29,129);font-family:Menlo;font-size:11px;line-height:normal">toPath</span><span style="font-family:Menlo;font-size:11px;line-height:normal">:destFile&nbsp;</span><span style="color:rgb(61,29,129);font-family:Menlo;font-size:11px;line-height:normal">error</span><span style="font-family:Menlo;font-size:11px;line-height:normal">:</span><span style="font-family:Menlo;font-size:11px;line-height:normal;color:rgb(187,44,162)">nil</span><span style="font-family:Menlo;font-size:11px;line-height:normal">]) {</span></div>


                    <p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">&nbsp;
                      &nbsp;&nbsp;<span style="color:rgb(187,44,162)">return</span>&nbsp;destFile;</p>
                    <p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">&nbsp;&nbsp;}</p>
                    <p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br>
                    </p>
                    <p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br>
                    </p>
                    <p style="margin:0px">Above all, Please help me
                      resolve these problems. Whether my configuration
                      for the kiwiviewer has some mistakes leads to the
                      problems. What is the right way?&nbsp;</p>
                    <p style="margin:0px"><br>
                    </p>
                    <p style="margin:0px">Thank you very much!</p>
                    <p style="margin:0px"><br>
                    </p>
                    <p style="margin:0px">Deng Zhuofu</p>
                    <p style="margin:0px">&nbsp; kiwi fan</p>
                    <br>
                    <br>
                  </div>
                </div>
                <blockquote name="replyContent" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0">
                  <div>
                    <div>-----原始邮件-----<br>
                      <b>发件人:</b> &quot;Pat Marion&quot; &lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br>
                      <b>发送时间:</b> 2013年3月26日 星期二<br>
                      <b>收件人:</b> &quot;邓卓夫&quot; &lt;<a href="mailto:dengzf@swc.neu.edu.cn" target="_blank">dengzf@swc.neu.edu.cn</a>&gt;<br>
                      <b>抄送:</b> <a href="mailto:ves@public.kitware.com" target="_blank">ves@public.kitware.com</a><br>
                      <b>主题:</b> Re: [Ves] subject: about build
                      kiwiviewer 2.0 on iOS<br>
                      <br>
                    </div>
                  </div>
                  <div>
                    <div>You still need to provide more
                      information before we can help you.<br>
                      <br>
                      Where did you put the frameworks?&nbsp; You should
                      create a directory in Apps/iOS called frameworks
                      and put them in there.<br>
                      <br>
                      Please check that the headers are actually found
                      in the kiwi.framework/Headers directory (they
                      should be).<br>
                      <br>
                      In Xcode, go to build settings and look at the
                      settings for Header Search Paths.&nbsp; You should see:
                      &quot;../frameworks/kiwi.framework/Headers&quot;.&nbsp; Verify
                      the headers are there.<br>
                      <br>
                      <br>
                      Pat<br>
                      <br>
                      <div class="gmail_quote"> On Tue, Mar 26, 2013 at
                        1:25 AM, 邓卓夫 <span dir="ltr">&lt;<a href="mailto:dengzf@swc.neu.edu.cn" target="_blank">dengzf@swc.neu.edu.cn</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hello developers,
                          <div><br>
                          </div>
                          <div>&nbsp; &nbsp; &nbsp; There is a problem which puzzles me
                            a week, Please help me!</div>
                          <div><br>
                          </div>
                          <div>&nbsp; &nbsp; &nbsp; A week ago, I posted my question
                            that How to build the kiwiviewer 2.0 on iOS.
                            Experts has replied me but I did not
                            succeed. As the instruction, I download the
                            dropbox.framework and import them into the
                            project. I also download pcl.framework and
                            kiwi.framework from the <a href="http://packages.kitware.com" target="_blank">packages.kitware.com</a>
                            and also import them.</div>
                          <div>&nbsp; &nbsp; &nbsp; So next step, through the adding
                            files the project I import these 3
                            frameworks. But There are always errors that
                            for examples the vesMidasClient.h and some
                            others .h file can not found. So I want to
                            know why it produce so many errors? Is the
                            way I add framework wrong? Please tell me
                            the right way how to build kiwiviewer 2.0 on
                            ios in details.</div>
                          <div><br>
                          </div>
                          <div>&nbsp; &nbsp;Thank you very much really!</div>
                          <div><br>
                          </div>
                          <div>Deng&nbsp;</div>
                          <div><br>
                          </div>
                          <div>a fan for k iwiviewer&nbsp;</div>
                          <br>
                          <br>
                          <br>
                          <br>
_______________________________________________<br>
                          Ves mailing list<br>
                          <a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a><br>
                          <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </div>
                </blockquote>
                <br>
                <br>
                <br>
              </blockquote>
            </div>
            <br>
          </blockquote>
        </div>
        <br>
        <br>
        <br>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
Ves mailing list
<a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><br></div>