FS#44549 - [qwt] installation is broken
Attached to Project:
Arch Linux
Opened by Andrew Gaydenko (student975) - Saturday, 11 April 2015, 16:30 GMT
Last edited by Ronald van Haren (pressh) - Thursday, 07 May 2015, 08:06 GMT
Opened by Andrew Gaydenko (student975) - Saturday, 11 April 2015, 16:30 GMT
Last edited by Ronald van Haren (pressh) - Thursday, 07 May 2015, 08:06 GMT
|
Details
qwt 6.1.2 installation is broken - trying to install [1]
results in not found qwt library. All plays well with qwt
6.1.1.
[1] https://aur.archlinux.org/packages/qloud |
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
LIBS += -lsndfile \
-lfftw3 \
-ljack \
-lqwt
You see, fftw, jack and qwt-6.1.1 libraries are found, 6.1.2 isn't. I don't understand all that linking mechanics, but would conclude qwt 6.1.2 is presented in the system other way rather other libs. The problem is the official repo doesn't contain packages with executable program and depended on qwt to run it and see the library is found.
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.
LIBPATH += /usr/lib/qwt
into qmake project file. But it means, we are forced to take a rule to bother with _all_ deps in a common - had some external lib got own specific lib path or not. Of course, if such way is intended (even broking simple rules for developers), well, we are forced to accept it :) But I still guess there is an installation steps making linker aware about paths it must use to look at libraries. Of course, it may be wrong.
https://bugs.archlinux.org/task/44549 - this one - about link time.
https://bugs.archlinux.org/task/44590 - about runtime.
CONFIG += qwt
This loads qwt.prf and sets the necessary options.
$ bin/qloud
bin/qloud: error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
And, at any case, is .prf file using is the most wide way among Linux distributions at such sitruations?
The fix for the runtime error is available here:
https://bugs.archlinux.org/task/44590
It consists of telling the system to look in /usr/lib/qwt for libraries at runtime.
You can for now create a file in /etc/ld.so.conf.d containing only
/usr/lib/qwt
and you should be fine. Other temporary alternatives are
1. rebuilding th package with linked PKGBUILD
2. symlinking libqwt to /usr/lib
3. adding /usr/lib/qwt to LD_LIBRARY_PATH.
Your choice. All should keep working when the fix lands in a new package version.