Step 1: Download opencv download, the source code compilation package of opencv3. Step 2: when cmake, enter: cmake - D cmake_ INSTALL_ PREFIX=/home/username/opencv3 -D CMAKE_ BUILD_ TYPE="Rlease" -D OPENCV_ GENERATE_ Pkgconfig = on..
Step 3: compile and install
make
make install
Step 4: configure the environment
sudo vi /etc/ld.so.conf.d/opencv.conf
input: /home/username/opencv3/lib
Step 5: configure bashrc
VI ~ /. Bashrc
, and add:
#opencv-3.4.12
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/home/username/opencv3/lib/pkgconfig
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:./home/username/opencv3/lib
After saving, enter source ~ /. Bashrc
at this time, PKG config — modversion opencv will display 3.4.12, and opencv4 will display 4.2.0
Step 6: use opencv3
to edit CMakeLists.txt Before find (openCV required)
, enter: set (cmake)_ PREFIX_ PATH "/home/username/opencv3")
Read More:
- [Solved] Acrobat DC 2022 Install Error: Cannot Install Acrobat Update Service
- FreeSWITCH installation error “You must install libyuv-dev to build mod_fsv” solution
- Mydumper Install Error: None of the required ‘glib-2.0’/’gthread-2.0’ found
- How To Install Java with Apt-Get on Ubuntu 16.04
- COLMAP Install Error: Undefined reference to libtiff4.0 [Solved]
- How to Solve Cython-bbox pip install Error
- How to Install FFmpeg on Linux
- How To Install WordPress with LAMP on Ubuntu 16.04
- How to Install MongoDB Community Edition Manually on mac and linux
- Docker: How to Install Nacos
- Install the mxnet-gpu version to solve the problem of “OSError: libnccl.so.2” when importing
- Yaml Install ERROR: Cannot uninstall ‘PyYAML’.
- How to Install PSSH in Centos7
- How to install PIL in Python 3
- Raspberry PI install VIM editor
- How to Solve program install error 0x80070660
- Solve the error of jupyter labextension install
- Debian: How to install MariaDB
- Macos: How to Solve cocoapods Install Error
- Mac: How to Install homebrew, nginx, PHP and MySQL