[vtkusers] VTK-DICOM v0.3.4

David Gobbi david.gobbi at gmail.com
Sat Jan 4 09:49:20 EST 2014


Hi Andrea,

The undefined symbols that your compiler is complaining about should
be defined in vtkIO.lib and vtkCommon.lib.  I cannot say why mingw is
not finding those symbols, I have very little experience with mingw.

  David

On Sat, Jan 4, 2014 at 4:43 AM, Andrea Caloni <andreacaloni at hotmail.com> wrote:
> hello,
>
> I've built successfull vtk-dicom static with mingw 4.4.
> When I try to link it to my application (Qt 4.8) I get several errors like
> the following:
>
> D:\Lib\vtk-dicom\vtkDICOMReader.cxx:70: error: undefined reference to
> `_imp___ZN15vtkImageReader2C2Ev'
> D:\Lib\vtk-dicom\vtkDICOMReader.cxx:76: error: undefined reference to
> `_imp___ZN11vtkIntArray3NewEv'
> D:\Lib\vtk-dicom\vtkDICOMReader.cxx:77: error: undefined reference to
> `_imp___ZN11vtkIntArray3NewEv'
> etc...
>
> I'm not able to find out which library I'm missing, in order to build the
> application correctly.
> This is an excerpt from my .pro file:
>
> INCLUDEPATH += D:/Install/VTK/5101/Static/$$conf_dir/include/vtk-5.10
>
>
> LIBS += -LD:/Install/VTK/5101/Static/$$conf_dir/lib/vtk-5.10
>
>
> LIBS += -lvtkGenericFiltering
>
>
> LIBS += -lvtkCharts
>
>
> LIBS += -lQVTK
>
>
> LIBS += -lvtkViews
>
>
> LIBS += -lvtkWidgets
>
>
> LIBS += -lvtkVolumeRendering
>
>
> LIBS += -lvtkHybrid
>
>
> LIBS += -lvtkexoIIc
>
>
> LIBS += -lvtkRendering
>
>
> LIBS += -lvtkftgl
>
>
> LIBS += -lvtkInfovis
>
>
> LIBS += -lvtklibxml2
>
>
> LIBS += -lvtkImaging
>
>
> LIBS += -lvtkIO
>
>
> LIBS += -lvtktiff
>
>
> LIBS += -lvtkpng
>
>
> LIBS += -lvtkmetaio
>
>
> LIBS += -lvtkNetCDF_cxx
>
>
> LIBS += -lvtkNetCDF
>
>
> LIBS += -lvtkGraphics
>
>
> LIBS += -lvtkFiltering
>
>
> LIBS += -lMapReduceMPI
>
>
> LIBS += -lmpistubs
>
>
> LIBS += -lvtkCommon
>
>
> LIBS += -lLSDyna
>
>
> LIBS += -lvtkalglib
>
>
> LIBS += -lvtkDICOMParser
>
>
> LIBS += -lvtkexpat
>
>
> LIBS += -lvtkfreetype
>
>
> LIBS += -lvtkjpeg
>
>
> LIBS += -lvtkproj4
>
>
> LIBS += -lvtksys
>
>
> LIBS += -lvtkverdict
>
>
> LIBS += -lvtkhdf5_hl
>
>
> LIBS += -lvtkhdf5
>
>
> LIBS += -lvtkzlib
>
>
> LIBS += -lopengl32 -lglu32 -lgdi32
>
>
>
> INCLUDEPATH += D:/Install/dcmtk/121102/$$conf_dir/include
>
>
> LIBS += -LD:/Install/dcmtk/121102/$$conf_dir/lib
>
>
> LIBS += -ldcmsr
>
>
> LIBS += -ldcmtls
>
>
> LIBS += -ldcmqrdb
>
>
> LIBS += -ldcmnet
>
>
> LIBS += -ldcmjpls
>
>
> LIBS += -lcharls
>
>
> LIBS += -ldcmjpeg
>
>
> LIBS += -lijg8
>
>
> LIBS += -lijg12
>
>
> LIBS += -lijg16
>
>
> LIBS += -ldcmimage
>
>
> LIBS += -ldcmimgle
>
>
> LIBS += -ldcmdata
>
>
> LIBS += -loflog
>
>
> LIBS += -lofstd
>
>
> LIBS += C:/QtSDK/mingw/lib/libws2_32.a
>
>
>
> INCLUDEPATH += D:/Install/vtk-dicom/$$conf_dir/include
>
>
> LIBS += D:/Install/vtk-dicom/$$conf_dir/lib/libvtkDICOM.a
>
>
> what do I am missing ?
> thanks in advance
>
> Andrea
>
>
>> From: david.gobbi at gmail.com
>> Date: Thu, 14 Nov 2013 09:21:09 -0700
>> To: vtkusers at vtk.org
>> Subject: [vtkusers] VTK-DICOM v0.3.4
>
>>
>> I've made a new release of my vtk-dicom package, the source code
>> is available here:
>> https://github.com/dgobbi/vtk-dicom/releases
>>
>> Doxygen documentation and pdf document:
>> http://www.cognitive-antics.net/vtk-dicom/
>> http://calgaryimageanalysis.ca/wiki/images/2/23/Vtk-dicom.pdf
>>
>> The main addition is that this version support the VTK java wrappers,
>> so that you can use the DICOM reader and writer classes through
>> either C++, Java, or Python.
>>
>> The features that I'm working on for future releases are as follows:
>> - private dictionaries
>> - writing more image types (right now the writer supports CT,
>> MRI, and secondary capture).
>>
>> David


More information about the vtkusers mailing list