Re: [Interest] Qt cross compile issue on pkg-config

2017-09-20 Thread nus1998
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

Re: [Interest] Qt cross compile issue on pkg-config

2017-09-20 Thread Thiago Macieira
On quarta-feira, 20 de setembro de 2017 08:50:58 PDT Konstantin Tokarev wrote: > 20.09.2017, 18:48, "Thiago Macieira" : > > 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

Re: [Interest] Qt cross compile issue on pkg-config

2017-09-20 Thread Konstantin Tokarev
20.09.2017, 18:48, "Thiago Macieira" : > 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

Re: [Interest] Qt cross compile issue on pkg-config

2017-09-20 Thread Thiago Macieira
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. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source T

[Interest] Qt cross compile issue on pkg-config

2017-09-20 Thread nus1998
Hi All, I exported PKG_CONFIG_LIBDIR(/sysroot/lib/pkgconfig:/sysroot/usr/lib/pkgconfig) and PKG_CONFIG_SYSROOT_DIR(/sysroot) respectively, and configure with "-sysroot /sysroot -pkg-config", many features test like "Using C++ standard" failed. I think it's due to compiler files missing in /sys