colcon build --symlink-install 出错
-
Finished <<< rm_serial_driver [0.40s]
Finished <<< armor_detector [0.55s]
--- stderr: armor_tracker
/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): warning: relocation against_ZN3fLS14FLAGS_flagfileB5cxx11E' in read-only section
.text.startup'
/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: 最后的链结失败: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/armor_tracker.dir/build.make:327:libarmor_tracker.so] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:139:CMakeFiles/armor_tracker.dir/all] 错误 2
gmake: *** [Makefile:146:all] 错误 2Failed <<< armor_tracker [1.78s, exited with code 2]
Summary: 6 packages finished [4.08s]
1 package failed: armor_tracker
1 package had stderr output: armor_tracker
2 packages not processed -
大佬们,这个问题怎么解决呀