<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: opencv_3.4.bb build failed when using PACKAGECONFIG python2 or python3</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976234#M145261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello zohan Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for keeping this thread updated. Have you tried baking the OpenCV without modifications first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Feb 2020 22:57:19 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2020-02-03T22:57:19Z</dc:date>
    <item>
      <title>opencv_3.4.bb build failed when using PACKAGECONFIG python2 or python3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976233#M145260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Yocto 4.9.88(rock 2.4) BSP and bitbake opencv without modifying any files, the mission is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to use opencv called by python, so I add two&amp;nbsp;PACKAGECONFIG&amp;nbsp; python2 &amp;amp; python3 in&amp;nbsp;opencv_3.4.bb&lt;/P&gt;&lt;P&gt;and remove&amp;nbsp;&lt;STRONG&gt;PACKAGECONFIG_remove_imx&amp;nbsp; &amp;nbsp;= "eigen python3"&lt;/STRONG&gt; in&amp;nbsp;opencv_3.4.bbappend.&lt;/P&gt;&lt;P&gt;The build is failed this time.&lt;/P&gt;&lt;P&gt;The error message is as below&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;| [ 8%] Built target IlmImf&lt;BR /&gt;| make[1]: Leaving directory '/ACS_Disk2/MS5776/20191226/imx-yocto-bsp/imx-linux-rocko/MS5776_V107/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/build'&lt;BR /&gt;| Makefile:165: recipe for target 'all' failed&lt;BR /&gt;| make: *** [all] Error 2&lt;BR /&gt;| WARNING: exit code 2 from a shell command.&lt;BR /&gt;| ERROR: Function failed: do_compile (log file is located at /ACS_Disk2/MS5776/20191226/imx-yocto-bsp/imx-linux-rocko/MS5776_V107/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/temp/log.do_compile.7712)&lt;BR /&gt;ERROR: Task (/ACS_Disk2/MS5776/20191226/imx-yocto-bsp/imx-linux-rocko/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-graphics/opencv/opencv_3.4.bb:do_compile) failed with exit code '1'&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell me what happened? And how do I fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;updated in 2020/01/30&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I used "bitbake -D opencv" and found the error message :&lt;/P&gt;&lt;P&gt;make[2]: ***&amp;nbsp;No rule to make target 'modules/dnn/attr_value.pb.cc', needed by 'modules/python_bindings_generator/pyopencv_generated_include.h'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I tried to follow the steps from&amp;nbsp;&lt;A class="link-titled" href="https://github.com/opencv/opencv/issues/10474" title="https://github.com/opencv/opencv/issues/10474"&gt;No rule to make target 'modules/dnn/attr_value.pb.cc' · Issue #10474 · opencv/opencv · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I&amp;nbsp;have not found a way to build opencv_dnn first in Yocto BSP yet.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 07:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976233#M145260</guid>
      <dc:creator>zohanlin</dc:creator>
      <dc:date>2020-01-07T07:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: opencv_3.4.bb build failed when using PACKAGECONFIG python2 or python3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976234#M145261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello zohan Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for keeping this thread updated. Have you tried baking the OpenCV without modifications first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 22:57:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976234#M145261</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2020-02-03T22:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: opencv_3.4.bb build failed when using PACKAGECONFIG python2 or python3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976235#M145262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gusarambula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have built OpenCV successfully without&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;modifications.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;zohan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 02:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976235#M145262</guid>
      <dc:creator>zohanlin</dc:creator>
      <dc:date>2020-02-04T02:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: opencv_3.4.bb build failed when using PACKAGECONFIG python2 or python3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976236#M145263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;G&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;usarambula,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I still used &lt;SPAN&gt;Yocto 4.9.88(rock 2.4) BSP and&amp;nbsp;&lt;/SPAN&gt;updated the OpenCV to v4.0.1(from imx-yocto-L4.14.98_2.3.0), then I enabled python3, OpenCL, dnn and text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Finally, I built it successfully.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But I tested the source code as below&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import cv2&lt;BR /&gt;img = cv2.UMat(cv2.imread("image.jpg", cv2.IMREAD_COLOR))&lt;BR /&gt;imgUMat = cv2.UMat(img)&lt;BR /&gt;gray = cv2.cvtColor(&lt;SPAN style="background-color: #f6f6f6;"&gt;imgUMat&lt;/SPAN&gt;, cv2.COLOR_BGR2GRAY)&lt;BR /&gt;gray = cv2.GaussianBlur(gray, (7, 7), 1.5)&lt;BR /&gt;gray = cv2.Canny(gray, 0, 50)&lt;/P&gt;&lt;P&gt;cv2.imwrite('test.jpg',img)&lt;BR /&gt;cv2.imwrite('test_UMat.jpg' , imgUMat)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it reported an error from OpenCL&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[ WARN:0] Using world accessible cache directory. This may be not secure: /var/tmp/&lt;BR /&gt;OpenCL error CL_INVALID_WORK_GROUP_SIZE (-54) during call: clEnqueueNDRangeKernel('row_filter_C1_D0', dims=2, globalsize=128x528x1, localsize=16x16x1) sync=false&lt;BR /&gt;[ 1] 25: FMA_MUL temp(322).dp.x, 2.000000, temp(319).dp.x&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tested the code in OpenCV v3.4, it worked and no error.&lt;/P&gt;&lt;P&gt;Could you tell me what happened and how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2020 11:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976236#M145263</guid>
      <dc:creator>zohanlin</dc:creator>
      <dc:date>2020-04-06T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: opencv_3.4.bb build failed when using PACKAGECONFIG python2 or python3</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976237#M145264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zohan Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad to hear that you were able to build it on a newer BSP. (Some older BSPs are having problems especially with repositories having been moved).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would need to ask you to please branch your question to a new thread (or open a new thread) as it's more related to the actual an OpenCV implementation and not building it in Yocto, and this will also give it more visibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 22:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-3-4-bb-build-failed-when-using-PACKAGECONFIG-python2-or/m-p/976237#M145264</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2020-04-09T22:28:21Z</dc:date>
    </item>
  </channel>
</rss>

