2 Replies Latest reply on Nov 17, 2014 9:50 PM by heedle

    ERROR opencv-fix-pkgconfig-generation.patch image-full-galileo.bb


      I try to build clanton yocto image by Ubuntu 12.04,but I meet some error.


      ERROR: Command Error: exit status: 1  Output:

      Applying patch opencv-fix-pkgconfig-generation.patch

      can't find file to patch at input line 13

      Perhaps you used the wrong -p or --strip option?

      The text leading up to this was:


      |Fix pkg-config generation


      |Replace absolute library path with library name spec and library search

      |path option.


      |The fix has been provided by Ray Rashif (code.opencv.org/issues/1925)


      |Upstream-Status: Pending


      |diff -Nbaur OpenCV-2.4.3.orig/cmake/OpenCVGenPkgconfig.cmake OpenCV-2.4.3/cmake/OpenCVGenPkgconfig.cmake

      |--- OpenCV-2.4.3.orig/cmake/OpenCVGenPkgconfig.cmake    2012-11-04 08:40:14.243505926 +0000

      |+++ OpenCV-2.4.3/cmake/OpenCVGenPkgconfig.cmake    2012-11-04 08:40:42.286649120 +0000


      No file to patch.  Skipping patch.

      3 out of 3 hunks ignored

      Patch opencv-fix-pkgconfig-generation.patch does not apply (enforce with -f)

      ERROR: Function failed: patch_do_patch

      ERROR: Logfile of failure stored in: /home/heedle/Intel-yocto-galileo-test/meta-clanton_v1.0.1/yocto_build/tmp/work/i586-poky-linux-uclibc/opencv/2.4.3-r2/temp/log.do_patch.2456

      ERROR: Task 443 (/home/heedle/Intel-yocto-galileo-test/meta-clanton_v1.0.1/meta-oe/meta-oe/recipes-support/opencv/opencv_2.4.3.bb, do_patch) failed with exit code '1'

      ERROR: Function failed: copy_grub_conf (see /home/heedle/Intel-yocto-galileo-test/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/image-full-galileo/1.0-r0/temp/log.do_grub.2848 for further information)

      ERROR: Logfile of failure stored in: /home/heedle/Intel-yocto-galileo-test/meta-clanton_v1.0.1/yocto_build/tmp/work/clanton-poky-linux-uclibc/image-full-galileo/1.0-r0/temp/log.do_grub.2848



      The original opencv_2.4.3.bb can not fetch, so I rewrite the opencv_2.4.3.bb:

      SRC_URI = "ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/OpenCV-${PV}.tar.bz2 \

                 file://opencv-fix-pkgconfig-generation.patch \



      SRC_URI[md5sum] = "c0a5af4ff9d0d540684c0bf00ef35dbe"

      SRC_URI[sha256sum] = "f8fbe985978d4eae73e8c3b526ed40a37d4761d2029a5b035233f58146f6f59b"


      It can do work, but the error happened during build yocto image .

      The ERROR 5 is also a problem which I do not know how to deal with it.

      Can you help me?