【opencv基础】OpenCV installation stuck at [ 98%] Built target opencv_perf_stitching with no error

前言

按照官网步骤安装opencv的过程中进行到98%时一直没有继续进行。

原因

后台一直在编译运行,只需等待即可,参考here

well, turns out it gets stuck for quite a long time and then moves forward successfully. Don't stop the installation. BE PATIENT!

bash

[ 98%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_main.cpp.o
cc1plus: warning: /opt/opencv-3.3.1/build/modules/stitching/test_precomp.hpp.gch/opencv_test_stitching_Release.gch: not used because `OPENCV_TRAITS_ENABLE_DEPRECATED' is defined [-Winvalid-pch]
[ 98%] Linking CXX executable ../../bin/opencv_test_stitching
[ 98%] Built target opencv_test_stitching
[ 98%] Linking CXX executable ../../bin/opencv_perf_stitching
[ 98%] Built target opencv_perf_stitching


Scanning dependencies of target opencv_cudaoptflow
[ 98%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/farneback.cpp.o
[ 98%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/tvl1flow.cpp.o
[ 98%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/brox.cpp.o
[ 98%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/pyrlk.cpp.o

参考

1.stackoverflow;

原文地址:https://www.cnblogs.com/happyamyhope/p/9947549.html