Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Compile problems OpenCV 4.0 with VS2015

Hello,

I try to build OpenCV 4.0 with VS2015 but I stuck when ADE is compiled with several failures:

Severity Code Description Project File Line Error C2059 syntax error: '<l_attribute_specifier>' (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\check_cycles.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\assert.hpp 86 Error C2893 Failed to specialize function template 'void ade::throw_error(ExceptionType &&)' (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\check_cycles.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\assert.hpp 86 Error C2059 syntax error: '<l_attribute_specifier>' (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\passes\communications.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\assert.hpp 86 Error C2100 illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\check_cycles.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp 34 Error C2100 illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\memory_accessor.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp 34 Error C2100 illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\search.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp 34 Error C2100 illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\subgraphs.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp 34 Error C2100 illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\passes\communications.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp 34 Error C2100 illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\topological_sort.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp 34

Do you have any idea what to change to finish the build for ADE? I have absolutely no clue...

Thanks!

click to hide/show revision 2
None

updated 2018-11-21 23:55:53 -0500

berak gravatar image

Compile problems OpenCV 4.0 with VS2015

Hello,

I try to build OpenCV 4.0 with VS2015 but I stuck when ADE is compiled with several failures:

Severity    Code    Description Project File    Line
Error   C2059   syntax error: '<l_attribute_specifier>' '<L_ATTRIBUTE_SPECIFIER>' (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\check_cycles.cpp)    ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\assert.hpp    86
Error   C2893   Failed to specialize function template 'void ade::throw_error(ExceptionType &&)' (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\check_cycles.cpp)   ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\assert.hpp    86
Error   C2059   syntax error: '<l_attribute_specifier>' '<L_ATTRIBUTE_SPECIFIER>' (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\passes\communications.cpp)   ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\assert.hpp    86
Error   C2100   illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\check_cycles.cpp)    ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp    34
Error   C2100   illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\memory_accessor.cpp) ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp    34
Error   C2100   illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\search.cpp)  ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp    34
Error   C2100   illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\subgraphs.cpp)   ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp    34
Error   C2100   illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\passes\communications.cpp)   ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp    34
Error   C2100   illegal indirection (compiling source file C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\source\topological_sort.cpp)    ade C:\opencv4\build\3rdparty\ade\ade-0.1.1d\sources\ade\include\ade\util\range_iterator.hpp    34

34

Do you have any idea what to change to finish the build for ADE? I have absolutely no clue...

Thanks!