[vlc-commits] doc: QtPlayer: update .pro file to use pkg-config
Alexandre Janniaux
git at videolan.org
Sun Jan 3 15:14:52 UTC 2021
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Nov 19 14:37:28 2020 +0100| [092891ad98554e25496e97dcb8906e9bdbe15969] | committer: Alexandre Janniaux
doc: QtPlayer: update .pro file to use pkg-config
It allows to configure the example with, for instance, the following
command line:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ qmake ..
PKG_CONFIG_PATH can be adapted to the path where libvlc has been
installed and/or where Qt is available.
This also remove the unused parts, and add QT += widgets which is needed
to compile.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=092891ad98554e25496e97dcb8906e9bdbe15969
---
doc/libvlc/QtPlayer/QtVLC.pro | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/libvlc/QtPlayer/QtVLC.pro b/doc/libvlc/QtPlayer/QtVLC.pro
index c050c97126..f3f1385880 100644
--- a/doc/libvlc/QtPlayer/QtVLC.pro
+++ b/doc/libvlc/QtPlayer/QtVLC.pro
@@ -1,9 +1,9 @@
TEMPLATE = app
TARGET = qtvlc
-DEPENDPATH += .
-INCLUDEPATH += .
-LIBS += -lvlc -lX11
-# Input
+CONFIG += link_pkgconfig force_debug_info
+PKGCONFIG = libvlc
+QT += widgets
+
HEADERS += player.h
SOURCES += main.cpp player.cpp
More information about the vlc-commits
mailing list