树莓派4B安装Debian Linux编译opencv
1.sudo apt install cmake
2.sudo apt install libgtk2.0-dev pkg-config(cmake提示libgtk2.0-dev and pkg-config)
3.sudo apt install libx11-dev (cmake提示Could not find X11)
4.sudo apt install libxrandr-dev (cmake提示RandR headers not found; install libxrandr development package)
5.sudo apt install libxinerama-dev (cmake提示Xinerama headers not found; install libxinerama development package)
6.sudo apt install libxcursor-dev (cmake提示Xcursor headers not found; install libxcursor development package)
7.sudo apt install libxi-dev (cmake提示XInput headers not found; install libxi development package)
8.sudo apt install libavcodec-dev
sudo apt install libavformat-dev
sudo apt install libavutil-dev
sudo apt install libswscale-dev
(cmake提示
-- No package 'libavcodec' found
-- No package 'libavformat' found
-- No package 'libavutil' found
-- No package 'libswscale' found)
9.sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
(make提示GL/gl.h: No such file or directory)
10.sudo apt-get install libudev-dev(make提示libudev.h: No such file or directory)