[vtkusers] VTK build using CMake, MinGW & Code::Blocks Win 10

drbwts drbwts at gmail.com
Thu Mar 29 08:12:27 EDT 2018


Win 10, x64

Hi I'm trying to build the VTK 8.1.0 using CMake, MinGW & Code::Blocks

CMake runs with no issues & creates a Code::Blocks project for building but
when I build I get the following compilation errors

*/||=== Build: all in VTK (compiler: GNU GCC Compiler) ===|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx||In
member function 'bool vtksys::Directory::Load(const string&)':|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx|118|error:
aggregate 'vtksys::Directory::Load(const string&)::_wfinddata_t data' has
incomplete type and cannot be defined|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx|122|error:
'_wfindfirst' was not declared in this scope|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx|132|error:
'_wfindnext' was not declared in this scope|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx|154|error:
aggregate 'vtksys::Directory::GetNumberOfFilesInDirectory(const
string&)::_wfinddata_t data' has incomplete type and cannot be defined|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx|158|error:
'_wfindfirst' was not declared in this scope|

C:\Users\qrb17230\Documents\OpenGL\VTK-8.1.0\Utilities\KWSys\vtksys\Directory.cxx|169|error:
'_wfindnext' was not declared in this scope|

Utilities\KWSys\vtksys\CMakeFiles\vtksys.dir\build.make|187|recipe for
target 'Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Directory.cxx.obj'
failed|

CMakeFiles\Makefile2|226|recipe for target
'Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/all' failed|
C:\Users\qrb17230\Documents\OpenGL\VTK-bin\Makefile|128|recipe for target
'all' failed|

||=== Build failed: 9 error(s), 0 warning(s) (0 minute(s), 6 second(s)) ===|
/*

<http://vtk.1045678.n5.nabble.com/file/t342376/VTK_Compilation_errors.png> 


I'm guessing that */_wfinddata_t/* needs declaring in a header file? I'm at
the edge of my technical competence here so any help will be much
appreciated.






--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list