zoukankan      html  css  js  c++  java
  • fatal error: linux/videodev.h: No such file or directory

    Run Build Command:"/usr/bin/make" "cmTC_162a3/fast"
    /usr/bin/make -f CMakeFiles/cmTC_162a3.dir/build.make CMakeFiles/cmTC_162a3.dir/build
    make[1]: Entering directory '/home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o
    /usr/bin/cc    -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 -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden  -O3 -DNDEBUG   -o CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o   -c /home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
    /home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:28: fatal error: linux/videodev.h: No such file or directory
    compilation terminated.
    CMakeFiles/cmTC_162a3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o' failed
    make[1]: *** [CMakeFiles/cmTC_162a3.dir/CheckIncludeFile.c.o] Error 1
    make[1]: Leaving directory '/home/program/opencv-3.2.0/build/CMakeFiles/CMakeTmp'
    Makefile:126: recipe for target 'cmTC_162a3/fast' failed
    make: *** [cmTC_162a3/fast] Error 2

    解决方法:

    sudo apt-get install libv4l-dev

    sudo ln -s /usr/include/libvl1-videodev.h  /usr/include/linux/videodev.h

  • 相关阅读:
    动软代码生成器
    today
    命令执行漏洞
    Linux基础命令(二)
    动态主机配置协议DHCP
    Linux基础(一)
    ARP通信
    IP网段的判断
    配置yum源
    centos7-配置阿里yum源安装nginx
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/12015125.html
Copyright © 2011-2022 走看看