vtkAVIWriter::New() not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

vtkAVIWriter::New() not working

cammarasana123
Hello everybody,

I was trying this example for creating an AVI video

https://www.vtk.org/Wiki/VTK/Examples/Cxx/Untested/Video/AVI
<https://www.vtk.org/Wiki/VTK/Examples/Cxx/Untested/Video/AVI>  

but this simple program here is not working:
/
#include <vtkSmartPointer.h>
#include <vtkAVIWriter.h>
int main (int argc, char *argv[])
{
  vtkSmartPointer<vtkAVIWriter> writer =
vtkSmartPointer<vtkAVIWriter>::New();
}
/

giving an error like
*Undefined reference at vtkAVIWriter::New()*

The Cmake is the same of the example..I don't know if there can be some
error with the installation, other programs are working rightly.

Thanks for supporting
Simone



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkAVIWriter::New() not working

Mathieu Westphal
Hello,

vtkAVIWriter is a windows specific class.
If you are on linux, this example can't be used.
If you are on windows, make sure that you have activated VTK_USE_VIDEO_FOR_WINDOWS cmake option.

Best regards,


Mathieu Westphal

On Thu, Jul 5, 2018 at 11:11 AM, cammarasana123 <[hidden email]> wrote:
Hello everybody,

I was trying this example for creating an AVI video

https://www.vtk.org/Wiki/VTK/Examples/Cxx/Untested/Video/AVI
<https://www.vtk.org/Wiki/VTK/Examples/Cxx/Untested/Video/AVI

but this simple program here is not working:
/
#include <vtkSmartPointer.h>
#include <vtkAVIWriter.h>
int main (int argc, char *argv[])
{
  vtkSmartPointer<vtkAVIWriter> writer =
vtkSmartPointer<vtkAVIWriter>::New();
}
/

giving an error like
*Undefined reference at vtkAVIWriter::New()*

The Cmake is the same of the example..I don't know if there can be some
error with the installation, other programs are working rightly.

Thanks for supporting
Simone



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers


_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: vtkAVIWriter::New() not working

cammarasana123
oh, ok..I just saw it's clearly written at the top of AVI writer
documentation

anyway I solved using OGG format

thanks



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers