This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: OpenCV usage with ffmpeg

Part Number: AM5728

Hello,

          I have using opencv which has installed with latest SDK of AM5728 EVM board.

As we know there is "ffmpeg" is not supported because of may be not selected on compilation time.

I can share some details of board which reveals the ffmpeg like as below:

Video I/O:
    DC1394 1.x:                  NO
    DC1394 2.x:                  NO
    FFMPEG:                      NO
      codec:                     NO
      format:                    NO
      util:                      NO
      swscale:                   NO
      resample:                  NO
      gentoo-style:              NO
    GStreamer:                   
      base:                      YES (ver 1.12.2)
      video:                     YES (ver 1.12.2)
      app:                       YES (ver 1.12.2)
      riff:                      YES (ver 1.12.2)
      pbutils:                   YES (ver 1.12.2)
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    OpenNI2:                     NO
    PvAPI:                       NO
    GigEVisionSDK:               NO
    UniCap:                      NO
    UniCap ucil:                 NO
    V4L/V4L2:                    Using libv4l1 (ver 1.10.1) / libv4l2 (ver 1.10.1)
    XIMEA:                       NO
    Xine:                        NO
    gPhoto2:                     YES

Now, how can i give support of "ffmpeg" to opencv.

Please, share me steps to process and use opencv with ffmpeg.

Regards,

Kishan Patel.

  • Hello Kishan Patel,

    You could build ffmpeg itself by this command MACHINE=am57xx-evm bitbake ffmpeg.

    When the build completed you will have the ffmpeg at <tisdk>/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ffmpeg/3.1.3-r0.arago0/deploy-ipks/armv7ahf-neon

    Transfer the packages to your board and install.

    opkg install libpostproc54_3.1.3-r0.arago0_armv7ahf-neon.ipk
    opkg install libswscale4_3.1.3-r0.arago0_armv7ahf-neon.ipk
    opkg install libavfilter6_3.1.3-r0.arago0_armv7ahf-neon.ipk
    opkg install libavdevice57_3.1.3-r0.arago0_armv7ahf-neon.ipk
    opkg install ffmpeg_3.1.3-r0.arago0_armv7ahf-neon.ipk


    You could try to enable it in opencv the same way as you enabled gstreamer support.

    Hope this helps.

    BR
    Margarita

  • Hello Margarita,
    I have already done above steps and cross-compile ffmpeg for board.
    I can use ffmpeg on board.
    But, when i try to use it with opencv, its not working.
    So, i was thinking that may be there is need to recompile opencv with enable of ffmpeg.

    Am i right?
    Guide me next steps if all steps are required(I have already bitbake ffmpeg).

    Regards,
    Kishan Patel.
  • Hello,

    kishan patel14 said:
    So, i was thinking that may be there is need to recompile opencv with enable of ffmpeg.

    Am i right?

    Yes, enable the flag for ffmpeg in opencv, the way should be the same as for gstreamer.

    BR
    Margarita

  • opencv_ffmpeg.cppHello Margarita,

              I am sharing source file of opencv, compilation command and output of it as below:

    Command:  g++ opencv_ffmpeg.cpp -o opencv_ffmpeg `pkg-config --cflags --libs opencv`

    Output: Input error

    Regards,

    Kishan Patel.

  • Hello,
    Sorry, i dont get "enable the flag for ffmpeg in opencv, the way should be the same as for gstreamer.".
    Regards,
    Kishan Patel.
  • Hello,

    I checked it seems that by default gstreamer is enable so you have not made any changes.
    I mean this flags -DWITH_FFMPEG=ON. You could find these flags in the recipe.
    However you could try to edit the recipe opencv_3.1.bb. You could add this here:
    PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \
    and rebuild.
    I have not try this on my side but should work.

    BR
    Margarita
  • Hello Margarita,
    I have found opencv_3.1.bb.append file in subfolder of "tisdk".
    I have make some changes as below:

    main lines:
    ==========
    PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON -DCMAKE_CXX_FLAGS_RELEASE="${CMAKE_CXX_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DCMAKE_C_FLAGS_RELEASE="${CMAKE_C_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF,-DWITH_OPENCL=OFF,cmem opencl,"
    PACKAGECONFIG[qtwayland] = "-DWITH_QT=ON,-DWITH_QT=OFF,qtwayland,"


    changed:
    ==========
    PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON -DCMAKE_CXX_FLAGS_RELEASE="${CMAKE_CXX_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DCMAKE_C_FLAGS_RELEASE="${CMAKE_C_FLAGS_RELEASE} -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50" -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCLAMDBLAS=OFF,-DWITH_OPENCL=OFF,cmem opencl,"
    PACKAGECONFIG[qtwayland] = "-DWITH_QT=ON,-DWITH_QT=OFF,qtwayland,"
    PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"
    PACKAGECONFIG[samples] = "-DBUILD_EXAMPLES=ON -DINSTALL_C_EXAMPLES=ON,-DBUILD_EXAMPLES=OFF,,"

    As you can see, i have added last 2 lines.
    Is it okay?

    If yes, then what should be next steps.

    Would i use simple "MACHINE=am57xx-evm bitbake opencv" or require different command?
    Please, clarify me this.

    Regards,
    Kishan Patel.
  • opencv_3.1.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    SUMMARY = "Opencv : The Open Computer Vision Library"
    HOMEPAGE = "http://opencv.org/"
    SECTION = "libs"
    LICENSE = "BSD-3-Clause"
    LIC_FILES_CHKSUM = "file://LICENSE;md5=0ea90d28b4de883d7af5e6711f14f7bf"
    ARM_INSTRUCTION_SET_armv4 = "arm"
    ARM_INSTRUCTION_SET_armv5 = "arm"
    DEFAULT_PREFERENCE = "-1"
    DEPENDS = "python-numpy libtool swig swig-native python bzip2 zlib glib-2.0 libwebp protobuf protobuf-native"
    SRCREV_opencv = "92387b1ef8fad15196dd5f7fb4931444a68bc93a"
    SRCREV_contrib = "5409d5ad560523c85c6796cc5a009347072d883c"
    SRCREV_party3 = "81a676001ca8075ada498583e4166079e5744668"
    IPP_MD5 = "808b791a6eac9ed78d32a7666804320e"
    SRCREV_FORMAT = "opencv"
    SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \
    git://github.com/Itseez/opencv_contrib.git;destsuffix=contrib;name=contrib \
    git://github.com/Itseez/opencv_3rdparty.git;branch=ippicv/master_20151201;destsuffix=party3;name=party3 \
    file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \
    file://fixgcc60.patch \
    file://fixpkgconfig.patch \
    "
    PV = "3.1+git${SRCPV}"
    S = "${WORKDIR}/git"
    do_unpack_extra() {
    tar xzf ${WORKDIR}/party3/ippicv/ippicv_linux_20151201.tgz -C ${WORKDIR}
    }
    addtask unpack_extra after do_unpack before do_patch
    EXTRA_OECMAKE = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \
    -DOPENCV_EXTRA_MODULES_PATH=${WORKDIR}/contrib/modules \
    -DWITH_1394=OFF \
    -DCMAKE_SKIP_RPATH=ON \
    -DOPENCV_ICV_PACKAGE_DOWNLOADED=${IPP_MD5} \
    -DOPENCV_ICV_PATH=${WORKDIR}/ippicv_lnx \
    ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \
    ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)} \
    ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)} \
    ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
    ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
    "
    EXTRA_OECMAKE_append_x86 = " -DX86=ON"
    PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \
    ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
    ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "libav", "", d)}"
    PACKAGECONFIG[amdblas] = "-DWITH_OPENCLAMDBLAS=ON,-DWITH_OPENCLAMDBLAS=OFF,libclamdblas,"
    PACKAGECONFIG[amdfft] = "-DWITH_OPENCLAMDFFT=ON,-DWITH_OPENCLAMDFFT=OFF,libclamdfft,"
    PACKAGECONFIG[eigen] = "-DWITH_EIGEN=ON,-DWITH_EIGEN=OFF,libeigen,"
    PACKAGECONFIG[gphoto2] = "-DWITH_GPHOTO2=ON,-DWITH_GPHOTO2=OFF,libgphoto2,"
    PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER=ON,-DWITH_GSTREAMER=OFF,gstreamer1.0 gstreamer1.0-plugins-base,"
    PACKAGECONFIG[gtk] = "-DWITH_GTK=ON,-DWITH_GTK=OFF,gtk+3,"
    PACKAGECONFIG[jasper] = "-DWITH_JASPER=ON,-DWITH_JASPER=OFF,jasper,"
    PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON,-DWITH_JPEG=OFF,jpeg,"
    PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"
    PACKAGECONFIG[libv4l] = "-DWITH_LIBV4L=ON,-DWITH_LIBV4L=OFF,v4l-utils,"
    PACKAGECONFIG[opencl] = "-DWITH_OPENCL=ON,-DWITH_OPENCL=OFF,opencl-headers,"
    PACKAGECONFIG[oracle-java] = "-DJAVA_INCLUDE_PATH=${JAVA_HOME}/include -DJAVA_INCLUDE_PATH2=${JAVA_HOME}/include/linux -DJAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include -DJAVA_AWT_LIBRARY=${JAVA_HOME}/lib/amd64/libjawt.so -DJAVA_JVM_LIBRARY=${JAVA_HOME}/lib/amd64/server/libjvm.so,,ant-native oracle-jse-jdk oracle-jse-jdk-native,"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Hello Margarita,

               I am confuse that where should i make changes and what should i changes.

    I can also find one file "opencv_3.1.bb" file at "tisdk/sources/meta-openembedded/meta-oe/recipes-support/opencv".

    I am also sharing this file.

    Can you tell me what should i changes and how can rebuild it?

    Regards,

    Kishan Patel.

  • Hello Margarita,
    You mean that i have to simply add ffmpeg at "PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \" and rebuid. Right?.

    Regards,
    Kishan Patel.
  • Hello,

    Just check how gstreamer support is added.
    Please check this thread in case you want to use ffmpeg with rtspsrc in opencv:
    answers.opencv.org/.../

    BR
    Margarita
  • Hello Margarita,

               Can you clarify me what you want say?Please. Because i was also confused and if you have seen above post,I have also post comment on that thread.

    Regards,

    Kishan Patel.

  • Hello,

    I am able to see ffmpeg now.

    Video I/O:
    DC1394 1.x: NO
    DC1394 2.x: NO
    FFMPEG: YES
    codec: YES (ver 57.48.101)
    format: YES (ver 57.41.100)
    util: YES (ver 55.28.100)
    swscale: YES (ver 4.1.100)
    resample: NO
    gentoo-style: YES
    GStreamer:



    BR
    Margarita

  • Hello,

    I am sorry I forgot to attach full build info.

    opencv_buildinfo.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    root@am57xx-evm:~# ./test
    General configuration for OpenCV 3.1.0 =====================================
    Version control: unknown
    Platform:
    Host: Linux 3.16.0-46-generic x86_64
    Target: Linux arm
    CMake: 3.6.1
    CMake generator: Unix Makefiles
    CMake build tool: /usr/bin/make
    Configuration: Release
    C/C++:
    Built as dynamic libs?: YES
    C++ Compiler: /home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ (ver 6.2.1)
    C++ flags (Release): -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -isystem/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3=/usr/src/debug/opencv/3.1+gitAUTOINC+ffb1eb48af-r3 -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm= -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50 -DNDEBUG
    C++ flags (Debug): -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -isystem/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3=/usr/src/debug/opencv/3.1+gitAUTOINC+ffb1eb48af-r3 -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm= -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
    C Compiler: /home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
    C flags (Release): -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -isystem/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3=/usr/src/debug/opencv/3.1+gitAUTOINC+ffb1eb48af-r3 -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm= -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fvisibility=hidden -DCV_TIOPENCL -DCV_TIOPENCL_ENABLE_PROGRAM_COUNT -DMAX_PROGRAM_HASH_SIZE=50 -DNDEBUG
    C flags (Debug): -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -isystem/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3=/usr/src/debug/opencv/3.1+gitAUTOINC+ffb1eb48af-r3 -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm= -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -I/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/git/include --sysroot=/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
    Linker flags (Release): -L/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-rpath-link,/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu
    Linker flags (Debug): -L/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-rpath-link,/home/mms/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu
    Precompiled headers: NO
    Extra dependencies: OpenCL Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libjpeg.so /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libwebp.so /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libpng.so /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libz.so /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libtiff.so gstvideo-1.0 gstapp-1.0 gstbase-1.0 gstriff-1.0 gstpbutils-1.0 gstreamer-1.0 gobject-2.0 glib-2.0 v4l1 v4l2 avcodec avformat avutil swscale gphoto2 gphoto2_port exif /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libbz2.so dl m pthread rt tbb
    3rdparty dependencies: IlmImf
    OpenCV modules:
    To be built: core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab
    Disabled: world
    Disabled by dependency: -
    Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
    GUI:
    QT 5.x: YES (ver 5.7.1)
    QT OpenGL support: NO
    OpenGL support: NO
    VTK support: NO
    Media I/O:
    ZLib: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libz.so (ver 1.2.8)
    JPEG: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libjpeg.so (ver )
    WEBP: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libwebp.so (ver encoder: 0x0209)
    PNG: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libpng.so (ver 1.6.24)
    TIFF: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/lib/libtiff.so (ver 42 - 4.0.7)
    JPEG 2000: NO
    OpenEXR: build (ver 1.7.1)
    GDAL: NO
    Video I/O:
    DC1394 1.x: NO
    DC1394 2.x: NO
    FFMPEG: YES
    codec: YES (ver 57.48.101)
    format: YES (ver 57.41.100)
    util: YES (ver 55.28.100)
    swscale: YES (ver 4.1.100)
    resample: NO
    gentoo-style: YES
    GStreamer:
    base: YES (ver 1.8.3)
    video: YES (ver 1.8.3)
    app: YES (ver 1.8.3)
    riff: YES (ver 1.8.3)
    pbutils: YES (ver 1.8.3)
    OpenNI: NO
    OpenNI PrimeSensor Modules: NO
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    BR
    Margarita

  • Hello Margarita,
    I have checked ffmpeg in opencv on system.I can read rtsp stream and display using ffmpeg in opencv on system.
    So, if i can enable ffmpeg for opencv on board(AM5728), i can test ffmpeg result on board.

    I will check about buildinfo file then come back to you.

    Regards,
    Kishan Patel.
  • Hello Margarita,
    What should i do after the step of below:

    "
    I have added:
    EXTRA_OECMAKE = "-DWITH_FFMPEG=ON"
    PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"
    in opencv_3.1.bbappend
    and these
    -DWITH_FFMPEG=ON \
    PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 libav \
    in opencv3.1.bb"

    Now , if i do "bitbake opencv", i got some error after some time.

    What you had done after make changes in "opencv3.1.bb" and "opencv3.1.bbappend" file?

    Regards,
    Kishan Patel.
  • Hello,

    You have to build opencv.
    MACHINE=am57xx-evm bitbake opencv
    Please all this information is already discussed and you could find the same command in openCV user guide that we shared to you in other threads.

    BR
    Margarita

  • Hello Kishan,

    I am sorry I just saw this line:
    ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "libav", "", d)}" in opencv_3.1.bb
    Please remove the lines from previous answer and add LICENSE_FLAGS_WHITELIST = "commercial" in arago.conf.
    But I would recommend you to check the meaning of LICENSE_FLAGS_WHITELIST= "commercial". Check this page at the end also:

    https://docs.opencv.org/3.4/d0/da7/videoio_overview.html

    Best Regards,
    Margarita

  • Hello Margarita,
                Please, clarify me what i am doing is right or wrong?

    1>ADD lines in opencv_3.1.bbappend file as below:
    EXTRA_OECMAKE = "-DWITH_FFMPEG=ON"
    PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"

    2>Add lines in opencv_3.1.bb file as below:
    -DWITH_FFMPEG=ON \
    PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 libav \

    (Just add "libav").

    3>cd tisdk
    4>cd build
    5> . conf/setenv
    6>export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    7>MACHINE=am57xx-evm bitbake opencv --force -c compile
    8>MACHINE=am57xx-evm bitbake opencv


    Am i going right or require to do some other thing?

    I think we are missing some steps, can you guide me from 1st to last steps.


    Regards,
    Kishan Patel.

  • Hello,

    Please delete this changes :
    1>ADD lines in opencv_3.1.bbappend file as below:
    EXTRA_OECMAKE = "-DWITH_FFMPEG=ON"
    PACKAGECONFIG[libav] = "-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,libav,"

    2>Add lines in opencv_3.1.bb file as below:
    -DWITH_FFMPEG=ON \
    PACKAGECONFIG ??= "eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 libav \


    Add only this line LICENSE_FLAGS_WHITELIST = "commercial" in arago.conf file at the end. You could find this file here:
    tisdk/sources/meta-arago/meta-arago-distro/conf/distro

    Execute MACHINE=am57xx-evm bitbake opencv .
    This will take a while.

    Please could you let me know what is the PSDK version that you are using?

    Best Regards,
    Margarita

  • Hello Margarita,
    Thanks to clarify me.
    So, i am rechanging "opencv_3.1.bb" and ".append" file and make as it was.

    Then just add LICENSE_FLAGS_WHITELIST = "commercial" in arago.conf file at the end at "tisdk/sources/meta-arago/meta-arago-distro/conf/distro/arago.confg".

    Then Execute MACHINE=am57xx-evm bitbake opencv .

    I will inform you output.

    Regards,
    Kishan Patel.
  • Yes use the default files(.bb and .bbappend). I am sorry about that. I just haven't saw this line ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "libav", "", d)}" in opencv_3.1.bb.

    Please could you let me know the PSDK version that you are using so I could provide you all the steps for building.

    Best Regards,
    Margarita

  • Hello Margarita,
    I forgot to inform you that i have using sdk-version:05.00.
    Regards,
    Kishan Patel.
  • Kishan,

    In this case you must follow these steps:
    software-dl.ti.com/.../Overview.html

    Please notice that you are using wrong toolchain version.
    In your case is export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    But for psdk5x must be export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf

    BR
    Margarita
  • Hello Margarita,
    When i execute bitbake opencv command, i got errors as below:

    /**
    * @file objectDetection.cpp
    * @author A. Huaman ( based in the classic facedetect.cpp in samples/c )
    * @brief A simplified version of facedetect.cpp, show how to load a cascade classifier and how to find objects (Face + eyes) in a video stream
    */
    #include "opencv2/objdetect/objdetect.hpp"
    #include "opencv2/highgui/highgui.hpp"
    #include "opencv2/imgproc/imgproc.hpp"

    #include <iostream>
    #include <stdio.h>

    using namespace std;
    using namespace cv;

    /** Function Headers */
    void detectAndDisplay( Mat frame );

    /** Global variables */
    //-- Note, either copy these two files from opencv/data/haarscascades to your current folder, or change these locations
    String face_cascade_name = "/home/kishan/opencv-2.4.13.6/data/haarcascades/haarcascade_frontalface_alt.xml";
    String eyes_cascade_name = "/home/kishan/opencv-2.4.13.6/data/haarcascades/haarcascade_eye_tree_eyeglasses.xml";
    CascadeClassifier face_cascade;
    CascadeClassifier eyes_cascade;
    string window_name = "Capture - Face detection";
    RNG rng(12345);

    /**
    * @function main
    */
    int main( void )
    {
    VideoCapture capture;
    Mat frame;

    //-- 1. Load the cascades
    if( !face_cascade.load( face_cascade_name ) ){ printf("--(!)Error loading\n"); return -1; };
    if( !eyes_cascade.load( eyes_cascade_name ) ){ printf("--(!)Error loading\n"); return -1; };

    //-- 2. Read the video stream
    capture.open( -1 );
    // capture.open("/home/kishan/test1.avi");
    if( capture.isOpened() )
    {
    // resize(frame,frame,Size(1200,700),0,0, INTER_CUBIC);

    for(;;)
    {
    capture >> frame;

    //-- 3. Apply the classifier to the frame
    if( !frame.empty() )
    { detectAndDisplay( frame ); }
    else
    { printf(" --(!) No captured frame -- Break!"); break; }

    int c = waitKey(10);
    if( (char)c == 'c' ) { break; }

    }
    }
    return 0;
    }

    /**
    * @function detectAndDisplay
    */
    void detectAndDisplay( Mat frame )
    {
    std::vector<Rect> faces;
    Mat frame_gray;

    cvtColor( frame, frame_gray, COLOR_BGR2GRAY );
    equalizeHist( frame_gray, frame_gray );
    //-- Detect faces
    face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0|CV_HAAR_SCALE_IMAGE, Size(30, 30) );

    for( size_t i = 0; i < faces.size(); i++ )
    {
    Point center( faces[i].x + faces[i].width/2, faces[i].y + faces[i].height/2 );
    ellipse( frame, center, Size( faces[i].width/2, faces[i].height/2), 0, 0, 360, Scalar( 255, 0, 255 ), 2, 8, 0 );

    Mat faceROI = frame_gray( faces[i] );
    std::vector<Rect> eyes;

    //-- In each face, detect eyes
    eyes_cascade.detectMultiScale( faceROI, eyes, 1.1, 2, 0 |CV_HAAR_SCALE_IMAGE, Size(30, 30) );

    for( size_t j = 0; j < eyes.size(); j++ )
    {
    Point eye_center( faces[i].x + eyes[j].x + eyes[j].width/2, faces[i].y + eyes[j].y + eyes[j].height/2 );
    int radius = cvRound( (eyes[j].width + eyes[j].height)*0.25 );
    circle( frame, eye_center, radius, Scalar( 255, 0, 0 ), 3, 8, 0 );
    }
    }
    //-- Show what you got
    imshow( window_name, frame );
    }
  • Hello,

    1. You must build opencv with bitbake;
    2. Transfer/copy the new opencv to the board; I am using this command to cp all:
    sudo cp -R '/home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/image/usr' /media/rootfs/
    Note: your PATH to files is different.
    3. Compile this code and run it:
    #include <iostream>
    #include <opencv2/core.hpp>
    #include <opencv2/highgui.hpp>
    #include <opencv2/videoio.hpp>

    int main(void)
    {

    /*-------- Display Opencv-Build Information --------*/
    std::cout << cv::getBuildInformation() << std::endl;
    /*------------------------------------------------------------*/

    return 0;
    }
    4. Check do you see ffmpeg on.

    I am not sure why you are linking your code and what you mean by errors.

    Best Regards,
    Margarita

  • Hello Margarita,
    I dont understand why i got error all time when doing bitbake.
    I simply bitbake opencv and always got some and some error.
    Did you got any error?

    Regards,
    Kishan Patel.
  • Please share the error.

    BR
    Margarita
  • Hello Margarita,
    In last, i got error as below:

    | ../util-linux-2.30/sys-utils/renice.c:193:1: internal compiler error: in pop_scope, at c/c-decl.c:1379
    | }
    | ^
    | Please submit a full bug report,
    | with preprocessed source if appropriate.
    | See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
    | Makefile:7720: recipe for target 'sys-utils/renice.o' failed
    | make[2]: * [sys-utils/renice.o] Error 1
    | make[2]: * Waiting for unfinished jobs....
    | make[2]: Leaving directory '/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/util-linux-native/2.30-r0/build'
    | Makefile:11732: recipe for target 'all-recursive' failed
    | make[1]: * [all-recursive] Error 1
    | make[1]: Leaving directory '/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/util-linux-native/2.30-r0/build'
    | Makefile:4927: recipe for target 'all' failed
    | make: * [all] Error 2
    | ERROR: oe_runmake failed
    | WARNING: /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/util-linux-native/2.30-r0/temp/run.do_compile.25490:1 exit 1 from 'exit 1'
    | ERROR: Function failed: do_compile (log file is located at /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/util-linux-native/2.30-r0/temp/log.do_compile.25490)
    ERROR: Task (virtual:native:/media/1TB_1/Facial/tisdk/sources/oe-core/meta/recipes-core/util-linux/util-linux_2.30.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 287 tasks of which 0 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    virtual:native:/media/1TB_1/Facial/tisdk/sources/oe-core/meta/recipes-core/util-linux/util-linux_2.30.bb:do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

    Regards,
    Kishan Patel.
  • Hello,

    Try:
    MACHINE=am57xx-evm bitbake -c cleansstate util-linux
    MACHINE=am57xx-evm bitbake util-linux

    BR
    Margarita
  • Hello Margarita,
    Okay, after execution of above 2 command.
    I can execute bitbake opencv. Right?.

    Regards,
    Kishan Patel.
  • Hello,

    Yes.

    BR
    Margarita
  • Hello Margarita,
    Okay. Thank you. I will inform if i get something wrong.
    Regards,
    Kishan Patel.
  • bitbake_util_linux_log.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    $ MACHINE=am57xx-evm bitbake -c cleansstate util-linux
    Loading cache: 100% |###############################################################################################| Time: 0:00:02
    Loaded 4043 entries from dependency cache.
    Parsing recipes: 100% |#############################################################################################| Time: 0:00:16
    Parsing of 3137 .bb files complete (3134 cached, 3 parsed). 4046 targets, 439 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /media/1TB_1/Facial/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.8.3.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_1.11.0.bbappend
    NOTE: Resolving any missing task queue dependencies
    Build Configuration:
    BB_VERSION = "1.36.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2018.04"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:264dc66c689e0e4212c43358382986ee470619d4"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:d54e9d6c1d461dbf3189e691088d328bf4c4fb19"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5 = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
    meta-ti = "HEAD:8555084679dc5c668e5fb60a16425ca32b10ff21"
    meta-linaro-toolchain
    meta-optee = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
    meta = "HEAD:931a52e8698f684ccbb26ddec18764ad9d9a3e8f"
    Initialising tasks: 100% |##########################################################################################| Time: 0:00:01
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
    $ MACHINE=am57xx-evm bitbake util-linux
    Loading cache: 100% |###############################################################################################| Time: 0:00:01
    Loaded 4043 entries from dependency cache.
    Parsing recipes: 100% |#############################################################################################| Time: 0:00:16
    Parsing of 3137 .bb files complete (3134 cached, 3 parsed). 4046 targets, 439 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /media/1TB_1/Facial/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.8.3.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_1.11.0.bbappend
    NOTE: Resolving any missing task queue dependencies
    Build Configuration:
    BB_VERSION = "1.36.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2018.04"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:264dc66c689e0e4212c43358382986ee470619d4"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:d54e9d6c1d461dbf3189e691088d328bf4c4fb19"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Hello Margarita,

               Sorry to wast your time but again i got error as below:

    Actually, I am attaching log file.

    Regards,

    Kishan Patel.

  • Hello,

    Please execute this command:
    ls -al /bin/sh
    the result should be something like:
    lrwxrwxrwx 1 root root 4 Feb 28 10:22 /bin/sh -> bash
    If is dash not bash:
    sudo dpkg-reconfigure dash
    and select "NO" when prompted.
    Execute the bitbake again.

    If does not help you could try to clean linux-ti-staging.

    BR
    Margarita

  • 4118.bitbake_util_linux_log.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    $ MACHINE=am57xx-evm bitbake -c cleansstate util-linux
    Loading cache: 100% |###############################################################################################| Time: 0:00:02
    Loaded 4043 entries from dependency cache.
    Parsing recipes: 100% |#############################################################################################| Time: 0:00:16
    Parsing of 3137 .bb files complete (3134 cached, 3 parsed). 4046 targets, 439 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /media/1TB_1/Facial/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.8.3.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_1.11.0.bbappend
    NOTE: Resolving any missing task queue dependencies
    Build Configuration:
    BB_VERSION = "1.36.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2018.04"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:264dc66c689e0e4212c43358382986ee470619d4"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:d54e9d6c1d461dbf3189e691088d328bf4c4fb19"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5 = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
    meta-ti = "HEAD:8555084679dc5c668e5fb60a16425ca32b10ff21"
    meta-linaro-toolchain
    meta-optee = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
    meta = "HEAD:931a52e8698f684ccbb26ddec18764ad9d9a3e8f"
    Initialising tasks: 100% |##########################################################################################| Time: 0:00:01
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
    $ MACHINE=am57xx-evm bitbake util-linux
    Loading cache: 100% |###############################################################################################| Time: 0:00:01
    Loaded 4043 entries from dependency cache.
    Parsing recipes: 100% |#############################################################################################| Time: 0:00:16
    Parsing of 3137 .bb files complete (3134 cached, 3 parsed). 4046 targets, 439 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /media/1TB_1/Facial/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.8.3.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_1.11.0.bbappend
    NOTE: Resolving any missing task queue dependencies
    Build Configuration:
    BB_VERSION = "1.36.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2018.04"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:264dc66c689e0e4212c43358382986ee470619d4"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:d54e9d6c1d461dbf3189e691088d328bf4c4fb19"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Hello Margarita,

              I got one another error. I dont understand what should be going wrong?.

    I am attaching log file.

    Regards,

    Kishan Patel.

  • Hello,

    May be will be better to delete everything and start from the beginning. Do not forget to change the arago.conf file.

    BR
    Margarita
  • Hello Margarita,
    Is there any way to bitabke only what ipks we require means it takes too much time and building all things.
    So, is it necessary to build all things or it is normal for all small-large ipk-packages?

    Regards,
    Kishan Patel.
  • Hello,

    kishan patel14 said:
    Is there any way to bitabke only what ipks we require means it takes too much time and building all things.

    No.

    kishan patel14 said:
    So, is it necessary to build all things or it is normal for all small-large ipk-packages?

    You must build it.

    BR
    Margarita

  • Hello Margarita,
    Okay, I have restarted it from beginning. Lets see what will happen. I will inform you output.

    Regards,
    Kishan Patel.
  • Hello Margarita,

               I have got erros once again after restarted process from the beginning.

    I am attaching log file.

    Regards,

    Kishan Patel.

    opencv_log.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    $ MACHINE=am57xx-evm bitbake opencv
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    Parsing recipes: 100% |#############################################################################################| Time: 0:08:07
    Parsing of 3137 .bb files complete (0 cached, 3137 parsed). 4046 targets, 419 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /media/1TB_1/Facial/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.8.3.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
    /media/1TB_1/Facial/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_1.11.0.bbappend
    NOTE: Resolving any missing task queue dependencies
    Build Configuration:
    BB_VERSION = "1.36.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2018.04"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:264dc66c689e0e4212c43358382986ee470619d4"
    meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro
    meta-arago-extras = "HEAD:d54e9d6c1d461dbf3189e691088d328bf4c4fb19"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5 = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
    meta-ti = "HEAD:8555084679dc5c668e5fb60a16425ca32b10ff21"
    meta-linaro-toolchain
    meta-optee = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
    meta = "HEAD:931a52e8698f684ccbb26ddec18764ad9d9a3e8f"
    Initialising tasks: 100% |##########################################################################################| Time: 0:00:10
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum mismatch for local file /media/1TB_1/Facial/tisdk/downloads/bzip2-1.0.6.tar.gz
    Cleaning and trying again.
    WARNING: bzip2-native-1.0.6-r5 do_fetch: Renaming /media/1TB_1/Facial/tisdk/downloads/bzip2-1.0.6.tar.gz to /media/1TB_1/Facial/tisdk/downloads/bzip2-1.0.6.tar.gz_bad-checksum_b22588371218150aff7d34b33bce722a
    WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
    WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.14.y, attempting MIRRORS if available
    WARNING: libpng-native-1.6.31-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.31/libpng-1.6.31.tar.xz, attempting MIRRORS if available
    WARNING: ti-xdctools-native-3_50_03_33-r0 do_fetch: Checksum mismatch for local file /media/1TB_1/Facial/tisdk/downloads/xdctools_3_50_03_33_core_linux.zip
    Cleaning and trying again.
    WARNING: ti-xdctools-native-3_50_03_33-r0 do_fetch: Renaming /media/1TB_1/Facial/tisdk/downloads/xdctools_3_50_03_33_core_linux.zip to /media/1TB_1/Facial/tisdk/downloads/xdctools_3_50_03_33_core_linux.zip_bad-checksum_df2ae07ddb40931ae693645b496eba51
    WARNING: ti-xdctools-native-3_50_03_33-r0 do_fetch: Checksum failure encountered with download of http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_50_03_33/exports/xdccore/xdctools_3_50_03_33_core_linux.zip;name=xdczip - will attempt other sources if available
    ERROR: external-linaro-toolchain-2017.11-r0.arago36 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-eVLChrbVKv"; export SSH_AUTH_SOCK="/run/user/1002/keyring/ssh"; export PATH="/media/1TB_1/Facial/tisdk/sources/oe-core/scripts:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/recipe-sysroot-native/usr/bin/arm-linux-gnueabi:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/recipe-sysroot/usr/bin/crossscripts:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/recipe-sysroot-native/usr/sbin:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/recipe-sysroot-native/usr/bin:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/recipe-sysroot-native/sbin:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/recipe-sysroot-native/bin:/home/hirenk/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin:/media/1TB_1/Facial/tisdk/sources/bitbake/bin:/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/hosttools"; export HOME="/home/hirenk"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git /media/1TB_1/Facial/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git --progress failed with exit code 128, output:
    Cloning into bare repository '/media/1TB_1/Facial/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...
    remote: Counting objects: 8113395, done.
    remote: Compressing objects: 100% (1130017/1130017), done.
    remote: Total 8113395 (delta 6934878), reused 8111500 (delta 6933157)
    Receiving objects: 100% (8113395/8113395), 1.61 GiB | 1.10 MiB/s, done.
    error: inflate: data stream error (incorrect data check)
    fatal: serious inflate inconsistency
    fatal: index-pack failed
    ERROR: external-linaro-toolchain-2017.11-r0.arago36 do_fetch: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.14.y'. Unable to fetch URL from any source.
    ERROR: external-linaro-toolchain-2017.11-r0.arago36 do_fetch: Function failed: base_do_fetch
    ERROR: Logfile of failure stored in: /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2017.11-r0.arago36/temp/log.do_fetch.23566
    ERROR: Task (/media/1TB_1/Facial/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 896 tasks of which 0 didn't need to be rerun and 1 failed.
    Summary: 1 task failed:
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hello Kishan Patel,

    Please check this e2e thread:
    e2e.ti.com/.../719441

    BR
    Margarita