[vtkusers] error LNK1104: cannot open file 'vtkRendering.lib'

Zhao Li livc at outlook.com
Thu Apr 7 12:27:58 EDT 2016


Hello,I try to creat my first VTK(7.0) project but it can't be complied:

Error	1	error LNK1104: cannot open file 'vtkRendering.lib'	F:\VTK\Examples\Chap01\bin\LINK	1.3_TestVTKInstall
What should I do?

Thanks for help,Zhao Li






CMakeLists.txt:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)PROJECT(Chap01)FIND_PACKAGE(VTK REQUIRED)INCLUDE(${VTK_USE_FILE})ADD_EXECUTABLE(1.3_TestVTKInstall 1.3_TestVTKInstall.cpp)TARGET_LINK_LIBRARIES(1.3_TestVTKInstall vtkRendering vtkCommon)


1.3_TestVTKInstall.cpp
#include <vtkRenderWindow.h>#include <vtkSmartPointer.h>
int main(){    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/20160408/b97624e8/attachment.html>


More information about the vtkusers mailing list