[vtkusers] questtion about vtkAVIWriter::New()

Amy Squillacote amy.squillacote at kitware.com
Thu May 25 08:40:54 EDT 2006


Hi HJ,

When you ran CMake before compiling VTK, did you make sure that 
VTK_USE_VIDEO_FOR_WINDOWS was set to ON? If it is not on, then that 
class is not compiled.

- Amy

At 03:45 AM 5/25/2006, Wang HJ wrote:
>Hi,
>
>I want to create an output of avi file in vtk5.0 under visual studio 
>net 2003 c++. So now  I just use a statement like:
>  vtkAVIWriter *w=vtkAVIWriter::New();
>except this, I did not write any other statement about w
>
>but it gave me the linking errors like:
>
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIStreamSetFormat at 16 referenced in function "public: 
>virtual void __thiscall vtkAVIWriter::Start(void)" 
>(?Start at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIMakeCompressedStream at 16 referenced in function "public: 
>virtual void __thiscall vtkAVIWriter::Start(void)" 
>(?Start at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIFileCreateStreamA at 12 referenced in function "public: 
>virtual void __thiscall vtkAVIWriter::Start(void)" 
>(?Start at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIFileOpenA at 16 referenced in function "public: virtual void 
>__thiscall vtkAVIWriter::Start(void)" (?Start at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIFileInit at 0 referenced in function "public: virtual void 
>__thiscall vtkAVIWriter::Start(void)" (?Start at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIStreamWrite at 32 referenced in function "public: virtual 
>void __thiscall vtkAVIWriter::Write(void)" (?Write at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIFileExit at 0 referenced in function "public: virtual void 
>__thiscall vtkAVIWriter::End(void)" (?End at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIFileRelease at 4 referenced in function "public: virtual 
>void __thiscall vtkAVIWriter::End(void)" (?End at vtkAVIWriter@@UAEXXZ)
>vtkIO.lib(vtkAVIWriter.obj) : error LNK2019: unresolved external 
>symbol _AVIStreamRelease at 4 referenced in function "public: virtual 
>void __thiscall vtkAVIWriter::End(void)" (?End at vtkAVIWriter@@UAEXXZ)
>
>I do not know why, who can help me, many thanks
>
>HJ
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages 
>on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list