All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5] static link plugin lib path problem
@ 2015-02-05  2:53 Qiang Yu
  2015-02-05  3:04 ` Qiang Yu
  0 siblings, 1 reply; 9+ messages in thread
From: Qiang Yu @ 2015-02-05  2:53 UTC (permalink / raw)
  To: yocto@yoctoproject.org; +Cc: otavio

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

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
|
/opt/yocto-rel/yocto/0.1/build/linda-a20navi/tmp/sysroots/x86_64-linux/usr/libexec/arm-linda-linux-gnueabi/gcc/arm-linda-linux-gnueabi/4.9.1/ld:
warning: library search path "/usr/lib/qt5/plugins/bearer" is unsafe for
cross-compilation
|
/opt/yocto-rel/yocto/0.1/build/linda-a20navi/tmp/sysroots/x86_64-linux/usr/libexec/arm-linda-linux-gnueabi/gcc/arm-linda-linux-gnueabi/4.9.1/ld:
cannot find -lqgenericbearer
| collect2: error: ld returned 1 exit status
| make[2]: *** [../../bin/xmlpatterns] Error 1
| make[2]: Leaving directory
`/opt/yocto-rel/yocto/0.1/build/linda-a20navi/tmp/work/cortexa7hf-vfp-vfpv4-neon-linda-linux-gnueabi/qtxmlpatterns/5.3.2-r0/build/tools/xmlpatterns'

I find the Makefile generated by qmake for tools/xmlpatterns has the wrong
LIBS:
LIBS          = $(SUBLIBS)
-L/opt/yocto-rel/yocto/0.1/build/linda-a20navi/tmp/work/cortexa7hf-vfp-vfpv4-neon-linda-linux-gnueabi/qtxmlpatterns/5.3.2-r0/build/lib
-lQt5XmlPatterns -lQt5Network -lQt5Core -lz -lm -ldl -lrt
-L/usr/lib/qt5/plugins/bearer -lqgenericbearer -lpthread

It seems the plugin lib dir doesn't have a cross compile prefix. Any one
meet this problem before or know how to fix static link plugin lib path?

Thanks,
Qiang

[-- Attachment #2: Type: text/html, Size: 1740 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-06 13:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05  2:53 [meta-qt5] static link plugin lib path problem Qiang Yu
2015-02-05  3:04 ` Qiang Yu
2015-02-05 14:43   ` Qiang Yu
2015-02-06  5:32     ` Qiang Yu
2015-02-06  6:35       ` Qiang Yu
2015-02-06 11:04       ` Otavio Salvador
2015-02-06 13:36         ` Qiang Yu
2015-02-06 13:48           ` Otavio Salvador
2015-02-06 13:55           ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.