Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-06 Thread Otavio Salvador
On Fri, Feb 6, 2015 at 3:32 AM, Qiang Yu yuq...@gmail.com wrote: ... Another question, from the wiki I saw quit some work on the QT5 build path. Now that QT5 is enhancing its cross-compile support, will meta-qt5 switch to the native, less-patch and clean method? ... If you take a look on the

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-06 Thread Qiang Yu
Notice in the wiki and patch using -external-hostbindir option to use host tools generated by qtbase-native. Why must do this? What if I just use tools generated by qtbase? Is it possible? For example by copying ${D}/bin files to ${STAGING_DIR_NATIVE}/usr in do_populate_sysroot? On Fri, Feb 6,

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-06 Thread Martin Jansa
On Fri, Feb 06, 2015 at 09:36:13PM +0800, Qiang Yu wrote: Notice in the wiki and patch using -external-hostbindir option to use host tools generated by qtbase-native. Why must do this? What if I just use tools generated by qtbase? Is it possible? For example by copying ${D}/bin files to

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-06 Thread Otavio Salvador
On Fri, Feb 6, 2015 at 11:36 AM, Qiang Yu yuq...@gmail.com wrote: Notice in the wiki and patch using -external-hostbindir option to use host tools generated by qtbase-native. Why must do this? What if I just use tools generated by qtbase? Is it possible? For example by copying ${D}/bin files

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-05 Thread Qiang Yu
I find some valuable info from https://github.com/meta-qt5/meta-qt5/wiki/Building-with-OE Now I use $$[QT_INSTALL_PLUGINS] which qmake will prefix /usr/lib/plugins with SYSROOT. But the Makefile has another problem when upgrade to 5.4: LIBS = $(SUBLIBS)

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-05 Thread Qiang Yu
The libdir problem occurs when I change $$[QT_INSTALL_PLUGINS/get] to $$[QT_INSTALL_PLUGINS]. On Fri, Feb 6, 2015 at 1:32 PM, Qiang Yu yuq...@gmail.com wrote: I find some valuable info from https://github.com/meta-qt5/meta-qt5/wiki/Building-with-OE Now I use $$[QT_INSTALL_PLUGINS] which

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-05 Thread Qiang Yu
I find the problem: qt.prf: plugpath = $$[QT_INSTALL_PLUGINS/get] both $$[QT_INSTALL_PLUGINS/get] and $$[QT_INSTALL_PLUGINS/raw] equal /usr/lib/qt5/plugins but $$[QT_INSTALL_PLUGINS] equals right path. Now my question is 1. why there are three var of QT_INSTALL_PLUGINS? 2. where are their

[yocto] [meta-qt5] static link plugin lib path problem

2015-02-04 Thread Qiang Yu
Hi all, I use meta-qt5 for QT5 support. But I need static link the application so I remove the -share from configure args and add -static. The bitbake qtbase is fine, but bitbake qtxmlpatterns do_compile fail: | linking ../../bin/xmlpatterns |

Re: [yocto] [meta-qt5] static link plugin lib path problem

2015-02-04 Thread Qiang Yu
the share link version of the same Makefile's LIBS has no plugin link: LIBS = $(SUBLIBS) -L/opt/yocto/build/sunxi/linda-a20navi-base/tmp/work/cortexa7hf-vfp-vfpv4-neon-linda-linux-gnueabi/qtxmlpatterns/5.3.2-r0/build/lib -lQt5XmlPatterns -lQt5Network -lQt5Core -lpthread On Thu, Feb 5,