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

John Drescher drescherjm at gmail.com
Thu Apr 7 12:46:38 EDT 2016


Replace vtkRendering vtkCommon with ${VTK_LIBRARIES}

John

On Thu, Apr 7, 2016 at 12:27 PM, Zhao Li <livc at outlook.com> wrote:
> 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;
> }
>
>
> _______________________________________________
> Powered by 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
John M. Drescher


More information about the vtkusers mailing list