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.
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,
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.
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," PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng," PACKAGECONFIG[samples] = "-DBUILD_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON,-DBUILD_EXAMPLES=OFF,," PACKAGECONFIG[tbb] = "-DWITH_TBB=ON,-DWITH_TBB=OFF,tbb," PACKAGECONFIG[tiff] = "-DWITH_TIFF=ON,-DWITH_TIFF=OFF,tiff," PACKAGECONFIG[v4l] = "-DWITH_V4L=ON,-DWITH_V4L=OFF,v4l-utils," inherit distutils-base pkgconfig cmake export PYTHON_CSPEC="-I${STAGING_INCDIR}/${PYTHON_DIR}" export PYTHON="${STAGING_BINDIR_NATIVE}/python" export JAVA_HOME="${STAGING_DIR_NATIVE}/usr/bin/java" export ANT_DIR="${STAGING_DIR_NATIVE}/usr/share/ant/" TARGET_CC_ARCH += "-I${S}/include " PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'oracle-java', '${PN}-java-dbg ${PN}-java', '', d)} \ ${PN}-samples-dbg ${PN}-samples ${PN}-apps python-opencv" python populate_packages_prepend () { cv_libdir = d.expand('${libdir}') cv_libdir_dbg = d.expand('${libdir}/.debug') do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True) do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev') do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True) pn = d.getVar('PN', 1) metapkg = pn + '-dev' d.setVar('ALLOW_EMPTY_' + metapkg, "1") blacklist = [ metapkg ] metapkg_rdepends = [ ] packages = d.getVar('PACKAGES', 1).split() for pkg in packages[1:]: if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'): metapkg_rdepends.append(pkg) d.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends)) metapkg = pn blacklist = [ metapkg ] metapkg_rdepends = [ ] for pkg in packages[1:]: if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-dbg') and not pkg.endswith('-doc') and not pkg.endswith('-locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) } PACKAGES_DYNAMIC += "^libopencv-.*" FILES_${PN} = "" FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV" FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig ${datadir}/OpenCV/*.cmake ${datadir}/OpenCV/3rdparty/${baselib}/*.a" FILES_${PN}-doc = "${datadir}/OpenCV/doc" FILES_${PN}-java = "${datadir}/OpenCV/java" FILES_${PN}-java-dbg = "${datadir}/OpenCV/java/.debug/" FILES_${PN}-samples = "${datadir}/OpenCV/samples/" FILES_${PN}-samples-dbg = "${datadir}/OpenCV/samples/bin/.debug" INSANE_SKIP_${PN}-dev = "staticdev" INSANE_SKIP_${PN}-java = "libdir" INSANE_SKIP_${PN}-java-dbg = "libdir" ALLOW_EMPTY_${PN} = "1" SUMMARY_python-opencv = "Python bindings to opencv" FILES_python-opencv = "${PYTHON_SITEPACKAGES_DIR}/*" RDEPENDS_python-opencv = "python-core python-numpy" do_install_append() { cp ${S}/include/opencv/*.h ${D}${includedir}/opencv/ sed -i '/blobtrack/d' ${D}${includedir}/opencv/cvaux.h # Move Python files into correct library folder (for multilib build) if [ "$libdir" != "/usr/lib" -a -d ${D}/usr/lib ]; then mv ${D}/usr/lib/* ${D}/${libdir}/ rm -rf ${D}/usr/lib fi if ${@bb.utils.contains("PACKAGECONFIG", "samples", "true", "false", d)}; then install -d ${D}${datadir}/OpenCV/samples/bin/ cp -f bin/*-tutorial-* bin/*-example-* ${D}${datadir}/OpenCV/samples/bin/ fi }
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,
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.
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 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 Parallel framework: TBB (ver 4.1 interface 6103) Other third-party libraries: Use IPP: NO Use VA: NO Use Intel VA-API/OpenCL: NO Use Eigen: YES (ver 3.2.8) Use Cuda: NO Use OpenCL: YES Use custom HAL: NO OpenCL: Version: static libraries: OpenCL Use AMDFFT: NO Use AMDBLAS: NO Python 2: Interpreter: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/python-native/python2.7 (ver 2.7.12) Python 3: Interpreter: NO Python (for build): /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/python-native/python2.7 Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO Matlab: Matlab not found or implicitly disabled Documentation: Doxygen: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/doxygen (ver 1.8.9.1) PlantUML: NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES Install path: /usr cvconfig.h is in: /home/mms/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencv/3.1+gitAUTOINC+ffb1eb48af-r3/build ----------------------------------------------------------------- root@am57xx-evm:~#
BR
Margarita
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
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,
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
$ 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" 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:02 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_package: QA Issue: external-linaro-toolchain: Files/directories were installed but not shipped in any package: /lib/libcilkrts.so /lib/libcilkrts.spec /lib/libcilkrts.so.5 /lib/libcilkrts.so.5.0.0 Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. external-linaro-toolchain: 4 installed and not shipped files. [installed-vs-shipped] ERROR: linux-ti-staging-4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/log.do_create_srcipk.25822) ERROR: Logfile of failure stored in: /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/log.do_create_srcipk.25822 Log data follows: | DEBUG: Executing python function sstate_task_prefunc | DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_create_srcipk | Cloning into '/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp-git-shallow-clone'... | remote: error: inflate: data stream error (incorrect data check) | remote: error: failed to read object 555b9ee1368a9ceddd5c963ad918db5120638674 at offset 157512923 from /media/1TB_1/Facial/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-836f8eef757dba5a8a305e42a4e6ee7c43ec8bba.pack | remote: fatal: packed object 555b9ee1368a9ceddd5c963ad918db5120638674 (stored in /media/1TB_1/Facial/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-836f8eef757dba5a8a305e42a4e6ee7c43ec8bba.pack) is corrupt | error: git upload-pack: git-pack-objects died with error. | fatal: git upload-pack: aborting due to possible repository corruption on the remote side. | remote: aborting due to possible repository corruption on the remote side. | fatal: early EOF | fatal: index-pack failed | WARNING: /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/run.do_create_srcipk.25822:1 exit 128 from 'git clone --depth 400 --branch processor-sdk-linux-4.14.y file://$PWD/.git $gitshallowclone' | ERROR: Function failed: do_create_srcipk (log file is located at /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/log.do_create_srcipk.25822) ERROR: Task (/media/1TB_1/Facial/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk) failed with exit code '1' NOTE: Tasks Summary: Attempted 488 tasks of which 286 didn't need to be rerun and 1 failed. Summary: 1 task failed: /media/1TB_1/Facial/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk Summary: There were 2 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code.
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
$ 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" 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:02 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_package: QA Issue: external-linaro-toolchain: Files/directories were installed but not shipped in any package: /lib/libcilkrts.so /lib/libcilkrts.spec /lib/libcilkrts.so.5 /lib/libcilkrts.so.5.0.0 Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. external-linaro-toolchain: 4 installed and not shipped files. [installed-vs-shipped] ERROR: linux-ti-staging-4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/log.do_create_srcipk.25822) ERROR: Logfile of failure stored in: /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/log.do_create_srcipk.25822 Log data follows: | DEBUG: Executing python function sstate_task_prefunc | DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_create_srcipk | Cloning into '/media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp-git-shallow-clone'... | remote: error: inflate: data stream error (incorrect data check) | remote: error: failed to read object 555b9ee1368a9ceddd5c963ad918db5120638674 at offset 157512923 from /media/1TB_1/Facial/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-836f8eef757dba5a8a305e42a4e6ee7c43ec8bba.pack | remote: fatal: packed object 555b9ee1368a9ceddd5c963ad918db5120638674 (stored in /media/1TB_1/Facial/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-836f8eef757dba5a8a305e42a4e6ee7c43ec8bba.pack) is corrupt | error: git upload-pack: git-pack-objects died with error. | fatal: git upload-pack: aborting due to possible repository corruption on the remote side. | remote: aborting due to possible repository corruption on the remote side. | fatal: early EOF | fatal: index-pack failed | WARNING: /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/run.do_create_srcipk.25822:1 exit 128 from 'git clone --depth 400 --branch processor-sdk-linux-4.14.y file://$PWD/.git $gitshallowclone' | ERROR: Function failed: do_create_srcipk (log file is located at /media/1TB_1/Facial/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.14.40+gitAUTOINC+4796173fc5-r7a.arago5.tisdk0.1/temp/log.do_create_srcipk.25822) ERROR: Task (/media/1TB_1/Facial/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk) failed with exit code '1' NOTE: Tasks Summary: Attempted 488 tasks of which 286 didn't need to be rerun and 1 failed. Summary: 1 task failed: /media/1TB_1/Facial/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk Summary: There were 2 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code.
I got one another error. I dont understand what should be going wrong?.
I am attaching log file.
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,
I have got erros once again after restarted process from the beginning.
I am attaching log file.
Regards,
Kishan Patel.
$ 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: /media/1TB_1/Facial/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb:do_fetch Summary: There were 9 WARNING messages shown. Summary: There were 3 ERROR messages shown, returning a non-zero exit code. hirenk@optimus:/media/1TB_1/Facial/tisdk/build$