Does not link with CMAKE_BUILD_TYPE=Debug, VTK_USE_SYSTEM_HDF5=ON
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
On Linux, using the system install hdf5:
[11/327] Linking CXX executable bin/vtkIOGeometryCxxTests
FAILED: : && /home/matt/bin/c++ -g -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,--fatal-warnings -Wl,--no-undefined -lc IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/vtkIOGeometryCxxTests.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestProStarReader.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestSimplePointsReaderWriter.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestTecplotReader.cxx.o IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestAMRReadWrite.cxx.o -o bin/vtkIOGeometryCxxTests -rdynamic lib/libvtkFiltersGeometry-6.0.so.1 lib/libvtkFiltersCore-6.0.so.1 lib/libvtkCommonExecutionModel-6.0.so.1 lib/libvtkCommonDataModel-6.0.so.1 lib/libvtkCommonMath-6.0.so.1 lib/libvtkCommonCore-6.0.so.1 lib/libvtksys-6.0.so.1 lib/libvtkCommonMisc-6.0.so.1 lib/libvtkCommonSystem-6.0.so.1 lib/libvtkCommonTransforms-6.0.so.1 lib/libvtkIOAMR-6.0.so.1 lib/libvtkFiltersAMR-6.0.so.1 lib/libvtkFiltersGeneral-6.0.so.1 lib/libvtkCommonComputationalGeometry-6.0.so.1 lib/libvtkParallelCore-6.0.so.1 lib/libvtkIOLegacy-6.0.so.1 lib/libvtkIOCore-6.0.so.1 lib/libvtkzlib-6.0.so.1 -lz -lrt -lm -lhdf5_hl -lhdf5 lib/libvtkRenderingOpenGL-6.0.so.1 lib/libvtkImagingHybrid-6.0.so.1 lib/libvtkIOImage-6.0.so.1 lib/libvtkDICOMParser-6.0.so.1 lib/libvtkmetaio-6.0.so.1 lib/libvtkjpeg-6.0.so.1 lib/libvtkpng-6.0.so.1 lib/libvtktiff-6.0.so.1 lib/libvtkImagingCore-6.0.so.1 lib/libvtkRenderingCore-6.0.so.1 lib/libvtkFiltersExtraction-6.0.so.1 lib/libvtkFiltersSources-6.0.so.1 lib/libvtkIOXMLParser-6.0.so.1 lib/libvtkexpat-6.0.so.1 lib/libvtkTestingRendering-6.0.so.1 -lGLU -lGL -lSM -lICE -lX11 -lXext -lSM -lICE -lX11 -lXext -lXt lib/libvtkImagingCore-6.0.so.1 lib/libvtkRenderingCore-6.0.so.1 lib/libvtkFiltersGeometry-6.0.so.1 lib/libvtkIOImage-6.0.so.1 lib/libvtkDICOMParser-6.0.so.1 lib/libvtkmetaio-6.0.so.1 lib/libvtkpng-6.0.so.1 lib/libvtktiff-6.0.so.1 lib/libvtkjpeg-6.0.so.1 -lm lib/libvtkFiltersExtraction-6.0.so.1 lib/libvtkFiltersSources-6.0.so.1 lib/libvtkFiltersGeneral-6.0.so.1 lib/libvtkFiltersCore-6.0.so.1 lib/libvtkCommonComputationalGeometry-6.0.so.1 lib/libvtkIOXMLParser-6.0.so.1 lib/libvtkIOCore-6.0.so.1 lib/libvtkCommonExecutionModel-6.0.so.1 lib/libvtkCommonDataModel-6.0.so.1 lib/libvtkCommonSystem-6.0.so.1 lib/libvtkCommonTransforms-6.0.so.1 lib/libvtkCommonMisc-6.0.so.1 lib/libvtkCommonMath-6.0.so.1 lib/libvtkCommonCore-6.0.so.1 lib/libvtksys-6.0.so.1 -ldl lib/libvtkzlib-6.0.so.1 lib/libvtkexpat-6.0.so.1 -Wl,-rpath,/home/matt/apps/vtk_gcc_db/lib && :
IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestProStarReader.cxx.o: In function vtkSmartPointer<vtkProStarReader>::New()': /home/matt/apps/vtk_gcc_db/../../progs/VTK/Common/Core/vtkSmartPointer.h:113: undefined reference to
vtkProStarReader::New()'
IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestTecplotReader.cxx.o: In function TestTecplotReader(int, char**)': /home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:55: undefined reference to
vtkTecplotReader::SetFileName(char const*)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:56: undefined reference to vtkTecplotReader::SetDataArrayStatus(char const*, int)' /home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:84: undefined reference to
vtkTecplotReader::SetFileName(char const*)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:85: undefined reference to vtkTecplotReader::SetDataArrayStatus(char const*, int)' /home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:113: undefined reference to
vtkTecplotReader::SetFileName(char const*)'
/home/matt/apps/vtk_gcc_db/../../progs/VTK/IO/Geometry/Testing/Cxx/TestTecplotReader.cxx:114: undefined reference to vtkTecplotReader::SetDataArrayStatus(char const*, int)' IO/Geometry/Testing/Cxx/CMakeFiles/vtkIOGeometryCxxTests.dir/TestTecplotReader.cxx.o: In function
vtkSmartPointer::New()':
/home/matt/apps/vtk_gcc_db/../../progs/VTK/Common/Core/vtkSmartPointer.h:113: undefined reference to `vtkTecplotReader::New()'
collect2: ld returned 1 exit status
Compilation completes with CMAKE_BUILD_TYPE=RelWithDebInfo