[PD] Fwd: help loading pix_opencv

Federico Camara Halac camarafede at gmail.com
Thu Feb 28 23:00:03 CET 2019


back again to the list

---------- Forwarded message ---------
From: Federico Camara Halac <camarafede at gmail.com>
Date: Thu, Feb 28, 2019 at 10:59 PM
Subject: Re: [PD] help loading pix_opencv
To: <ub at xdv.org>


Hi ub, thanks for checking

Yes, you are indeed correct that opencv is now in version 4, where
pix_opencv was built against opencv2.

avilleret has started to update it to opencv3, but I still could not
compile it, so I had to make further changes:

The two things I did on my macos-compile branch were:
- included some missing headers
- removed some objects that depended on legacy module from Makefile.am,
which weren't many, and I guess they need to be adapted soon.

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.

I will still keep looking into this, but I am wondering if there is
something in ./configure that I am missing.



On Thu, Feb 28, 2019 at 10:28 PM ub <ub at xdv.org> wrote:

> 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
>
>
> http://answers.opencv.org/question/42622/opencv-30-deprecated-opencv_legacy-module/
>
>
> http://answers.opencv.org/question/190863/motion-detection-undefined-symbols-for-architecture-arm64/
>
> cheers,
>
> ub
> On 28.02.19 22:15, ub wrote:
>
> hey frederico,
>
> 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.
>
> 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.
>
> hope that helps,
>
> ub
>
>
> On 28.02.19 21:30, Federico Camara Halac wrote:
>
> Hi,
>
> I compiled latest pix_opencv from my github fork, but I have linking
> problems.
>
> I am on macos 10.14.2, mojave
>
> Using `lipo -info`, all of pd, Gem.pd_darwin, pix_opencv.pd_darwin and
> libopencv_*.dylib show as: "Non-fat file ... architecture: x86_64"
>
> This is the error on the console:
>
> GEM: Graphics Environment for Multimedia
> GEM: ver: 0.94.git v0.94_pre1
> ...
> 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
>   Referenced from:
> /Users/federicocamarahalac/Documents/pix_opencv/pix_opencv.pd_darwin
>   Expected in: flat namespace
>  in /Users/federicocamarahalac/Documents/pix_opencv/pix_opencv.pd_darwin
> not reloading 'image' plugins (already 5 loaded)
>  pix_opencv_contours
> error: ... couldn't create
>
>
> Any pointers would be appreciated.
>
> thanks,
>
> fede
>
>
> --
> http://fdch.github.io <http://fdch.github.io/tv>
>
> _______________________________________________Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>
>
> _______________________________________________Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
http://fdch.github.io/tv


-- 
http://fdch.github.io/tv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190228/7e633738/attachment-0001.html>


More information about the Pd-list mailing list