FS#44590 - [qwt] Qwt libs not found at runtime (not in LD path)
Attached to Project:
Arch Linux
Opened by Konstantin Plotnikov (konstantin) - Wednesday, 15 April 2015, 13:29 GMT
Last edited by Ronald van Haren (pressh) - Thursday, 07 May 2015, 08:06 GMT
Opened by Konstantin Plotnikov (konstantin) - Wednesday, 15 April 2015, 13:29 GMT
Last edited by Ronald van Haren (pressh) - Thursday, 07 May 2015, 08:06 GMT
|
Details
Qwt (v. 6.1.2) now placed in /usr/lib/qwt/* but this path is
not in LD config.
So when you launch an application using qwt system could not find it (in my case it is custom app). To fix this config file should be added to /etc/ld.so.conf.d/ Like this: # add Qwt library path to ld.so.conf.d install -d -m 755 "$pkgdir"/etc/ld.so.conf.d echo "/usr/lib/$pkgname" > "$pkgdir"/etc/ld.so.conf.d/$pkgname.conf In attachment fixed PKGBUILD file. |
This task depends upon
Closed by Ronald van Haren (pressh)
Thursday, 07 May 2015, 08:06 GMT
Reason for closing: Fixed
Additional comments about closing: 6.1.2-2 has libs moved to /usr/lib so they are easy to find now
Thursday, 07 May 2015, 08:06 GMT
Reason for closing: Fixed
Additional comments about closing: 6.1.2-2 has libs moved to /usr/lib so they are easy to find now
https://bugs.archlinux.org/task/44549 - about link time.
https://bugs.archlinux.org/task/44590 - this one - about runtime.
This bug was predicted by this comment (https://bugs.archlinux.org/task/44549#comment134277):
> The question, then, will be if it finds it at run time. If not, we may need something in /etc/ld.so.conf.d, or to move them back.
Compiling and linking works when using the prf by doing
CONFIG += qwt
in the qmake pro file. Looking at the CMake findQwt file located here:
http://www.cmake.org/Wiki/File:FindQwt.cmake
it seems to handle the subdirectory just fine.
Please take my completely random upvote for the fix!