Yocto with OpenCV support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Yocto with OpenCV support

跳至解决方案
3,014 次查看
gauthier
Contributor III

I am trying to build OpenCV and include it in my yocto distribution, as per Computer Vision on i.MX Processors: Building OpenCV-2.4.X for Freescale's i.MX6 BSP (Yocto)

 

However, I have troubles with numpy. See the attached log.do_compile.2791.

It looks to me like some libraries are missing (mkl, vml, guide, ptf77blas, ...).

 

It also looks like (end of the log file) the linker is trying to link to my host's /usr/bin instead of taking the target's:

 

| /home/gauthier/freescale-fsl/build/tmp/sysroots/x86_64-linux/usr/libexec/cortexa9hf-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation

| /usr/lib/liblapack.so: file not recognized: File format not recognized

 

It might be trying to access this since the necessary package for the target is not available in the target's rootfs. When looking for mkl, vml, it does search the target's rootfs first, then falls back to the host's (row 7 of the log).

 

The blog tutorial has comments that suggest I am not alone in this, however the commenter just disabled python to solve the problem.

 

I would like to build a yocto distribution with support for OpenCV (including python an numpy) any idea what I might be doing wrong? I am working on the dora branch (ee17367838).

Original Attachment has been moved to: log.do_compile.2791.zip

标签 (3)
标记 (3)
0 项奖励
回复
1 解答
1,934 次查看
gauthier
Contributor III

Using the daisy release instead of dora solved the problem.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,935 次查看
gauthier
Contributor III

Using the daisy release instead of dora solved the problem.

0 项奖励
回复