Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error bpmpd - recompile with -fPIC #41

Open
mfinean opened this issue Feb 10, 2020 · 0 comments
Open

Linker error bpmpd - recompile with -fPIC #41

mfinean opened this issue Feb 10, 2020 · 0 comments

Comments

@mfinean
Copy link

mfinean commented Feb 10, 2020

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:

target_link_libraries(bpmpd_caller ${BPMPD_LIBRARY})

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

cedriclmenard added a commit to cedriclmenard/trajopt that referenced this issue Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant