Skip to content

Build with VTK #55

@qualia0000

Description

@qualia0000

Hello. When I am building this with cmake, it reports errors all related to VTK library link.
"D:\sources\caffe-builder\build_v140_x64\ALL_BUILD.vcxproj" (default target) (1) -> "D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj" (default target) (30) -> types.obj : error LNK2019: unresolved external symbol "public: static class vtkOBJReader * __cdecl vtkOBJReader::New(void)" (?New@vtkOBJReader@@SAPEAV1@XZ) referenced in function "public: static class vtkSmartPoin ter<class vtkOBJReader> __cdecl vtkSmartPointer<class vtkOBJReader>::New(void)" (?New@?$vtkSmartPointer@VvtkOBJReader@@@@SA?AV1@XZ) [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug-prefix\src\op encv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] vizcore.obj : error LNK2001: unresolved external symbol "public: static class vtkOBJReader * __cdecl vtkOBJReader::New(void)" (?New@vtkOBJReader@@SAPEAV1@XZ) [D:\sources\caffe-builder\build_v140_x64\packages\openc v\opencv_debug-prefix\src\opencv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] vizcore.obj : error LNK2019: unresolved external symbol "public: static class vtkSTLReader * __cdecl vtkSTLReader::New(void)" (?New@vtkSTLReader@@SAPEAV1@XZ) referenced in function "public: static class vtkSmartPo inter<class vtkSTLReader> __cdecl vtkSmartPointer<class vtkSTLReader>::New(void)" (?New@?$vtkSmartPointer@VvtkSTLReader@@@@SA?AV1@XZ) [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug-prefix\src\ opencv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug-prefix\src\opencv_debug-build\bin\Debug\opencv_viz310d.dll : fatal error LNK1120: 2 unresolved externals [D:\sources\caffe-builder\build_v140_x6 4\packages\opencv\opencv_debug-prefix\src\opencv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] types.obj : error LNK2019: unresolved external symbol "public: static class vtkOBJReader * __cdecl vtkOBJReader::New(void)" (?New@vtkOBJReader@@SAPEAV1@XZ) referenced in function "public: static class vtkSmartPoin ter<class vtkOBJReader> __cdecl vtkSmartPointer<class vtkOBJReader>::New(void)" (?New@?$vtkSmartPointer@VvtkOBJReader@@@@SA?AV1@XZ) [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug-prefix\src\op encv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] vizcore.obj : error LNK2001: unresolved external symbol "public: static class vtkOBJReader * __cdecl vtkOBJReader::New(void)" (?New@vtkOBJReader@@SAPEAV1@XZ) [D:\sources\caffe-builder\build_v140_x64\packages\openc v\opencv_debug-prefix\src\opencv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] vizcore.obj : error LNK2019: unresolved external symbol "public: static class vtkSTLReader * __cdecl vtkSTLReader::New(void)" (?New@vtkSTLReader@@SAPEAV1@XZ) referenced in function "public: static class vtkSmartPo inter<class vtkSTLReader> __cdecl vtkSmartPointer<class vtkSTLReader>::New(void)" (?New@?$vtkSmartPointer@VvtkSTLReader@@@@SA?AV1@XZ) [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug-prefix\src\ opencv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj] D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug-prefix\src\opencv_debug-build\bin\Debug\opencv_viz310d.dll : fatal error LNK1120: 2 unresolved externals [D:\sources\caffe-builder\build_v140_x6 4\packages\opencv\opencv_debug-prefix\src\opencv_debug-build\modules\viz\opencv_viz.vcxproj] [D:\sources\caffe-builder\build_v140_x64\packages\opencv\opencv_debug.vcxproj]
Is there any solutions to this problem?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions