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

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

Open
marvin5300 opened this issue Feb 6, 2022 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@marvin5300
Copy link
Member

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.

@marvin5300 marvin5300 added the bug Something isn't working label Feb 6, 2022
@marvin5300 marvin5300 added this to the v1.0.0 milestone Feb 6, 2022
@dtreffenstaedt
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants