Page 1 of 1

Writing patches in libVLC - undefined symbol error

Posted: 25 Jul 2013 17:21
by rakhilkt
Hi all,

I tried to introduce a patch in my VLC source code , which I saw in the VideoLan TRAC . The reference link is
https://trac.videolan.org/vlc/attachmen ... and-.patch

The build was success , but when trying to access the new function that I added ( libvlc_video_take_snapshot_addr ) it is showing *undefined symbol* error.

Please help me in solving this.

Thanks You
Best Regards

Rakhil K T

Re: Writing patches in libVLC - undefined symbol error

Posted: 25 Jul 2013 19:00
by sherington
Did you add your new function to libvlc.sym?

Re: Writing patches in libVLC - undefined symbol error

Posted: 26 Jul 2013 06:18
by rakhilkt
@sherington

Yes , I did..

The error is as follows :
*symbol lookup error : <executable_name> undefined symbol: libvlc_video_snapshot_get_addr*

Re: Writing patches in libVLC - undefined symbol error

Posted: 29 Jul 2013 15:05
by rakhilkt
Thanks...

The issue was solved. Another .so of libvlc (from /usr/lib )was been accessed by my application. When I uninstalled the current vlc installed in my system it got solved. Now it is getting linked from /usr/local/lib where my customized libvlc is present.

The command "ldd <executable_name>" helped me to find out the shared libraries associated when my program is getting executed.