[vtkusers] questtion about vtkAVIWriter::New()
Wang HJ
hjwang126 at hotmail.com
Thu May 25 21:33:43 EDT 2006
Hi Amy,
Thank you for your reply, I can make sure that VTK_USE_VIDEO_FOR_WINDOWS was
set ON in CMAke before compiling VTK, my code can be compiled without
problem but not for linking as I got the following errors.
Why? I also added vtkIO.lib into addtional dependencies of property
setting , do you have another suggestion?
HJ
>From: Amy Squillacote <amy.squillacote at kitware.com>
>To: "Wang HJ" <hjwang126 at hotmail.com>, vtkusers at vtk.org
>Subject: Re: [vtkusers] questtion about vtkAVIWriter::New()
>Date: Thu, 25 May 2006 08:40:54 -0400
>
>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