[vlc-devel] commit: phonon: Improve chances of finding libvlc.so.* (Colin Guthrie )
git version control
git at videolan.org
Mon Jan 25 09:31:50 CET 2010
vlc | branch: master | Colin Guthrie <cguthrie at mandriva.org> | Mon Jan 25 01:12:47 2010 +0000| [8a4209e09534ff5a0a4f611c0e553207bdfe0751] | committer: Jean-Baptiste Kempf
phonon: Improve chances of finding libvlc.so.*
Search the install library path as well as the hard coded /usr/lib
and /usr/local/lib (this is particularly important on system that
use the 64 suffix on x86_64.
(cherry picked from commit 47ffd252b036e4047054e3926ba0a9f94170c35e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a4209e09534ff5a0a4f611c0e553207bdfe0751
---
bindings/phonon/CMakeLists.txt | 1 +
bindings/phonon/vlc/vlcloader.cpp | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/bindings/phonon/CMakeLists.txt b/bindings/phonon/CMakeLists.txt
index f40f760..73b5acf 100644
--- a/bindings/phonon/CMakeLists.txt
+++ b/bindings/phonon/CMakeLists.txt
@@ -197,6 +197,7 @@ set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION "${BIN_INSTALL_DIR}"
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
ARCHIVE DESTINATION "${LIB_INSTALL_DIR}" COMPONENT Devel )
+add_definitions(-DPHONON_LIB_INSTALL_DIR="${LIB_INSTALL_DIR}")
# on the Mac support an extra install directory for application bundles
if(APPLE)
set(INSTALL_TARGETS_DEFAULT_ARGS ${INSTALL_TARGETS_DEFAULT_ARGS}
diff --git a/bindings/phonon/vlc/vlcloader.cpp b/bindings/phonon/vlc/vlcloader.cpp
index 6b01e94..df3757a 100644
--- a/bindings/phonon/vlc/vlcloader.cpp
+++ b/bindings/phonon/vlc/vlcloader.cpp
@@ -140,7 +140,7 @@ static QStringList findAllLibVlc()
#if defined(Q_OS_UNIX)
paths = QString::fromLatin1(qgetenv("LD_LIBRARY_PATH"))
.split(QLatin1Char(':'), QString::SkipEmptyParts);
- paths << QLatin1String("/usr/lib") << QLatin1String("/usr/local/lib");
+ paths << QLatin1String(PHONON_LIB_INSTALL_DIR) << QLatin1String("/usr/lib") << QLatin1String("/usr/local/lib");
QStringList foundVlcs;
foreach (const QString &path, paths) {
More information about the vlc-devel
mailing list