I am trying to compile the vlc code based using the build procedure explained here.
https://wiki.videolan.org/UnixCompile/
After following the "Contrib method" for third party libraries, I am facing the following compilation error. I tried recompile after I compiled the FFmpeg module by assing -fPIC CFLAG option in the corresponding modules Makefile, but it did not help.
Erro rmessage is:
Code: Select all
rtpfmt.c:486:29: warning: ‘c2’ may be used uninitialized in this function [-Wuninitialized]
rtpfmt.c:486:29: warning: ‘c1’ may be used uninitialized in this function [-Wuninitialized]
CC libstream_out_rtp_plugin_la-rtcp.lo
CC libstream_out_rtp_plugin_la-rtsp.lo
CC libstream_out_rtp_plugin_la-vod.lo
CCLD libstream_out_rtp_plugin.la
CC libstream_out_raop_plugin_la-raop.lo
In file included from /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gcrypt.h:32:0,
from raop.c:33:
/home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gpg-error.h:30:7: warning: "_MSC_VER" is not defined [-Wundef]
In file included from raop.c:33:0:
/home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gcrypt.h:105:5: warning: "_GCRT_GCC_VERSION" is not defined [-Wundef]
In file included from raop.c:43:0:
../../include/vlc_gcrypt.h:33:1: warning: ‘gcry_thread_cbs’ is deprecated (declared at /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/include/gcrypt.h:213) [-Wdeprecated-declarations]
CCLD libstream_out_raop_plugin.la
CC libstream_out_chromaprint_plugin_la-chromaprint.lo
CXX libstream_out_chromaprint_plugin_la-dummy.lo
CXXLD libstream_out_chromaprint_plugin.la
/usr/bin/ld: /home/anilj/workspace/tools/vlc/contrib/x86_64-linux-gnu/lib/libavcodec.a(fft.o): relocation R_X86_64_PC32 against symbol `ff_cos_32' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[5]: *** [libstream_out_chromaprint_plugin.la] Error 1
make[5]: Leaving directory `/home/anilj/workspace/tools/vlc/modules/stream_out'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/anilj/workspace/tools/vlc/modules/stream_out'
Regards,
/anil.