包括opencv的Bitbake食谱 [英] Bitbake recipe that includes opencv

查看:521
本文介绍了包括opencv的Bitbake食谱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图得到一个非常简单的食谱,使用bitbake建立,我不知道为什么opencv不能包括。所有的例子我发现使用这个设置,似乎没有问题链接到opencv。我对bitbake相当新,害怕我是误解了一些很简单的东西。感谢您提供任何帮助。

I am trying to get a very simple recipe to build using bitbake, and I cannot figure out why opencv cannot be included. All the example I have found use this setup and appear to have no problem linking against opencv. I am fairly new to bitbake, and fear I am be misunderstanding something very simple. Thanks in advance for any help you can provide.

收件人:

UMMARY = "Hello"
SRCNAME = "Hello"

depends += "opencv"

LICENSE = "PSF"
LIC_FILES_CHKSUM = "file://${TOPDIR}/Yocto/Recipies/LICENSE.txt;md5=7424386ffe323e815ee62ee9ad591dd8"

SRCREV = "master"
SRC_URI = "https://developer-binaries.s3.amazonaws.com/hello-1.0.zip"
SRC_URI[md5sum] = "ca5940b7e30c489c4304c467252980f5"

inherit pkgconfig cmake

CMakeLists:

CMakeLists:

PROJECT(Hello)

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)

FIND_PACKAGE(OpenCV REQUIRED)

ADD_EXECUTABLE(Hello
    Main.cpp)

INSTALL(FILES
 ${CMAKE_BINARY_DIR}/Hello
  DESTINATION ${exec_prefix}/bin)

Bitbake错误:

Bitbake Error:

ERROR: Function failed: do_configure (log file is located at /home/ubuntu/oe-core/build/out-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/hello/1.0-r0/temp/log.do_configure.5288)
ERROR: Logfile of failure stored in: /home/ubuntu/oe-core/build/out-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/hello/1.0-r0/temp/log.do_configure.5288
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| -- The C compiler identification is GNU 4.8.3
| -- The CXX compiler identification is GNU 4.8.3
| -- Check for working C compiler: /home/ubuntu/oe-core/build/out-eglibc/sysroots/x86_64-linux/usr/bin/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc
| -- Check for working C compiler: /home/ubuntu/oe-core/build/out-eglibc/sysroots/x86_64-linux/usr/bin/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -- works
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working CXX compiler: /home/ubuntu/oe-core/build/out-eglibc/sysroots/x86_64-linux/usr/bin/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-g++
| -- Check for working CXX compiler: /home/ubuntu/oe-core/build/out-eglibc/sysroots/x86_64-linux/usr/bin/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-g++ -- works
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| CMake Error at CMakeLists.txt:5 (FIND_PACKAGE):
|   By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
|   asked CMake to find a package configuration file provided by "OpenCV", but
|   CMake did not find one.
| 
|   Could not find a package configuration file provided by "OpenCV" with any
|   of the following names:
| 
|     OpenCVConfig.cmake
|     opencv-config.cmake
| 
|   Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
|   "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
|   provides a separate development package or SDK, be sure it has been
|   installed.
| 
| 
| -- Configuring incomplete, errors occurred!
| See also "/home/ubuntu/oe-core/build/out-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/hello/1.0-r0/build/CMakeFiles/CMakeOutput.log".
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/ubuntu/oe-core/build/out-eglibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/hello/1.0-r0/temp/log.do_configure.5288)
ERROR: Task 6 (/home/ubuntu/oe-core/build/Yocto/Recipies/hello.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 540 tasks of which 539 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
No currently running tasks (537 of 549)


推荐答案

尝试将depend改为DEPENDS - 大小写。

Try changing "depends" to "DEPENDS" - case matters.

这篇关于包括opencv的Bitbake食谱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆