问题:
libdlib.a(test_for_odr_violations.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
解决方法:
修改文件 ../dlib_build/CMakeFiles/dlib.dir/flags.make
CXX_FLAGS后面加上-fPIC
重新编译dlib:
问题:
libdlib.a(test_for_odr_violations.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
解决方法:
修改文件 ../dlib_build/CMakeFiles/dlib.dir/flags.make
CXX_FLAGS后面加上-fPIC
重新编译dlib: