<?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>topic Re: Build failed while builidng opencv recipe!! in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Build-failed-while-builidng-opencv-recipe/m-p/727750#M113183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harsh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for opencv one can follow guidelines provided on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/464660"&gt;OpenCV support for i.MX6 Capture Drivers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if this is specific for wandboard issue it may posted on&lt;/P&gt;&lt;P&gt;meta-fsl-arm mailing list, so that someone familiar with that board could try&lt;/P&gt;&lt;P&gt;to assist you.&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale" rel="nofollow" target="_blank"&gt;https://lists.yoctoproject.org/listinfo/meta-freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 06:36:53 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-01-16T06:36:53Z</dc:date>
    <item>
      <title>Build failed while builidng opencv recipe!!</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Build-failed-while-builidng-opencv-recipe/m-p/727749#M113182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Target machine: Wandboard quad version c, Host machine Ubuntu 14.04,and using Yocto Jethro branch)&lt;/P&gt;&lt;P&gt;I am trying to compile the sample opencv code.&lt;BR /&gt;I have created a recipe&amp;nbsp; following the instruction yocto manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I have added all the libraries related to openCv&lt;BR /&gt;by referring the below link.&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.engcore.com%2F2014%2F02%2Fbuilding-opencv-2-4-x-for-freescales-imx6-bsp-yocto" rel="nofollow noopener noreferrer" target="_blank"&gt;www.engcore.com/2014/02/building-opencv-2-4-x-for-freescales-imx6-bsp-yocto&lt;/A&gt;&lt;BR /&gt;Then i gave bitbake &lt;STRONG&gt;core-image-x11.&lt;/STRONG&gt;&lt;BR /&gt;I was able to build successfully.&lt;/P&gt;&lt;P&gt;(I verified the building of the cpp file by creating a simple .cpp file, It compiled correctly)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Next, I created a recipe and added the .cpp code related to opencv.Changed the recipe.bb file to compile .cpp file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to compile the recipe .&lt;BR /&gt;Please let me know the steps followed are correct or not.&lt;/P&gt;&lt;P&gt;Below is the error.&lt;BR /&gt;&lt;STRONG&gt;In `main':&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| helloworld.cpp:(.text+0x68): undefined reference to `cv::VideoCapture::VideoCapture()'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any additional library i need to include in the .bb file while building receipe?&lt;/P&gt;&lt;P&gt;Below is the source code used for building!!!&lt;/P&gt;&lt;PRE class=""&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;opencv2/opencv.hpp&amp;gt;
#include &amp;lt;iostream&amp;gt;
int main(int, char**) {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
cv::VideoCapture vcap;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
cv::Mat image;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This works on a D-Link CDS-932L&amp;nbsp;&amp;nbsp;&amp;nbsp; 
const std::string videoStreamAddress = "http://&amp;lt;username:password&amp;gt;@&amp;lt;ip_address&amp;gt;/video.cgi?.mjpg";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //open the video stream and make sure it's opened&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if(!vcap.open(videoStreamAddress)) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
std::cout &amp;lt;&amp;lt; "Error opening video stream or file" &amp;lt;&amp;lt; std::endl;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 return -1;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 for(;;) 
 {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 if(!vcap.read(image)) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 std::cout &amp;lt;&amp;lt; "No frame" &amp;lt;&amp;lt; std::endl;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 cv::waitKey();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 cv::imshow("Output Window", image);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 if(cv::waitKey(1) &amp;gt;= 0) 
 break;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }&amp;nbsp;&amp;nbsp; 
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 05:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Build-failed-while-builidng-opencv-recipe/m-p/727749#M113182</guid>
      <dc:creator>dtvs</dc:creator>
      <dc:date>2018-01-16T05:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Build failed while builidng opencv recipe!!</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Build-failed-while-builidng-opencv-recipe/m-p/727750#M113183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harsh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for opencv one can follow guidelines provided on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/464660"&gt;OpenCV support for i.MX6 Capture Drivers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if this is specific for wandboard issue it may posted on&lt;/P&gt;&lt;P&gt;meta-fsl-arm mailing list, so that someone familiar with that board could try&lt;/P&gt;&lt;P&gt;to assist you.&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Flists.yoctoproject.org%2Flistinfo%2Fmeta-freescale" rel="nofollow" target="_blank"&gt;https://lists.yoctoproject.org/listinfo/meta-freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 06:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Build-failed-while-builidng-opencv-recipe/m-p/727750#M113183</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-01-16T06:36:53Z</dc:date>
    </item>
  </channel>
</rss>

