I'm trying to compile c++ script using cmake3 but unfortunately i'm getting this error:
...
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libswresample.a(resample.o): relocation R_X86_64_32 against `.rodata' can not be used whenmaking a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
gmake[2]: *** [libstreammuxer.so] Error 1
gmake[1]: *** [CMakeFiles/streammuxer.dir/all] Error 2
gmake: *** [all] Error 2
Before same thing error occurred when i was installing ffmpeg but as soon i as add "--disable-static --enable-shared" to the configure it was able to compile successfully but i could not get it same to work this in streammuxer app script too using cmake.
This is the command i used
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/bin/streamMuxer -DCMAKE_BUILD_TYPE=Release ../ && cmake --build . --target install