Reputation: 2118
I am using arch and recently updated my system. Since then I can't link projects using the Point Cloud Library. I get this error message during linking:
[100%] Linking CXX executable cloud_viewer
/usr/bin/ld: warning: libboost_system.so.1.63.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/libpcl_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_thread.so.1.63.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/libpcl_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_iostreams.so.1.63.0, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../lib/libpcl_io.so, not found (try using -rpath or -rpath-link)
I tried creating symlinks libboost_xxxxx.so.1.63.0 -> libboost_xxxxx.so.1.64.0
But while linking workes now, during execution the program crashes.
Should I just try to install the older boot library
or is there a better solution?
Upvotes: 0
Views: 1313
Reputation: 76579
There are two ways to solve this:
Recompile the PCL against current Boost and hope it still works (chances are relatively high)
Install the older version of boost alongside your current system version. I'm not sure how exactly to prevent the general (unversioned) symlink creation (you might not need to do anything special). An easy way to keep another version is to install it to e.g. /opt/boost-1.63 instead of /usr.
Both are equally food options, provided the first one also works at all.
Upvotes: 1