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" <annu...@yandex.ru> wrote: > > >20.09.2017, 18:48, "Thiago Macieira" <thiago.macie...@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@qt-project.org >> http://lists.qt-project.org/mailman/listinfo/interest > >-- >Regards, >Konstantin >_______________________________________________ >Interest mailing list >Interest@qt-project.org >http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest