[Interest] Qt cross compile issue on pkg-config
nus1998
nus1998 at yeah.net
Thu Sep 21 08:07:12 CEST 2017
OK, I set PKG_CONFIG_LIBDIR or PKG_CONFIG_PATH, variables such as QT_LIBS_GLIB are set correctly, however, there are many error on compiling such as compiling qttools\src\qdbus\qdbus, I must add followed text to *.pro file manually.
contains(QT_CONFIG, glib) {
QMAKE_CXXFLAGS += $$QT_CFLAGS_GLIB
LIBS_PRIVATE +=$$QT_LIBS_GLIB
}
At 2017-09-20 23:50:58, "Konstantin Tokarev" <annulen at yandex.ru> wrote:
>
>
>20.09.2017, 18:48, "Thiago Macieira" <thiago.macieira at intel.com>:
>> On quarta-feira, 20 de setembro de 2017 01:59:27 PDT nus1998 wrote:
>>> I wonder is there a way to use 3rd libraries by pkg-config but not change
>>> the compile path?
>>
>> Set PKG_CONFIG_PATH, not the sysroot.
>
>If pkg-config files contain paths relative to sysroot, sysroot needs to be set;
>if they are relative to host file system, PKG_CONFIG_PATH should be used.
>
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>> Software Architect - Intel Open Source Technology Center
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>
>--
>Regards,
>Konstantin
>_______________________________________________
>Interest mailing list
>Interest at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170921/032933e1/attachment.html>
More information about the Interest
mailing list