Build failed while builidng opencv recipe!!

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Build failed while builidng opencv recipe!!

1,330件の閲覧回数
dtvs
Contributor II

(Target machine: Wandboard quad version c, Host machine Ubuntu 14.04,and using Yocto Jethro branch)

I am trying to compile the sample opencv code.
I have created a recipe  following the instruction yocto manual.

Initially I have added all the libraries related to openCv
by referring the below link.

www.engcore.com/2014/02/building-opencv-2-4-x-for-freescales-imx6-bsp-yocto
Then i gave bitbake core-image-x11.
I was able to build successfully.

(I verified the building of the cpp file by creating a simple .cpp file, It compiled correctly)


Next, I created a recipe and added the .cpp code related to opencv.Changed the recipe.bb file to compile .cpp file.

I am not able to compile the recipe .
Please let me know the steps followed are correct or not.

Below is the error.
In `main':
| helloworld.cpp:(.text+0x68): undefined reference to `cv::VideoCapture::VideoCapture()'

Any additional library i need to include in the .bb file while building receipe?

Below is the source code used for building!!!

#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <iostream>
int main(int, char**) {    
cv::VideoCapture vcap;    
cv::Mat image;     // This works on a D-Link CDS-932L    
const std::string videoStreamAddress = "http://<username:password>@<ip_address>/video.cgi?.mjpg";     //open the video stream and make sure it's opened    
if(!vcap.open(videoStreamAddress)) {        
std::cout << "Error opening video stream or file" << std::endl;        
 return -1;    
 }     
 for(;;) 
 {        
 if(!vcap.read(image)) {            
 std::cout << "No frame" << std::endl;            
 cv::waitKey();        
 }        
 cv::imshow("Output Window", image);        
 if(cv::waitKey(1) >= 0) 
 break;    
 }   
}
ラベル(3)
タグ(1)
0 件の賞賛
返信
1 返信

1,079件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi harsh

for opencv one can follow guidelines provided on

OpenCV support for i.MX6 Capture Drivers 

Also if this is specific for wandboard issue it may posted on

meta-fsl-arm mailing list, so that someone familiar with that board could try

to assist you.
https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信