[vtkusers] An error

贾鹏飞 pengfeijia11 at sjtu.edu.cn
Sun Jan 17 07:18:04 EST 2016


Hello:
    I am new for VTK, I met this problem and I do not know why ,hoping that youcan help me 
   Enclosed are the error pictures

Thank you
  VS:2010
  VTK:5.10.1
  Cmake:2.8.11.1


CmakeLists.txt is as follows:

cmake_minimum_required(VERSION2.8)
project(TestVTKInstall)
find_package(VTKREQUIRED)
include(${VTK_USE_FILE})
add_executable(${PROJECT_NAME}TestVTKInstall.cpp)
target_link_libraries(${PROJECT_NAME}vtkRendering vtkCommon)


TestVTKInstall.cpp is as follows
#include"vtkRenderWindow.h"
#include"vtkSmartPointer.h"
intmain()
{
 vtkSmartPointer<vtkRenderWindow> renWin= vtkSmartPointer<vtkRenderWindow>::New();
 renWin->Render();
 
 std::cin.get();
 return 0;
}



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160117/f7e652d7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cmake interface.png
Type: application/octet-stream
Size: 54884 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160117/f7e652d7/attachment-0001.obj>


More information about the vtkusers mailing list