gnuradio / pybombs

PyBOMBS (Python Build Overlay Managed Bundle System) is the GNU Radio install management system for resolving dependencies and pulling in out-of-tree projects.
https://gnuradio.org
GNU General Public License v3.0
414 stars 189 forks source link

setup_env.sh does not add lib/x86_64-linux-gnu to LD_LIBRARY_PATH #560

Open bgottula opened 4 years ago

bgottula commented 4 years ago

When GNU Radio 3.8 is installed from the package manager in Ubuntu 18.04, GR_LIBRARY_DIR is set to lib/x86_64-linux-gnu by GnuradioConfig.cmake. Subsequently, when an OOT module is built from source and installed into a prefix, the .so file for the module is dutifully installed into /lib/x86_64-linux-gnu. However, setup_env.sh as generated by PyBOMBS does not add this directory to LD_LIBRARY_PATH and thus the library can't be found and import of the swig part of the OOT module fails.

I'm on the following versions of things:

This seems similar to https://github.com/gnuradio/gnuradio/issues/2856 which I encountered as well. Not sure if this is something that needs to be fixed in CMake or if the best approach is to add additional directories in setup_env.sh.

Happy to help with a more concrete reproduction scenario if desired.

ZangMT commented 4 years ago

Maybe that is the proxychains bug. I met the same problem when installed pybombs using proxychains and shadowsocks. REF https://www.jianshu.com/p/a8739782a801