[Cmake] vtkRenderWindowInteractor::GetClassName

Bill Hoffman bill.hoffman at kitware.com
Tue May 20 13:57:24 EDT 2003


You maybe running into DLL problems with windows.
Is this a sub-class of a vtk class:
wxVTKRenderWindowInteractor

If so, it needs to export/import the right dll stuff.
See this example:
Examples/Build/vtkMy/Common

-Bill

At 01:46 PM 5/20/2003, Mathieu Malaterre wrote:
>Hum, the weird thing is that it compiles without no problem under Linux...
>        Anyway here is what I use:
>
>SET(SRCS_Sample
>Sample/Sample.cpp
>wxVTKRenderWindowInteractor.cxx
>)
>
>LINK_LIBRARIES(
>   vtkCommon
>   vtkGraphics
>   vtkRendering
>)
>
>
>ADD_EXECUTABLE(Sample WIN32
>               ${SRCS_Sample})
>
>TARGET_LINK_LIBRARIES(Sample ${WXWINDOWS_LIBRARY})
>
>What am doing wrong ?
>
>Thanks,
>mathieu
>
>Bill Hoffman wrote:
>>It means you are not linking the library that contains
>>vtkRenderWindowInteractor::GetClassName into Sample_gtk.exe.
>>I guess you would have to give more information about
>>your CMakeLists.txt files.   Have you looked the
>>cmakelist files in VTK/Examples/Tutorial?
>>-Bill






More information about the CMake mailing list