Since I'm bundling my screen capturing library as a .so to be included in a java applet, I need to statically link libvpx to it. I've tried building with
After copying over libvpx.a to my library's folder, and then attempting to compile, I get the following problem:
oliver@indal~/P/s/s/s/l/s/t/native> make clean; make
rm -f *.o *.so *.png *.webm *.ivf captester shared_captester gmon.out analysis.txt makemov.sh
gcc -fPIC -c -pg -ggdb -o libsc.o libsc.cpp libyuv/libyuv.a libvpx.a -lX11 -lstdc++ -lrt
gcc: warning: libyuv/libyuv.a: linker input file unused because linking not done
gcc: warning: libvpx.a: linker input file unused because linking not done
gcc -shared -pg -ggdb -o libsc.so libsc.o libyuv/libyuv.a libvpx.a -lX11 -lstdc++ -lrt
/usr/bin/ld: libvpx.a(subpixel_mmx.asm.o): relocation R_X86_64_PC32 against symbol `vp8_bilinear_filters_x86_8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [libsc.so] Error 1
Any help appreciated.