[vtkusers] vtk56 - VS2008 - Cone example Errors

John Drescher drescherjm at gmail.com
Thu Sep 30 11:42:39 EDT 2010


On Thu, Sep 30, 2010 at 11:40 AM, John Drescher <drescherjm at gmail.com> wrote:
> On Thu, Sep 30, 2010 at 11:35 AM, Bob Palank <bob at stlcc.org> wrote:
>> I am making progress  - vtk has been built, and I attempt to run the Sample
>> Cone Application ……….. BUT
>>
>> Dave P. says " Once you have successfully built everything, building the
>> INSTALL project should give you a directory under C:\Program Files\VTK\
>> which contain bin (dlls) lib (.lib) and include (.h) directories. "
>>
>>
>>
>> Space on Drive C is limited  so I have VTK on D: not C:
>>
>>   D:\Program Files\VTK\ contains bin (dlls) lib (.lib) and include (.h)
>> directories. "
>>
>>
>>
>> My Path variable contains  D:\Program Files\VTK
>>
>>
>>
>> When I rebuild my ConeFor2008 application, I encounter Error 2 below when I
>> :
>>
>> #include "d:\vtk560\include\vtkRenderWindowInteractor.h"  // I have includes
>> here also
>>
>> #include "d:\vtk560\include\vtkRenderer.h"
>>
>> #include "d:\vtk560\include\vtkPolyDataMapper.h"
>>
>> #include "d:\vtk560\include\vtkProperty.h"
>>
>> #include "d:\vtk560\include\vtkActor.h"
>>
>> //                                      No errors with all of the above
>> active
>>
>> //==================================================================================
>>
>> // There is a  vtkConeSource.h in the include folder, but
>>
>> #include "D:\Program Files\VTK\include\vtk-5.6\vtkConeSource.h"
>>
>> ------------------------------------------------------------------------------------------------
>>
>> Error      2              fatal error C1083: Cannot open include file:
>> 'vtkstd/string': No such file or directory
>> d:\program files\vtk\include\vtk-5.6\vtkStdString.h        25
>> ConeFor2008
>> --------------------------------------------------------------------------------------------------------------------------------
>>
>> But  d:\program files\vtk\include\vtk-5.6\vtkStdString.h  lives in the
>> folder !
>>
>>
>>
>> Also,  D:\Program Files\VTK\include\vtk-5.6\vtkstd/string  is there
>>
>>
>
> I assume you put D:\Program Files\VTK\include\vtk-5.6\ in the
> additional include directories for your project.
>

BTW, One way to get what is needed is to generate the project with
cmake in some other folder and look at the .vcproj files that it
generates then you can go ahead and use the same settings in your
project that does not use cmake.

John



More information about the vtkusers mailing list