[poky] Qt should be linked to openssl at compilation

Mark Hatle mark.hatle at windriver.com
Wed Nov 16 12:57:14 PST 2011


On 11/16/11 1:47 PM, Francois Dupoux wrote:
> Hi,
>
> Would it be possible to link Qt with openssl at compilation time ?
>
> The problem we are having is our minimal root filesystem provides one Qt-4.7 application which connects to an HTTPS backend. But the openssl library is not in the root filesystem as it is not linked to any other application. So we end up with a run time error when Qt fails to dynamically load openssl:
>
> QSslSocket: cannot call unresolved function d2i_X509
>
> In that particular case this error is triggered by this function call:
> QSslCertificate::fromPath("/path/to/ca.crt");
>
> We are using Qt-Embedded but I guess the problem would be exactly the same with Qt-x11
>
> So it would be great to just link Qt with openssl so that all SSL related classes can work.
>
> We just need to add "-openssl-linked" to QT_CONFIG_FLAGS in recipes-qt/qt4.

Slightly off topic perhaps, but are you using the RPM packaging back-end?

This should have identified the usage of the openssl library and added it to the 
dependency set.  If it didn't I'm interested to know why it failed to detect it.

This is an outstanding enhancement request to add that same level of dependency 
detection to deb and ipkg.  Until then, if you want to use deb or ipkg you will 
likely need to add an RDEPENDS to openssl to get the dynamic version.

--Mark

> Many thanks
> Francois
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky




More information about the poky mailing list