[vtkusers] vtkhdf5 Linking error

Austin McElroy mcelroy.austin at gmail.com
Thu Jul 19 18:37:48 EDT 2012


Hello,

I'm trying to compile VTK for Qt in Windows 7 using the MinGW compiler. 
When the CMAKE_GnutoMS flag is checked, the compilation process halts while
trying to link vtkhdf5.  Here is a sample of what the errors look like:

[ 10%] Built target vtkhdf5
Linking C shared library ..\..\..\..\bin\vtkhdf5_hl.dll
Creating library file: ..\..\..\..\bin\vtkhdf5_hl.lib
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5DS.c.obj): In function
`vtk__H5DSattach_sc
ale':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5DS.c:249: undefined
reference to
 `_vtk__H5T_STD_REF_OBJ_g'
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5DS.c:416: undefined
reference to
 `_vtk__H5T_STD_REF_OBJ_g'
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5DS.c:420: undefined
reference to
 `_vtk__H5T_NATIVE_INT_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5DS.c.obj): In function
`vtk__H5DSset_label
':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5DS.c:1537: undefined
reference t
o `_vtk__H5T_C_S1_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5DS.c.obj): In function
`vtk__H5DS_get_REFL
IST_type':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5DS.c:2254: undefined
reference t
o `_vtk__H5T_STD_REF_OBJ_g'
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5DS.c:2257: undefined
reference t
o `_vtk__H5T_NATIVE_INT_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5IM.c.obj): In function
`vtk__H5IMmake_imag
e_8bit':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5IM.c:54: undefined reference
to
`_vtk__H5T_NATIVE_UCHAR_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5IM.c.obj): In function
`vtk__H5IMmake_imag
e_24bit':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5IM.c:126: undefined
reference to
 `_vtk__H5T_NATIVE_UCHAR_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5IM.c.obj): In function
`vtk__H5IMread_imag
e':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5IM.c:418: undefined
reference to
 `_vtk__H5T_NATIVE_UCHAR_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5IM.c.obj): In function
`vtk__H5IMmake_pale
tte':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5IM.c:471: undefined
reference to
 `_vtk__H5T_NATIVE_UCHAR_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5IM.c.obj): In function
`vtk__H5IMlink_pale
tte':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5IM.c:549: undefined
reference to
 `_vtk__H5T_STD_REF_OBJ_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTmake_data
set_char':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:163: undefined
reference to
 `_vtk__H5T_NATIVE_SCHAR_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTmake_data
set_short':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:193: undefined
reference to
 `_vtk__H5T_NATIVE_SHORT_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTmake_data
set_int':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:222: undefined
reference to
 `_vtk__H5T_NATIVE_INT_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTmake_data
set_long':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:253: undefined
reference to
 `_vtk__H5T_NATIVE_LONG_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTmake_data
set_float':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:282: undefined
reference to
 `_vtk__H5T_NATIVE_FLOAT_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTmake_data
set_double':
D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:313: undefined
reference to
 `_vtk__H5T_NATIVE_DOUBLE_g'

until the very end, which looks like:

D:/C_Source_Code/VTK/Utilities/vtkhdf5/hl/src/H5LT.c:2559: undefined
reference t
o `_vtk__H5T_NATIVE_LONG_g'
CMakeFiles\vtkhdf5_hl.dir/objects.a(H5LT.c.obj): In function
`vtk__H5LTget_attri
bute_long_lon^CTerminate batch job (Y/N)? y
mingw32-make[2]: *** [bin/vtkhdf5_hl.dll] Error 255
mingw32-make[1]: ***
[Utilities/vtkhdf5/hl/src/CMakeFiles/vtkhdf5_hl.dir/all] Er
ror 130
mingw32-make: *** [all] Error 130

When the CMAKE_GNUtoMS flag is off, everything compiles fine, but the output
are .dll files and .dll.a files which I can't use.  

Can anyone please give any advice or assistance?

Thank you for your time,
Austin


--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkhdf5-Linking-error-tp5714804.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list