[vtkusers] Problem in compiling vtk for ReadPLY example on windows

Agam Sarup agamsarup at gmail.com
Sun Jan 12 23:44:38 EST 2014


I am trying to compile vtk with an example(ReadPLY) program and following
the instructions from the link
http://www.vtk.org/Wiki/VTK/Examples/IO/ReadPLY

Since i am doing this on windows, i had to do some things differently.
I ran the following instructions from ReadPLY folder in Visual Studio
Command Prompt (2010).







*cd buildcmake
-DVTK_DIR:PATH=C:\git\VES\Apps\Android\CMakeBuild\build\CMakeExternals\Build\vtk-host
-G "NMake Makefiles" .. nmake(WINDOWS USERS PLEASE NOTE:* Be sure to add
the VTK bin directory to your path. This will resolve the VTK dll's at run
time.)
I have also made sure that the above requirement is fulfilled.

After running *cmake* the Makefile gets generated but when i run *nmake* i
get the following output:

C:\Users\user\workspace\vtkExamples\ReadPLY\build>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Scanning dependencies of target ReadPLY
[100%] Building CXX object CMakeFiles/ReadPLY.dir/ReadPLY.cxx.obj
ReadPLY.cxx
NMAKE : fatal error U1073: don't know how to make
'C:\git\VES\Apps\Android\CMake
Build\build\CMakeExternals\Build\vtk-host\lib\vtkalglib-6.0.lib'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

There is no library named *vtkalglib-6.0.lib *in directory
C:\git\VES\Apps\Android\CMakeBuild\build\CMakeExternals\Build\vtk-host\lib\

I don't understand what to do next. Any help will be appreciated.

Thanks,
Agam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140113/4d1409b0/attachment.html>


More information about the vtkusers mailing list