Problems in building opencv for development [closed]

asked 2019-11-03 12:37:19 -0600

czgdp1807 gravatar image

updated 2019-11-03 13:33:21 -0600

Hi,

I am using the following command for building opencv_contrib from the source for development purposes.

export OPENCV_TEST_DATA_PATH=~/opencv_project/opencv_extra/testdata
cmake -DWITH_IPP=OFF -DBUILD_EXAMPLES=ON -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ../opencv

I get the logs available at this gist. As far as I am able to figure out, this is due to some missing 3rd party apps. I have installed protobuf but still cmake is unable to locate it. Moreover, I am unable to find any good guide on installing quirc . I also want to know how to install ippicv. There is not much content available on the web regarding this.
I am using Ubuntu 18.04 OS.

I would be grateful to the help provided.

Regards,
Gagandeep Singh
https://github.com/czgdp1807

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2019-11-04 08:53:24.041660

Comments

Don't you clone opencv?

LBerger gravatar imageLBerger ( 2019-11-03 13:22:14 -0600 )edit

I have cloned opencv, opencv_contrib, opencv_extra. All three are in a single directory, opencv_project. I am building opencv_contrib along with opencv in a directory opencv_project/build-opencv.

czgdp1807 gravatar imageczgdp1807 ( 2019-11-03 13:32:46 -0600 )edit

your opencv fork is old(may) and opencv_contrib fork is the last one

cd opencv
git pull upstream master
git push
cd ../opencv_contrib
git pull upstream master
git push
cd ../build-opencv
rm CMakeCache.txt

and build

LBerger gravatar imageLBerger ( 2019-11-03 13:34:57 -0600 )edit
1

Thanks it worked.

czgdp1807 gravatar imageczgdp1807 ( 2019-11-04 08:22:24 -0600 )edit