报错中已给出了提示, 通过add_compile_options(-fPIC)重新编译yaml库即可:
1 打开下载的yaml库, 找到CMakeLists.txt, 在其中增加一行
add_compile_options(-fPIC)
2 在CMakeLists目录下打开终端, 执行
cd build
cmake ..
make
make install
如果提示permission denied 就在命令前添加sudo.
报错中已给出了提示, 通过add_compile_options(-fPIC)重新编译yaml库即可:
1 打开下载的yaml库, 找到CMakeLists.txt, 在其中增加一行
add_compile_options(-fPIC)
2 在CMakeLists目录下打开终端, 执行
cd build
cmake ..
make
make install
如果提示permission denied 就在命令前添加sudo.