[vlc-devel] [PATCH] doc: QtPlayer: update .pro file to use pkg-config

Alexandre Janniaux ajanni at videolabs.io
Thu Nov 19 14:37:28 CET 2020


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.
---
 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
-- 
2.29.2



More information about the vlc-devel mailing list