<div dir="ltr"><div>Lyndon Brown,</div><div><br></div><div>Thanks for taking time to guide me in the proper direction.</div><div>I followed your guideline and did this</div><div><ol><li>created subfolder build</li><li>cd build</li><li>export PKG_CONFIG_PATH="/home/myself/Downloads/ffmpeg-5.1/usr/local/lib/pkgconfig"</li><li>../bootstrap</li><li>../configure --disable-lua --disable-xcb --disable-qt --disable-a52</li><li>make</li></ol></div><div><br></div><div>I still got this error:</div><div><br></div><div><font face="monospace">/usr/bin/ld: /usr/local/lib/libsrt.a(srt_c_api.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC<br>/usr/bin/ld: final link failed: Bad value<br>collect2: error: ld returned 1 exit status<br>Makefile:13024: recipe for target '<a href="http://libaccess_srt_plugin.la">libaccess_srt_plugin.la</a>' failed<br>make[4]: *** [<a href="http://libaccess_srt_plugin.la">libaccess_srt_plugin.la</a>] Error 1</font><br></div><div><br></div><div>Please see</div><div>Thanks</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 26, 2022 at 9:06 PM Lyndon Brown <<a href="mailto:jnqnfe@gmail.com">jnqnfe@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Hi,</div><div><br></div><div>I've been taking a break from VLC dev work for some months now, but as I have a moment to spare, your mail and a lack of responses managed to catch my eye, and some/most/all of the other devs will likely be taking a short break themselves over this Christmas period, I'll jump in with a little advice.</div><div><br></div><div>Firstly, as I learned the hard way myself not so long ago, it's not a great idea to build in the root of the project directory; create a 'build' subdirectory, `cd` into it, then issue your `../bootstrap`, `../configure` and `../make` (or `../compile`) commands from there. You'll run into fewer issues this way, and it's also much easier to nuke the build files and start over if you ever want/need to. However, having already used build commands at the root, you'll want to reset the project directory back to a fresh state first, which you could do most easily either by deleting the entire project and re-cloning, or by deleting everything in the project directory EXCEPT the (hidden) '.git' folder and then opening the git tools and undoing all listed changes.</div><div><br></div><div>Secondly, why have you chosen to use `--enable-static`; it isn't necessary for Linux. The main use of that, I believe, is for the Windows build. <span style="font-size:13.3333px">I'm a Linux dev myself and I've never used `--enable-static`; you might find that building simply works successfully if you drop it. Use of this on Linux is possibly a rarely tested configuration, thus you're more likely to run into unnoticed/unresolved issues.</span></div><div><br></div><div>The error you've encountered looks to me like a bug in the vlc build system. Bug reports are appreciated and should be submitted via the vlc gitlab instance.</div><div><br></div><div>Good luck.</div><div><br></div><div><br></div><div>On Mon, 2022-12-26 at 12:45 -0500, Mahesh Velankar wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr">I am an absolute newbie to vlc.<div>I cloned git repo and tried to build vlc with these steps</div><div><br></div><div><ol><li>bootstrap</li><li>./configure --enable-static --disable-lua --disable-xcb --disable-qt --disable-a52</li><li>make</li></ol></div><div><br></div><div>It is throwing this error in the linking step.</div><div><br></div><div><br></div><div><font face="monospace">/usr/bin/ld: /usr/local/lib/libsrt.a(srt_c_api.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC<br>/usr/bin/ld: final link failed: Bad value<br>collect2: error: ld returned 1 exit status<br>Makefile:13024: recipe for target '<a href="http://libaccess_srt_plugin.la" target="_blank">libaccess_srt_plugin.la</a>' failed<br>make[4]: *** [<a href="http://libaccess_srt_plugin.la" target="_blank">libaccess_srt_plugin.la</a>] Error 1</font><br></div><div><font face="monospace"><br></font></div><div><div>Please help me on how to proceed with this build</div>Let me know what more details I need to provide.</div><div><br></div><div>Thanks</div><div><br></div></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></blockquote><div><br></div><div><span></span></div></div>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</blockquote></div></div>