Home > Software engineering >  OpenCV to recompile the source code error
OpenCV to recompile the source code error

Time:11-16

I want to compile the openCV4.2 source code, using cmake generated after the project, right click the module - & gt; Opencv_world - & gt; To regenerate, complains,

5> J: \ opencv2\3 rdparty \ ade \ ade - while f, sources, ade, include \ ade/util/range_iterator HPP (34) : error C2100: illegal indirect addressing (compile the source file J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP)
5> J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP (33) : note: see class template instantiation of are compiling "ade: : util: : Range: : IterableRange : : iterator references "
5> J: \ opencv2\3 rdparty \ ade \ ade - while f, sources, ade, include \ ade/util/assert HPP (86) : error C2059: grammar errors: "& lt; L_ATTRIBUTE_SPECIFIER & gt;" (compile the source file J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP)
5> J: \ opencv2\3 rdparty \ ade \ ade - while f, sources, ade, include \ ade/util/assert HPP (86) : error C2893: failed to make a function template "void ade: : throw_error (ExceptionType & amp; & amp;) "Specialty (compile the source file J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP)
5> J: \ opencv2\3 rdparty \ ade \ ade - while f, sources, ade, include \ ade/util/assert HPP (86) : note: use the following template parameters: (compile the source file J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP)
5> J: \ opencv2\3 rdparty \ ade \ ade - while f, sources, ade, include \ ade/util/assert HPP (86) : note: "ExceptionType=ade: : passes: : CycleFound" (compile the source file J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP)
5> J: \ opencv2\3 rdparty \ ade \ ade - while f \ sources \ ade \ source \ check_cycles CPP (30) : fatal error C1075: on the left side of the curly braces "{" and end file does not match the

This are the source of error, don't know how to modify ah, ready-made opencv_world420. DLL or opencv_world420d. DLL is all x64, I'd like to make an x86 version, the zha of?
Or who know how to modify the source file in error?


In addition, also found that the use of the source file will include a large number of path error, if below vs compilation, complains, have to manually modify the include..

I saw some related information, the feeling is the library file is a DLL + lib, if you want to use dynamically loaded, or
# pragma comment (lib, "opencv_world420d. Lib") such a figure, which must be added?

CodePudding user response:

win10 compiled under vs2015 opencv4.2 source

  • Related