win10编译opencv-4.6.0+opencv-opencv_contrib-4.6.0+qt5.14.2编译报错累计解决方法
- 报错:D:/opencv-4.6.0/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h: In constructor ‘constexpr google::protobuf::internal::WrappedMutex::WrappedMutex()’:
D:/opencv-4.6.0/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:124:29: error: temporary of non-literal type ‘google::protobuf::internal::CallOnceInitializedMutexstd::mutex’ in a constant expression
constexpr WrappedMutex()
解决方案:去掉编译项
报错:opencvopencv_contrib-4.6.0modulescudawarpingtesttest_remap.cpp:45:10: fatal error: nppdefs.h: No such file or directory
#include “nppdefs.h”
解决方法:
去掉选项



