I got this error after I run make -j4 after cmake ..
Linking CXX shared library ../../lib/libCnoidUtil.so
/usr/bin/ld: ../../lib/libyaml.a(api.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
../../lib/libyaml.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [lib/libCnoidUtil.so.1.6] Error 1
make: *** [src/Util/CMakeFiles/CnoidUtil.dir/all] Error 2
make: *** [all] Error 2
Do you have any idea how to solve this problem? I've tried to read many answer, but I cannot really understand how to solve it. I've quite new to ubuntu.
Anyone please help!!