<div dir="ltr">back again to the list<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Federico Camara Halac</strong> <span dir="ltr"><<a href="mailto:camarafede@gmail.com">camarafede@gmail.com</a>></span><br>Date: Thu, Feb 28, 2019 at 10:59 PM<br>Subject: Re: [PD] help loading pix_opencv<br>To:  <<a href="mailto:ub@xdv.org">ub@xdv.org</a>><br></div><br><br><div dir="ltr">Hi ub, thanks for checking<div><br></div><div>Yes, you are indeed correct that opencv is now in version 4, where pix_opencv was built against opencv2. </div><div><br></div><div>avilleret has started to update it to opencv3, but I still could not compile it, so I had to make further changes: </div><div><br></div><div>The two things I did on my macos-compile branch were:</div><div>- included some missing headers</div><div>- removed some objects that depended on legacy module from Makefile.am, which weren't many, and I guess they need to be adapted soon.</div><div><br></div><div>After all that, it did compile, AND link, so pix_opencv.pd_darwin was created. But, the object is not instantiated in pd, giving the error pasted on my previous email.</div><div><br></div><div>I will still keep looking into this, but I am wondering if there is something in ./configure that I am missing.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 28, 2019 at 10:28 PM ub <<a href="mailto:ub@xdv.org" target="_blank">ub@xdv.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>i just saw your fork does have adaptions for opencv3, but it
      might still be a deprecation issue. i can't build it with opencv
      3.2.0, because it includes the legacy module and probably the C
      api. but maybe it's just the motion module has been relocated. see
      the second link<br>
    </p>
    <p><a class="m_-3723265360212593101gmail-m_-103401886579446724moz-txt-link-freetext" href="http://answers.opencv.org/question/42622/opencv-30-deprecated-opencv_legacy-module/" target="_blank">http://answers.opencv.org/question/42622/opencv-30-deprecated-opencv_legacy-module/</a></p>
    <p><a class="m_-3723265360212593101gmail-m_-103401886579446724moz-txt-link-freetext" href="http://answers.opencv.org/question/190863/motion-detection-undefined-symbols-for-architecture-arm64/" target="_blank">http://answers.opencv.org/question/190863/motion-detection-undefined-symbols-for-architecture-arm64/</a></p>
    <p>cheers,</p>
    <p>ub<br>
    </p>
    <div class="m_-3723265360212593101gmail-m_-103401886579446724moz-cite-prefix">On 28.02.19 22:15, ub wrote:<br>
    </div>
    <blockquote type="cite">
      
      <p>hey frederico,<br>
      </p>
      <p>you might be using a more modern major version of opencv than
        is referenced from the code of pix_opencv. calling functions
        this way apparently has been deprecated in opencv 3.</p>
      <p>if you have opencv2 installed somewhere (as you seem to have
        the headers because your build did succeed) you can force the
        use of the other version library with setting
        LD_LIBRARY_PATH=/path/to/opencv2 in the shell from which you
        start pd.</p>
      <p>hope that helps,</p>
      <p>ub<br>
      </p>
      <p><br>
      </p>
      <div class="m_-3723265360212593101gmail-m_-103401886579446724moz-cite-prefix">On 28.02.19 21:30, Federico Camara
        Halac wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">Hi, </div>
                <div dir="ltr"><br>
                </div>
                <div dir="ltr">I compiled latest pix_opencv from my
                  github fork, but I have linking problems.</div>
                <div dir="ltr"><br>
                </div>
                <div dir="ltr">I am on macos 10.14.2, mojave</div>
                <div dir="ltr"><br>
                </div>
                <div>Using `lipo -info`, all of pd, Gem.pd_darwin,
                  pix_opencv.pd_darwin and libopencv_*.dylib show as:
                  "Non-fat file ... architecture: x86_64"</div>
                <div dir="ltr"><br>
                </div>
                <div dir="ltr">
                  <div>
                    <div>This is the error on the console:</div>
                    <div><br>
                    </div>
                    <div>
                      <div>GEM: Graphics Environment for Multimedia</div>
                      <div>GEM: ver: 0.94.git v0.94_pre1</div>
                      <div>...</div>
                      <div>
                        <div>error:
                          /Users/federicocamarahalac/Documents/pix_opencv/pix_opencv.pd_darwin:
dlopen(/Users/federicocamarahalac/Documents/pix_opencv/pix_opencv.pd_darwin,
                          10): Symbol not found:
                          _cvCalcGlobalOrientation</div>
                        <div>  Referenced from:
                          /Users/federicocamarahalac/Documents/pix_opencv/pix_opencv.pd_darwin</div>
                        <div>  Expected in: flat namespace</div>
                        <div> in
                          /Users/federicocamarahalac/Documents/pix_opencv/pix_opencv.pd_darwin</div>
                        <div>not reloading 'image' plugins (already 5
                          loaded)</div>
                        <div> pix_opencv_contours</div>
                        <div>error: ... couldn't create</div>
                      </div>
                    </div>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  <div>Any pointers would be appreciated.</div>
                  <div><br>
                  </div>
                  <div>thanks,</div>
                  <div><br>
                  </div>
                  <div>fede</div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                  -- <br>
                  <div dir="ltr" class="m_-3723265360212593101gmail-m_-103401886579446724gmail-m_-9011376278788044803gmail_signature">
                    <div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io</a></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="m_-3723265360212593101gmail-m_-103401886579446724mimeAttachmentHeader"></fieldset>
        <pre class="m_-3723265360212593101gmail-m_-103401886579446724moz-quote-pre">_______________________________________________
<a class="m_-3723265360212593101gmail-m_-103401886579446724moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="m_-3723265360212593101gmail-m_-103401886579446724moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="m_-3723265360212593101gmail-m_-103401886579446724mimeAttachmentHeader"></fieldset>
      <pre class="m_-3723265360212593101gmail-m_-103401886579446724moz-quote-pre">_______________________________________________
<a class="m_-3723265360212593101gmail-m_-103401886579446724moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="m_-3723265360212593101gmail-m_-103401886579446724moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-3723265360212593101gmail_signature"><div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io/tv</a></div></div>
</div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io/tv</a></div></div></div>