Yet Another OpenCV/Karmic error – symbol lookup error: /usr/local/lib/libhighgui.so.4

symbol lookup error: /usr/local/lib/libhighgui.so.4: undefined symbol: av_free_packet

To fix it simply make sure /usr/local/lib is in your library path by using the following command:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH