joschu / trajopt

Trajectory Optimization
http://rll.berkeley.edu/trajopt
Other
383 stars 160 forks source link

Linker error bpmpd - recompile with -fPIC #41

Open mfinean opened 4 years ago

mfinean commented 4 years ago

Error: /usr/bin/ld: ../../../3rdpartylib/bpmpd_linux64.a(supnode.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC

Line to change: https://github.com/joschu/trajopt/blob/9c634c060f7e2d61c4a888b0a5700d668a5d16f8/src/sco/CMakeLists.txt#L30

Fix is to make static: target_link_libraries(bpmpd_caller ${BPMPD_LIBRARY} -static)