<div dir="auto">I had been able to build digikam with opencv-legacy only. <div dir="auto"><br></div><div dir="auto">I'll give it a try next time. </div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Mar 2019, 11:31 Christoph Willing, <<a href="mailto:chris.willing@linux.com">chris.willing@linux.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 7/3/19 6:15 am, Tim Dickson via SlackBuilds-users wrote:<br>
> since updating python to 3.7.2 opencv-legacy fails to build with ..<br>
> <br>
> [ 85%] Generating pyopencv_generated_include.h,<br>
> pyopencv_generated_funcs.h, pyopencv_generated_types.h,<br>
> pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h<br>
> cd /tmp/SBo/opencv-3.1.0/build/modules/python3 && /usr/bin/python3<br>
> /tmp/SBo/opencv-3.1.0/modules/python/python3/..//src2/gen2.py<br>
> /tmp/SBo/opencv-3.1.0/build/modules/python3<br>
> /tmp/SBo/opencv-3.1.0/build/modules/python3/headers.txt<br>
> Note: Class l has more than 1 base class (not supported by Python C<br>
> extensions)<br>
>       Bases:  cv::a, cv::s, cv::s, cv::A, cv::l, cv::g, cv::o, cv::r,<br>
> cv::i, cv::t, cv::h, cv::m<br>
>       Only the first base class will be used<br>
> Note: Class l has more than 1 base class (not supported by Python C<br>
> extensions)<br>
>       Bases:  cv::a, cv::s, cv::s, cv::F, cv::i, cv::l, cv::e, cv::S,<br>
> cv::t, cv::o, cv::r, cv::a, cv::g, cv::e<br>
>       Only the first base class will be used<br>
> Generator error: class l (cname=cv::l) already exists<br>
> modules/python3/CMakeFiles/opencv_python3.dir/build.make:276: recipe for<br>
> target 'modules/python3/pyopencv_generated_include.h' failed<br>
> make[2]: *** [modules/python3/pyopencv_generated_include.h] Error 255<br>
> make[2]: Leaving directory '/tmp/SBo/opencv-3.1.0/build'<br>
> CMakeFiles/Makefile2:14021: recipe for target<br>
> 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed<br>
> make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2<br>
> make[1]: Leaving directory '/tmp/SBo/opencv-3.1.0/build'<br>
> Makefile:160: recipe for target 'all' failed<br>
> make: *** [all] Error 2<br>
> <br>
> I've checked, and made sure  opencv-legacy was not previously installed<br>
> when trying to recreate the package.<br>
> any ideas?<br>
<br>
It seems python3-3.7.2 is necessary but not sufficient by itself to<br>
trigger this fault. It's actually the presence of the optional numpy3<br>
(which requires python3) during configuration that enables building of<br>
the python3 wrappers, generating the error above during compilation.<br>
<br>
The simplest fix is to remove numpy3 from the system. Even with python3<br>
still installed (perhaps needed for other packages), the python3<br>
wrappers will not be generated if numpy is not available during<br>
configuration.<br>
<br>
This strategy allows opencv-legacy to build to completion but, of course<br>
without python3 wrappings. Is that a bit deal? Maybe but mitigated by:<br>
    1. possible use of python2 wrappings instead by installing numpy<br>
(not numpy3) which will use built in python2 to generate python2 wrappings.<br>
    2. initially, the only reason for having the opencv-legacy<br>
SlackBuild at all was to satisfy building a particular version of<br>
libkface which was required, in turn, for a particular version of<br>
digikam. AFAIK the python3 wrappings are not needed for this use case.<br>
<br>
Serious opencv users that may want the python3 bindings won't be using<br>
opencv-legacy anyway; rather the main opencv. The building of the main<br>
opencv package doesn't suffer this python3/numpy3 problem so I'm<br>
prepared to leave things as they are for opencv-legacy. Of course, if<br>
someone wants to research a fix, I'll happily apply it.<br>
<br>
chris<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank" rel="noreferrer">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div>