Building OpenCV 3.1.0 on Windows with viz3d

asked 2016-02-24 15:54:13 -0500

srijith17 gravatar image

Hi,

I tried to build opencv 3.1.0 from source on windows (windows 10, visual studio 2015, 64 bit), to get the viz3d module. I downloaded and build the vtk (I tried both 7.0.0 and 6.3.0). But I get the following error on building

Error C2143 syntax error: missing ';' before '*'
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2825 'cv::viz::vtkCloudMatSink': must be a class or namespace when followed by '::' Error C2510 'vtkCloudMatSink': left of '::' must be a class/struct/union
Error C2059 syntax error: '{'
Error C2143 syntax error: missing ';' before '{'
Error C2447 '{': missing function header (old-style formal list?)
Error C3083 'vtkCloudMatSink': the symbol to the left of a '::' must be a type
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2063 'cv::viz::vtkCloudMatSink': not a function
Error C2084 function 'int cv::viz::vtkCloudMatSink' already has a body
Error C3755 'vtkCloudMatSink': a delegate may not be defined
Error C3083 'vtkCloudMatSink': the symbol to the left of a '::' must be a type
Error C2588 '::~vtkCloudMatSink': illegal global destructor
Error C1903 unable to recover from previous error(s); stopping compilation
in \vizsrc\vtk\vtkCloudMatSink.cpp 55 Error C2065 'vtkCloudMatSource': undeclared identifier
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2065 'VTK_FLOAT': undeclared identifier
Error C2131 expression did not evaluate to a constant
Error C3646 'array_type': unknown override specifier
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2065 'VTK_DOUBLE': undeclared identifier
Error C2131 expression did not evaluate to a constant
Error C3646 'array_type': unknown override specifier
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C3083 'vtkCloudMatSource': the symbol to the left of a '::' must be a type
Error C2039 'vtkCloudMatSource': is not a member of 'cv::viz'
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C3861 'SetNumberOfInputPorts': identifier not found
Error C3083 'vtkCloudMatSource': the symbol to the left of a '::' must be a type
Error C2588 '::~vtkCloudMatSource': illegal global destructor
Error C1903 unable to recover from previous error(s); stopping compilation
Error C2065 'vtkImageMatSource': undeclared identifier
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type
Error C2039 'vtkImageMatSource': is not a member of 'cv::viz'
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
Error C2355 'this': can only be referenced inside non-static member functions or non-static data member initializers
Error C2227 left of '->SetNumberOfInputPorts' must point to class/struct/union/generic type
Error C2355 'this': can only be referenced inside non-static member functions or non-static data member initializers
Error C2227 left of '->ImageData' must point to class/struct/union/generic type
Error C2065 'vtkSmartPointer': undeclared identifier
Error C2065 'vtkImageData': undeclared identifier
Error C2039 'New': is not a member of '`global namespace''
Error C3861 'New': identifier not found ...










































(more)

edit retag flag offensive close merge delete