Is there anyone who install opencv on hifive unleashed board???
I use fedora for operating system and i want to use opencv in C++.
Therefore i tried to install opencv with dnf command, but, it didn’t work.
Detailed command and errors are like below
Is there anyone who install opencv on hifive unleashed board???
I use fedora for operating system and i want to use opencv in C++.
Therefore i tried to install opencv with dnf command, but, it didn’t work.
Detailed command and errors are like below
Last metadata expiration check: 0:14:57 ago on Tue 07 Jul 2020 06:25:13 AM EDT.
Error:
Problem: package opencv-3.4.1-6.fc29.riscv64 requires libopencv_core.so.3.4()(64bit), but none of the providers can be installed
Hi Seunghyun,
We Used linux on Hifive-Unleashed-U540 board. Built natively with no error and we got libraries.
Follow below instructions to build opencv natively on u540.
Installing OpenCV from the Source
step1:
install the required dependencies:
build-essential cmake git pkg-config libgtk-3-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev gfortran openexr libatlas-base-dev python3-dev python3-numpy ibtbb2 libtbb-dev libdc1394-22-dev
step2:
Clone the OpenCV’s and OpenCV contrib repositories:
$mkdir ~/opencv_build && cd ~/opencv_build
$git clone https://github.com/opencv/opencv.git
$git clone https://github.com/opencv/opencv_contrib.git
$cd opencv
$git checkout 3.4
$cd ../opencv_contrib
$git checkout 3.4
step3:
$cd ~/opencv_build/opencv
$mkdir build && cd build
Set up the OpenCV build with CMake:
$cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -D OPENCV_GENERATE_PKGCONFIG=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules -D BUILD_EXAMPLES=ON ..
step4:
$make -j8
step5:
$sudo make install