[vtk-developers] VTK Modular: vtkTextMapper::New returns null

Bill Lorensen bill.lorensen at gmail.com
Fri Apr 27 15:30:23 EDT 2012


Note: Same code exits normally with VTK5.

On Fri, Apr 27, 2012 at 3:24 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> -- Fails.cxx
> #include <vtkSmartPointer.h>
> #include <vtkSliderRepresentation2D.h>
>
> int main (int, char *[])
> {
>  vtkSmartPointer<vtkSliderRepresentation2D> sliderRep =
>    vtkSmartPointer<vtkSliderRepresentation2D>::New();
>  return EXIT_SUCCESS;
> }
>
> -- CMakeLists.txt
> cmake_minimum_required(VERSION 2.8)
>
> PROJECT(Fails)
>
> FIND_PACKAGE(VTK REQUIRED)
> INCLUDE(${VTK_USE_FILE})
>
> ADD_EXECUTABLE(Fails Fails.cxx)
> TARGET_LINK_LIBRARIES(Fails ${VTK_LIBRARIES})
>
>
>
> On Fri, Apr 27, 2012 at 3:03 PM, Brad King <brad.king at kitware.com> wrote:
>> On 4/27/2012 2:45 PM, Bill Lorensen wrote:
>>>
>>> I'm trying to track down some VTK Wiki examples failures.  This line:
>>>   vtkSmartPointer<vtkSliderRepresentation2D>  sliderRep =
>>>     vtkSmartPointer<vtkSliderRepresentation2D>::New();
>>> crashes.
>>> gdb shows that in vtkSliderRepresentation2D.cxx
>>> this->LabelMapper = vtkTextMapper::New();
>>> returns 0.
>>>
>>> Seems that the factory can't find a proper text mapper. However, the
>>> VTK build itself passes tests that use vtkSliderRepresentation2D.
>>
>>
>> Please post a link to the example so we can reproduce this.
>>
>> Thanks,
>> -Brad
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list