# Fatal error: sys/videoio.h: No such file or directory (RISCV opencv 4.7.0-dev cmake)

**URL:** <https://forum.opencv.org/t/fatal-error-sys-videoio-h-no-such-file-or-directory-riscv-opencv-4-7-0-dev-cmake/11584>\
**Category:** Uncategorized\
**Tags:** videoio, build\
**Created:** [January 12, 2023, 3:14am UTC](https://forum.opencv.org/t/fatal-error-sys-videoio-h-no-such-file-or-directory-riscv-opencv-4-7-0-dev-cmake/11584 "2023-01-12T03:14:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangsong4353](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@yangsong4353](https://forum.opencv.org/u/yangsong4353)\
**Post date:** [January 12, 2023, 3:14am UTC](https://forum.opencv.org/t/fatal-error-sys-videoio-h-no-such-file-or-directory-riscv-opencv-4-7-0-dev-cmake/11584/1 "2023-01-12T03:14:56Z")

</div>

Hi,

The OpenCV version is 4.7.0-dev, My system is Ubuntu 18.04.

I am following this web: [OpenCV RISC V · opencv/opencv Wiki · GitHub](https://github.com/opencv/opencv/wiki/OpenCV-RISC-V)  
when I Configure OpenCV (the cmake cmd in step 4 ), I got an error:

```auto
-- Configuring incomplete, errors occurred!
See also "/home/xxx/build/CMakeFiles/CMakeOutput.log".
See also "/home/xxx/build/CMakeFiles/CMakeError.log".

The detail in "CMakeError.log" is:
/home/xxxx/riscv64-linux-x86_64/bin/riscv64-unknown-linux-gnu-gcc -static -march=rv64gcvxthead -mabi=lp64v -pthread -D__riscv_vector_071 -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -fPIE -o CMakeFiles/cmTC_3025d.dir/CheckIncludeFile.c.o -c /home/xxx/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/xxx/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/videoio.h: No such file or directory

```

Do you have any suggestions?

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [January 12, 2023, 1:34pm UTC](https://forum.opencv.org/t/fatal-error-sys-videoio-h-no-such-file-or-directory-riscv-opencv-4-7-0-dev-cmake/11584/2 "2023-01-12T13:34:30Z")

</div>

your system doesn’t have `sys/videoio.h`

you could:

- build without V4L support (uncheck WITH\_V4L cmake variable)
- disable build of OpenCV’s videoio module entirely
