[vtkusers] Issues with vtkstd folder

Bill Lorensen bill.lorensen at gmail.com
Sun Apr 3 14:57:56 EDT 2011


Bob,

Let's start from scratch (and keep the users list apprised).

Are you working from an installed VTK or a VTK that you have built?

Is the problem with VTK, a VTK example or your application?

Bill

On Sat, Apr 2, 2011 at 7:29 PM, Bob Palank <bob at stlcc.org> wrote:

> OK, I’ll not specify the full path.
> Result follows ( red underscores are not present in VC++ :
>
>  #include "vtkRenderWindow.h"                  // Changed the includes
>  #include "vtkRenderWindowInteractor.h"
>  #include "vtkRenderer.h"
>  #include "vtkPolyDataMapper.h"
>  #include "vtkProperty.h"
>  #include "vtkActor.h"
> int main(int argc, char *argv[])
> {
>  // commented out all code
>
>  return 0;
> }
> And I get
>             Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped
>
> Next I add in
> #include "vtkConeSource.h"   below the last include above
> The result follows:
>
> d:\vtk561\include\vtkStdString.h(25): fatal error C1083: Cannot open
> include
> file:
>      'vtkstd/string': No such file or directory
> //  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
>
> And vtkStdString.h  is in the include folder !
>
> Perplexed,
>  Bob
>
>
> ============================================================================
> =====
>
> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Sent: Saturday, April 02, 2011 9:55 AM
> To: Bob Palank
> Subject: Re: [vtkusers] Issues with vtkstd folder
>
> It is common to have include siles without .h. The std include files do not
> have .h extensions. My Visual Studio 10 has many without .h.
>
> Why are you specifying a fukll path. The vtk cmake will take care of
> specifying the proper include directory locations.
> The vtkstd/string is locate in the build tree, not the source tree.
>
> On Sat, Apr 2, 2011 at 10:21 AM, Bob Palank <bob at stlcc.org> wrote:
> Hi Bill,
> Yes,  I used CMAKE  2.8.4 and had Build_Examples, Build_Shared_Libs and
> Build_Testing checked.
> No problems were encountered.
> All of my other includes are to specific  .h files and do not cause Build
> problems
> So I tried  #include "d:\Vtk561\include\vtkStd\string"
> and checked to be sure that there was a file called string in my include
> d:\vtk561\include\vtkstd folder.
> It was there.
> Perhaps in VC++ 2010 Express #include only allows access to files with  a
> .h
> extension  ?
> Thanks for your attention.
> Bob
>
> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Sent: Friday, April 01, 2011 11:58 PM
> To: Bob Palank
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Issues with vtkstd folder
>
> Bob,
>
> Are you configuriing vtk with cmake?
>
> vtkstd/string is in the build tree, not the source tree. The vtkstd
> directory and its contentrs are created by cmake.
>
> Bill
> On Fri, Apr 1, 2011 at 9:04 PM, Bob Palank <bob at stlcc.org> wrote:
> Running XP Pro SP3 and VC++ 2010 Express and fail to reach needed code
> files
>
> with no extensions that live in vtkstd.
> Is this a common practice - to have files in a complex system with no file
> extensions?
> I encounter
> d:\vtk561\include\vtkStdString.h(25): fatal error C1083: Cannot open
> include
> file: 'vtkstd/string':
>       No such file or directory
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
> For my own sanity, I like to use explicit calls for include files
> ( ie #include "d:\Vtk561\include\vtkRenderWindow.h")
> Any suggestions as to how to resolve this?
> TIA
>   Bob
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110403/0903280e/attachment.htm>


More information about the vtkusers mailing list