[vtkusers] Re : where is vtkstd/string?
Mark Jefferson
mark.jefferson at qq.com
Sun Apr 6 10:10:12 EDT 2008
Hi, David,
I have used vtkStdString just like you suggest. and I want to add some notation in the render window. I don't think the usage of vtkStdString is wrong. here is part of my codes :
#include <vtkStdString.h>
#include <vtkScaledTextActor.h>
void main()
{
vtkStdString str("Images");
vtkScaledTextActor * text = vtkScaledTextActor::New();
text->SetInput(str);
... ...
}
but I always get a error when I compile my codes :
Cannot open include file: 'vtkstd/string': No such file or directory
but vtkstd/string doesn't exist in vtk, and I also could not find it.
could you tell me how to modify it if I want to use class vtkStdString?
thank you!
MJ
------------------ 原始邮件 ------------------
Are you using CMake to build your console application?
See any of the projects in the VTK/Examples folder for example CMakeLists.txt files that show how to build a project that links to VTK using CMake. From such a project, using vtkStdString should simply be a matter of:
#include "vtkStdString.h"
void TestFunc()
{
vtkStdString s("hi there");
// do something useful with s here...
}
What is the error you get if you try to use vtkStdString?
On Sun, Apr 6, 2008 at 9:43 AM, Mark Jefferson <mark.jefferson at qq.com> wrote:
Hi, David,
I have found vtkstd in CMakeLists.txt, but I don't know how to do next? maybe, should I recompile VTK using CMake again? but I have recompile vtk for many times, I still could not use class vtkStdString.
MJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080406/bb7b0444/attachment.htm>
More information about the vtkusers
mailing list