[SOLVED]
Things i did.
-
Followed this guide OpenCV: Install OpenCV-Python in Ubuntu
-
Options i gave in
cmake
- In cmake, i turned off build for opencv_gapi
(sincemake
command was failing at building opencv_gapi) - I wanted to build opencv for python3 , so in cmake command i gave this option (check python3 full path with this command
which python3
) cmake
command
cmake -DBUILD_opencv_gapi:BOOL=OFF -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 ../
- In cmake, i turned off build for opencv_gapi
-
Delete opencv clone and download new clone whenever possible(I think this was one of the reason why
make
command was failing at same percentage, even after giving different options. But I don’t know for sure). -
Try increasing RAM and disk size
-
Additional information
- In cmake, you can see opencv options by using this command in build directory and you could also check CMakeLists.txt file in opencv folder
$cmake -LH
- Full output on OpenCV building from source [SUCCESS] - Pastebin.com (in RAW format)
- In cmake, you can see opencv options by using this command in build directory and you could also check CMakeLists.txt file in opencv folder