PCL install links directly to boost installation directory somehow

拟墨画扇 提交于 2019-12-01 18:29:47

If it works from the absolute directory that contains bin.v2/libs/system/build/qcc-4.4.2/release/threading-multi/ then probably you have

  • set LD_LIBRARY_PATH set to include . (the current working directory)
  • added the current work directory using ldconfig somehow (there's several ways)

This is a bad idea in general. It's especially a bad idea if you're running as root (which it seems you do) because it can be exploited as a security hole.

The real issue would still appear to be that the linker embeds the full path for libboost_system. I don't know what causes this, but perhaps

  • you specify the library as a concrete source (libboost_system.so.1.48.0 in stead of -lboost_system on most linkers/compilers)
  • it is some kind of linker option (like -rpath?)

Hope this helps

This may not be of help but I have the same problem and here is what I found. That path is used by some boost libraries.

objdump -x libbost_filesystem-qcc-mt-1_55.so will show:

Dynamic Section:
NEEDED               bin.v2/libs/system/build/qcc/release/threading-multi/libboost_system-qcc-mt-1_55.so.1.55.0
NEEDED               libm.so.2
NEEDED               libstdc++.so.6
NEEDED               libc.so.3
INIT                 0x00004d40

Notice the full path.

I came upon this post while looking for a solution to this problem. I'm pretty sure it's a boost build related issue though, I'm also using QNX.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!