qcam: meson: Use pkg-config method for qt5 dependencies
Meson searches for qmake to determine if QT5 is available to support the optional qcam component. When cross compiling, meson can incorrectly identify the host qmake which will cause incorrect linkage and usage of system headers. Set the dependency method to specify pkg-config which resolves the issue. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -8,7 +8,10 @@ qcam_sources = files([
|
||||
])
|
||||
|
||||
import('qt5')
|
||||
qt5_dep = dependency('qt5', modules: ['Core', 'Gui', 'Widgets'], required : false)
|
||||
qt5_dep = dependency('qt5',
|
||||
method : 'pkg-config',
|
||||
modules : ['Core', 'Gui', 'Widgets'],
|
||||
required : false)
|
||||
|
||||
if qt5_dep.found()
|
||||
qcam = executable('qcam', qcam_sources,
|
||||
|
||||
Reference in New Issue
Block a user