I’m trying to build ParaView master and when I have the following CMake flags set I get the build errors listed below:
VTK_DISPATCH_SOA_ARRAYS ON
VTK_DISPATCH_TYPED_ARRAYS ON
Build errors:
[1/7] Linking CXX executable bin/vtkClientServerCxxTests
FAILED: bin/vtkClientServerCxxTests
: && /usr/bin/c++ -g -Wl,-lc -Wl,-lc Remoting/ClientServerStream/Testing/Cxx/CMakeFiles/vtkClientServerCxxTests.dir/vtkClientServerCxxTests.cxx.o Remoting/ClientServerStream/Testing/Cxx/CMakeFiles/vtkClientServerCxxTests.dir/coverClientServer.cxx.o -o bin/vtkClientServerCxxTests -Wl,-rpath,/home/acbauer/Code/ParaView/debug/lib64 lib64/libvtkRemotingClientServerStream-pv5.11.so.5.11 lib64/libvtkCommonCore-pv5.11.so.5.11 -lpthread lib64/libvtksys-pv5.11.so.5.11 -ldl -Wl,-rpath-link,/home/acbauer/Code/ParaView/debug/lib64 && :
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeScalarRange<vtkTypedDataArray<float>, double, vtkDataArrayPrivate::FiniteValues>(vtkTypedDataArray<float>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeVectorRange<vtkTypedDataArray<unsigned char>, double>(vtkTypedDataArray<unsigned char>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeScalarRange<vtkTypedDataArray<int>, double, vtkDataArrayPrivate::FiniteValues>(vtkTypedDataArray<int>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeVectorRange<vtkTypedDataArray<signed char>, double>(vtkTypedDataArray<signed char>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeScalarRange<vtkTypedDataArray<short>, double, vtkDataArrayPrivate::FiniteValues>(vtkTypedDataArray<short>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeVectorRange<vtkTypedDataArray<unsigned char>, double>(vtkTypedDataArray<unsigned char>*, double*, vtkDataArrayPrivate::AllValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeVectorRange<vtkTypedDataArray<int>, double>(vtkTypedDataArray<int>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeScalarRange<vtkTypedDataArray<float>, double, vtkDataArrayPrivate::AllValues>(vtkTypedDataArray<float>*, double*, vtkDataArrayPrivate::AllValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeVectorRange<vtkTypedDataArray<long long>, double>(vtkTypedDataArray<long long>*, double*, vtkDataArrayPrivate::FiniteValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeVectorRange<vtkTypedDataArray<double>, double>(vtkTypedDataArray<double>*, double*, vtkDataArrayPrivate::AllValues, unsigned char const*, unsigned char)'
lib64/libvtkCommonCore-pv5.11.so.5.11: undefined reference to `bool vtkDataArrayPrivate::DoComputeScalarRange<vtkTypedDataArray<long long>, double, vtkDataArrayPrivate::AllValues>(vtkTypedDataArray<long long>*, double*, vtkDataArrayPrivate::AllValues, unsigned char const*, unsigned char)'
....
This seems to happen once I enable the VTK_DISPATCH_TYPED_ARRAYS
option. If I try doing this in just VTK though I don’t have any build issues. Any ideas?
Thanks,
Andy