[vtkusers] Error vtkFixedPointVolumeRayCastMapper::New()

Shun Miao shwinmiao at gmail.com
Tue Sep 25 21:42:01 EDT 2012


Here it is. Actually, it is an example comes with VTK-6.0. 
I compiled this example, and it crashed. Then, I removed all the code, except this line:
vtkFixedPointVolumeRayCastMapper * mapper = vtkFixedPointVolumeRayCastMapper::New();

It still crashes. 

cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)

PROJECT (VolumeRendering)

if(NOT VTK_BINARY_DIR)
  find_package(VTK COMPONENTS
    vtkCommonCore
    vtkCommonDataModel
    vtkIOImage
    vtkIOXML
    vtkImagingCore
    vtkInteractionWidgets
    vtkRenderingCore
    vtkRenderingOpenGL
    vtkRenderingVolume
  )
  include(${VTK_USE_FILE})
endif()

set(RENDERING_EXAMPLES_SRCS
  GPURenderDemo
  FixedPointVolumeRayCastMapperCT
)

foreach(name ${RENDERING_EXAMPLES_SRCS})
  add_executable(${name} MACOSX_BUNDLE ${name}.cxx)
  target_link_libraries(${name} ${VTK_LIBRARIES})
endforeach()


-- 
Shun Miao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Tuesday, September 25, 2012 at 6:35 PM, Bill Lorensen wrote:

> What does your CMakeList.txt file look like?
> 
> On Tue, Sep 25, 2012 at 1:28 PM, Shun Miao <shwinmiao at gmail.com (mailto:shwinmiao at gmail.com)> wrote:
> > The program is: 
> > 
> > int main(void)
> > {
> > vtkFixedPointVolumeRayCastMapper * mapper = vtkFixedPointVolumeRayCastMapper::New();
> > 
> > return 0;
> > }
> > 
> > It crashes with VTK-6.0, compiled by gcc 4.2.1.
> > I tried the same thing with VTK-5.10.0, and it worked fine. 
> > 
> > Do I need to anything special for VTK-6.0? 
> > -- 
> > Shun Miao
> > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> > 
> > 
> > On Tuesday, September 25, 2012 at 5:17 AM, Bill Lorensen wrote:
> > 
> > > It is hard to tell without seeing the program.
> > > 
> > > On Tue, Sep 25, 2012 at 1:49 AM, Shun Miao <shwinmiao at gmail.com (mailto:shwinmiao at gmail.com)> wrote:
> > > > I compiled a VTK 6.0 on Mac OS X 10.8.2. My program crashes whenever I call vtkFixedPointVolumeRayCastMapper::New(). I tried both i386 and x86_64 to compile VTK and my program, but both of them crash on this line. 
> > > > 
> > > > I'm going to try in on Windows. But anyone knows what goes wrong with my program on Mac? 
> > > > 
> > > > Many thanks,
> > > > 
> > > > -- 
> > > > Shun Miao
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Powered by www.kitware.com (http://www.kitware.com)
> > > > 
> > > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> > > > 
> > > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> > > > 
> > > > Follow this link to subscribe/unsubscribe:
> > > > http://www.vtk.org/mailman/listinfo/vtkusers
> > > > 
> > > 
> > > 
> > > 
> > > -- 
> > > Unpaid intern in BillsBasement at noware dot com
> > > 
> > 
> 
> 
> 
> -- 
> Unpaid intern in BillsBasement at noware dot com
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120925/6011af3c/attachment.htm>


More information about the vtkusers mailing list