[vlc-devel] [PATCH 1/2] doc: QtGL: use pkg-config to find libvlc
    Alexandre Janniaux 
    ajanni at videolabs.io
       
    Mon Nov  9 14:43:00 CET 2020
    
    
  
The sample can now be built using either directly `qmake` (using
pkg-config to find the library on the system) or with the longer
`PKG_CONFIG_PATH=/path/where/vlc/is/installed qmake`.
---
 doc/libvlc/QtGL/QtGl.pro | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/doc/libvlc/QtGL/QtGl.pro b/doc/libvlc/QtGL/QtGl.pro
index 0d87c88727..acb867c197 100644
--- a/doc/libvlc/QtGL/QtGl.pro
+++ b/doc/libvlc/QtGL/QtGl.pro
@@ -1,9 +1,8 @@
 TEMPLATE = app
 TARGET = qtglvlc
-DEPENDPATH += .
-INCLUDEPATH += . ../../../include
-LIBS += -lvlc
-#-L../../../../build/git64/lib/.libs
+
+CONFIG += link_pkgconfig
+PKGCONFIG = libvlc
 QT += widgets
 
 SOURCES += main.cpp qtvlcwidget.cpp
-- 
2.29.2
    
    
More information about the vlc-devel
mailing list