MuonPi / libmuonpi

https://muonpi.org
GNU Lesser General Public License v3.0
3 stars 1 forks source link

dpkg-shlibdeps cannot find library libmuonpi-core.so. after calling 'make package' #8

Open marvin5300 opened 2 years ago

marvin5300 commented 2 years ago
CMake Error at /home/marvin/cmake-3.22.1/Modules/Internal/CPack/CPackDeb.cmake:340 (message):
  CPackDeb: dpkg-shlibdeps: 'dpkg-shlibdeps: error: cannot find library
  libmuonpi-core.so.  needed by ./usr/lib/libmuonpi-detector.so.  (ELF
  format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '/usr/local/lib')

The file exists here: ./output/lib/libmuonpi-core.so.

dtreffenstaedt commented 2 years ago

This is due to RPATH. Using the build directory as RPATH leads to the packages being built correctly, but the build path leaves remnants in the binaries. In order to not contanimate the packages, the system RPATH needs to be used.

This however leads to the libraries jot being found when building the packages.

The (temporary) solution is to first build the core package and install it, then the http package and then all others.

This is a non-ideal solution which needs further investigation on how to solve properly.