[vtkusers] Going from v5.6.1 to v5.8.0 gives linking error
Dženan Zukić
dzenanz at gmail.com
Tue Jan 24 08:38:04 EST 2012
With this simplified example I get a different error though:
D:\Repo\bugTester\bugTester.cpp(6): fatal error C1083: Cannot open include
file: 'itkVTKImageToImageFilter.h': No such file or directory
2012/1/24 David Doria <daviddoria at gmail.com>
> 2012/1/24 Dženan Zukić <dzenanz at gmail.com>:
> > Hi guys,
> >
> > I am trying to switch from VTK 5.6.1 to 5.8.0. I use Visual Studio 2010
> x64.
> > My project compiles properly when linked against vtk5.6.1, but gives the
> > following error if I try to use vtk5.8.0:
> >
> > error LNK2019: unresolved external symbol "public: class
> vtkImageStencilData
> > * __cdecl vtkImageStencilSource::GetOutput(void)"
> > (?GetOutput at vtkImageStencilSource@@QEAAPEAVvtkImageStencilData@@XZ)
> > referenced in function "public: class itk::SmartPointer<class
> > itk::Image<unsigned char,3> > __cdecl Vertebra::getMask(void)"
> > (?getMask at Vertebra@@QEAA?AV?$SmartPointer at V?$Image at E$02 at itk@@@itk@@XZ)
> >
> > I changed CMakeLists.txt from:
> > TARGET_LINK_LIBRARIES(myProject vtkVolumeRendering vtkRendering vtkCommon
> > QVTK)
> > to:
> > TARGET_LINK_LIBRARIES(myProject ${VTK_LIBRARIES} QVTK)
> > I also tried adding vtkImaging to the library list, but it makes no
> > difference.
> >
> > Do you have a solution for this?
> >
> > Regards,
> > Dženan
>
> Can you post an example to the WishList
> (http://www.vtk.org/Wiki/VTK/Examples/Cxx#Wish_List) ? I'll take a
> look and see if I can reproduce.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120124/82239a35/attachment.htm>
-------------- next part --------------
cmake_minimum_required(VERSION 2.6)
PROJECT(bugTester CXX)
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
# FIND_PACKAGE(Qt4)
# SET(QT_USE_QTOPENGL 1)
# SET(QT_USE_QTDESIGNER ON)
# INCLUDE(${QT_USE_FILE})
# INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
#find_path( EIGEN_DIR Eigen DOC "A path to Eigen libaray, a linear algebra solver" )
#INCLUDE_DIRECTORIES( ${EIGEN_DIR} )
#find_library( itkMeshIO_lib itkMeshIO DOC "A path to IJ itkMeshIO" )
ADD_EXECUTABLE(bugTester bugTester.cpp)
#TARGET_LINK_LIBRARIES(bugTester itkMeshIO_lib)
TARGET_LINK_LIBRARIES(bugTester ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(bugTester ${ITK_LIBRARIES})
TARGET_LINK_LIBRARIES(bugTester vtkVolumeRendering vtkRendering vtkCommon QVTK)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugTester.cpp
Type: text/x-c++src
Size: 2577 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120124/82239a35/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.mha
Type: application/octet-stream
Size: 425 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120124/82239a35/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug18v.obj
Type: application/octet-stream
Size: 887 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120124/82239a35/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug34v.obj
Type: application/octet-stream
Size: 1745 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120124/82239a35/attachment-0002.obj>
More information about the vtkusers
mailing list