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

When configuring the running environment of pl-slam, install mrpt software, and then this error occurs #1251

Closed
xqs-c opened this issue Sep 3, 2022 · 2 comments

Comments

@xqs-c
Copy link

xqs-c commented Sep 3, 2022

When configuring the running environment of pl-slam, install mrpt software, and then this error occurs。Mrpt version is https://github.com/MRPT/mrpt/tree/0c3d605c3cbf5f2ffb8137089e43ebdae5a55de3

error:
/usr/bin/ld: /usr/local/wxWidgets/lib/libwx_baseu-3.1.a(baselib_threadinfo.o): relocation R_X86_64_TPOFF32 against _ZZN12_GLOBAL__N_117GetThisThreadInfoEvE16s_thisThreadInfo' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/wxWidgets/lib/libwx_baseu-3.1.a(baselib_utilsunx.o): relocation R_X86_64_PC32 against symbol _ZN16wxAppConsoleBase14ms_appInstanceE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: The last link failed: wrong value
collect2: error: ld returned 1 exit status
libs/base/CMakeFiles/mrpt-base.dir/build.make:3638: recipe for target 'lib/libmrpt-base.so.1.5.0' failed
make[2]: *** [lib/libmrpt-base.so.1.5.0] Error 1
CMakeFiles/Makefile2:259: recipe for target 'libs/base/CMakeFiles/mrpt-base.dir/all' failed
make[1]: *** [libs/base/CMakeFiles/mrpt-base.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

ubuntu 18.04
wxWidgets3.1.0
opencv3.1.0
gcc7.5.0

@jlblancoc
Copy link
Member

Please, give a try to the code in this PR, which was never merged:
rubengooj/pl-slam#40

@jolting
Copy link
Member

jolting commented Sep 9, 2022

/usr/local/wxWidgets/lib/libwx_baseu-3.1.a

Local build of wx built without fPIC.

PIC wasn't enabled by default until 3.1.5
wxWidgets/wxWidgets@4ee04da

You have to build it with --with-pic.

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

3 participants