Firefly开源社区

关于新发布20180416固件版本上安装支持gstreamer的opencv

148

积分

1

威望

3

贡献

技术小白

积分
148
发表于 2018-4-17 18:23:47     
本帖最后由 一只大犀牛 于 2018-4-17 18:33 编辑

使用新发布的sdk,版本:Firefly-RK3399-ubuntu16.04-20180416112819.img;
该img自带gstreamer,测试可以硬解码,非常给力。
            现在想源码编译安装opencv,让opencv打开gstreamer的支持,这样opencv就能直接使用gstreamer硬解码。
但是源码编译opencv的时候,出现错误。
编译命令如下:
sudo cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_GSTREAMER=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DFIND_LIBRARY=/usr/lib/aarch64-linux-gnu/ \
-DWITH_GTK=ON  -DWITH_GTHREAD=ON ..

出现以下错误:
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
--   No package 'gtk+-2.0' found
-- Checking for module 'gthread-2.0'
--   No package 'gthread-2.0' found
-- Checking for module 'gstreamer-base-1.0'
--   No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
--   No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
--   No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
--   No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
--   No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
--   No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
--   No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
--   No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
--   No package 'gstreamer-riff-0.10' found
但是我能在/usr/lib/aarch64-linux-gnu/目录下,找到这些so。为什么找不到?
向各位大神请教一下,怎么在这个img版本上安装支持自带gstreamer的opencv?
回复

使用道具 举报

148

积分

1

威望

3

贡献

技术小白

积分
148
发表于 2018-4-19 14:38:28     
安装缺少的一些库后,opencv编译如下:
Looking for ccache - not found
Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
Could NOT find Jasper (missing:  JASPER_LIBRARIES JASPER_INCLUDE_DIR)
Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.8")
Checking for module 'gtk+-3.0'
  No package 'gtk+-3.0' found
Looking for linux/videodev.h
Looking for linux/videodev.h - not found
Looking for linux/videodev2.h
Looking for linux/videodev2.h - found
Looking for sys/videoio.h
Looking for sys/videoio.h - not found
Checking for module 'libgphoto2'
  Found libgphoto2, version 2.5.9
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find Atlas (missing:  Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY)
A library w