[vtkusers] VTK build fails to link to swscale

David Partyka david.partyka at kitware.com
Thu Sep 1 08:06:07 EDT 2011


Hi John,

If you look in the CMakeCache.txt of your build tree there should be an
entry FFMPEG_LIBRARIES. What does it contain?

On Wed, Aug 31, 2011 at 4:07 PM, John Haiducek <jhaiduce at gmail.com> wrote:

> When I build VTK I get errors like this:
>
> Linking CXX executable ../../../../bin/QVTKCxxTests
> ../../../../bin/libvtkIO.so.5.2.1: undefined reference to `sws_freeContext'
> ../../../../bin/libvtkIO.so.5.2.1: undefined reference to `sws_scale'
> ../../../../bin/libvtkIO.so.5.2.1: undefined reference to
> `sws_getCachedContext'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/QVTKCxxTests] Error 1
> make[1]: *** [GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/all]
> Error 2
> make: *** [all] Error 2
>
> The error goes away when I add -lswscale to my CXXFLAGS, but surely
> there's a better way to fix it?
>
> John Haiducek
> _______________________________________________
> 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/20110901/6c7e3831/attachment.htm>


More information about the vtkusers mailing list