Writing patches in libVLC - undefined symbol error

This forum is about all development around libVLC.
rakhilkt
New Cone
New Cone
Posts: 5
Joined: 25 Jul 2013 17:09
VLC version: 2.0.1
Operating System: Linux & Windows
Location: Trivandrum, India

Writing patches in libVLC - undefined symbol error

Postby rakhilkt » 25 Jul 2013 17:21

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
Last edited by rakhilkt on 26 Jul 2013 06:18, edited 1 time in total.
Thank You

Best Regards
Rakhil KT

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: Writing patches in libVLC - undefined symbol error

Postby sherington » 25 Jul 2013 19:00

Did you add your new function to libvlc.sym?

rakhilkt
New Cone
New Cone
Posts: 5
Joined: 25 Jul 2013 17:09
VLC version: 2.0.1
Operating System: Linux & Windows
Location: Trivandrum, India

Re: Writing patches in libVLC - undefined symbol error

Postby rakhilkt » 26 Jul 2013 06:18

@sherington

Yes , I did..

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

Best Regards
Rakhil KT

rakhilkt
New Cone
New Cone
Posts: 5
Joined: 25 Jul 2013 17:09
VLC version: 2.0.1
Operating System: Linux & Windows
Location: Trivandrum, India

Re: Writing patches in libVLC - undefined symbol error

Postby rakhilkt » 29 Jul 2013 15:05

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.
Thank You

Best Regards
Rakhil KT


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests