/usr/bin/ld: /usr/local/lib/libyaml-cpp.a(ostream_wrapper.cpp.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libyaml-cpp.a: 无法添加符号: 错误的值
collect2: error: ld returned 1 exit status
Frontend/CMakeFiles/OF.dir/build.make:566: recipe for target 'Frontend/libOF.so' failed
make[2]: *** [Frontend/libOF.so] Error 1
CMakeFiles/Makefile2:85: recipe for target 'Frontend/CMakeFiles/OF.dir/all' failed
make[1]: *** [Frontend/CMakeFiles/OF.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
主要是静态库和共享库的问题,编译的时候设成共享库
cmake -DBUILD_SHARED_LIBS=ON ..