Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Install the OpenCV dependency libraries and tools.
yum install git gcc-c++ cmake -y
- Go to the source package directory and decompress the source package.
cd /path/to/opencv tar xvf 4.5.5.tar.gz cd opencv-4.5.5
- Create a build directory.
mkdir build cd build/
- Perform the compilation.
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/opencv/opencv make -j8 && make install
Parent topic: OpenCV 4.5.5 Porting Guide (openEuler 20.03)