[Development] [Android] Use pkg-config to link with external libraries in qmake project

Denis Shienkov denis.shienkov at gmail.com
Wed Dec 20 10:35:19 CET 2017


Hi Oswald,

Hmm.. many thanks for your hint, I have modified the
pkg-conf env variables to:

1. PKG_CONFIG_LIBDIR = c:\Android\gstreamer\armv7\lib\pkgconfig
  - a path to all *.pc files.

2. PKG_CONFIG_SYSROOT_DIR = c:\Android\gstreamer\armv7
  - a path to a 'fake' sysroot, which contains an 'include',
    'lib', 'etc' and other directories.

Now, the qmake eats it without warnings...
But, now, it does not detect the gst's include files,
like:

#include <gst/gst.h>

though they are present in:

c:\Android\gstreamer\armv7\include\gstreamer-1.0\gst\

:(


20.12.2017 12:04, Oswald Buddenhagen пишет:
> On Wed, Dec 20, 2017 at 11:39:20AM +0300, Denis Shienkov wrote:
>> This says about the 'sysroot', but, I have no any sysroot for Android kit,
>>
> that's just implausible. you must have something that resembles a
> sysroot, even if it's not declared as such. if you don't find anything
> else, just use the directory that contains the lib and include
> directories.
>
> the code is in qt_functions.prf:pkgConfigExecutable(). here you see that
> you will need to set %PKG_CONFIG_LIBDIR% and %PKG_CONFIG_SYSROOT_DIR% if
> you qt build is not configured for pkg-config use to start with.
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20171220/9a0ea3bf/attachment.html>


More information about the Development mailing list