[poky] Qt should be linked to openssl at compilation
Francois Dupoux
fdupoux at free.fr
Wed Nov 16 11:47:27 PST 2011
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.
Many thanks
Francois
More information about the poky
mailing list