From: Mark Hatle <mark.hatle@windriver.com>
To: <poky@yoctoproject.org>
Subject: Re: Qt should be linked to openssl at compilation
Date: Wed, 16 Nov 2011 14:57:14 -0600 [thread overview]
Message-ID: <4EC423AA.2080204@windriver.com> (raw)
In-Reply-To: <aeedea3c-261d-447f-beb5-d2c6752c583f@zimbra33-e6.priv.proxad.net>
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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
next prev parent reply other threads:[~2011-11-16 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <37aa3d7e-7cbb-48f7-8339-8f2b6f7ee06d@zimbra33-e6.priv.proxad.net>
2011-11-16 19:47 ` Qt should be linked to openssl at compilation Francois Dupoux
2011-11-16 20:38 ` Holger Hans Peter Freyther
2011-11-16 20:57 ` Mark Hatle [this message]
2011-11-16 21:20 ` Francois Dupoux
2011-11-16 21:32 ` Mark Hatle
2011-11-16 21:57 ` William Mills
2011-11-16 22:33 ` Francois Dupoux
2011-11-16 22:09 ` Holger Hans Peter Freyther
2011-11-16 23:42 ` Mark Hatle
2011-11-16 22:30 ` Francois Dupoux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EC423AA.2080204@windriver.com \
--to=mark.hatle@windriver.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.