Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Qt 5.0.2 with OpenSSL
@ 2013-10-08  8:43 Espen Frimann Koren
  2013-10-08  8:48 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Espen Frimann Koren @ 2013-10-08  8:43 UTC (permalink / raw)
  To: buildroot

Hello.

When both BR2_PACKAGE_QT5BASE_NETWORK and BR2_PACKAGE_OPENSSL are set,
something fails in the linking of libQt5Network.so that is related to
OpenSSL. I do not have time to figure out why, but suggest the following
change so that you do not have to compile Qt with OpenSSL support even if
you include OpenSSL in your build:

In package/qt5/qt5base/Config.in:

if BR2_PACKAGE_QT5BASE_NETWORK
config BR2_PACKAGE_QT5BASE_OPENSSL
  bool "use openssl"
  depends on BR2_PACKAGE_OPENSSL
  default BR2_PACKAGE_OPENSSL
  help
    This option toggles use of OpenSSL in Qt5

And in package/qt5/qt5base/qt5base.mk:
Change BR2_PACKAGE_OPENSSL to BR2_PACKAGE_QT5BASE_OPENSSL (around lines 113
and 114)

Sp1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131008/9d1b9c63/attachment.html>

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

* [Buildroot] Qt 5.0.2 with OpenSSL
  2013-10-08  8:43 [Buildroot] Qt 5.0.2 with OpenSSL Espen Frimann Koren
@ 2013-10-08  8:48 ` Thomas Petazzoni
       [not found]   ` <CA+csPL5q=rYc_-Q4enRD07Pomj9A6hossAB9cesFnMNnLQv5GA@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2013-10-08  8:48 UTC (permalink / raw)
  To: buildroot

Dear Espen Frimann Koren,

On Tue, 8 Oct 2013 10:43:17 +0200, Espen Frimann Koren wrote:

> When both BR2_PACKAGE_QT5BASE_NETWORK and BR2_PACKAGE_OPENSSL are set,
> something fails in the linking of libQt5Network.so that is related to
> OpenSSL.

Do you have the exact error message?

> I do not have time to figure out why, but suggest the
> following change so that you do not have to compile Qt with OpenSSL
> support even if you include OpenSSL in your build:
> 
> In package/qt5/qt5base/Config.in:
> 
> if BR2_PACKAGE_QT5BASE_NETWORK
> config BR2_PACKAGE_QT5BASE_OPENSSL
>   bool "use openssl"
>   depends on BR2_PACKAGE_OPENSSL
>   default BR2_PACKAGE_OPENSSL
>   help
>     This option toggles use of OpenSSL in Qt5
> 
> And in package/qt5/qt5base/qt5base.mk:
> Change BR2_PACKAGE_OPENSSL to BR2_PACKAGE_QT5BASE_OPENSSL (around
> lines 113 and 114)

Right, but for OpenSSL support, we generally want it to be enabled
automatically when the OpenSSL package is selected. The current
implementation is in fact a "feature", and the real fix is to
understand what build failure you're getting and make sure Qt5 can link
properly against OpenSSL.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] Qt 5.0.2 with OpenSSL
       [not found]   ` <CA+csPL5q=rYc_-Q4enRD07Pomj9A6hossAB9cesFnMNnLQv5GA@mail.gmail.com>
@ 2013-10-09  7:51     ` Thomas Petazzoni
  2013-10-09  8:23       ` Espen Frimann Koren
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2013-10-09  7:51 UTC (permalink / raw)
  To: buildroot

Dear Espen Frimann Koren,

(Please keep the Buildroot list in Cc, and avoid top-posting if
possible, thanks!)

On Wed, 9 Oct 2013 09:43:18 +0200, Espen Frimann Koren wrote:

> Nothing that make clean could not fix. Sorry for the "noise".

Ok, but what was the build failure? Probably we can fix it.

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] Qt 5.0.2 with OpenSSL
  2013-10-09  7:51     ` Thomas Petazzoni
@ 2013-10-09  8:23       ` Espen Frimann Koren
  2013-10-09  8:58         ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Espen Frimann Koren @ 2013-10-09  8:23 UTC (permalink / raw)
  To: buildroot

I lost the build log and when I did make clean, it worked :-)

The link errors did not relate to OpesSSL-libs, but to functions within Qt
that should have been compiled/present when OpenSSL was enabled. Maybe it
was a consequence of how I did the build:

1. Built all without openssl
2. Added openssl and built again, but without clean
2.1 Qt is not rebuilt then
3. Ran make qt5base-dirclean && make qt5base-build because I needed more
features in Qt
3.1 The link error is present
4. make clean && make
4.1 Everything builds fine.

Sp1


On 9 October 2013 09:51, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Dear Espen Frimann Koren,
>
> (Please keep the Buildroot list in Cc, and avoid top-posting if
> possible, thanks!)
>
> On Wed, 9 Oct 2013 09:43:18 +0200, Espen Frimann Koren wrote:
>
> > Nothing that make clean could not fix. Sorry for the "noise".
>
> Ok, but what was the build failure? Probably we can fix it.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131009/7093c517/attachment.html>

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

* [Buildroot] Qt 5.0.2 with OpenSSL
  2013-10-09  8:23       ` Espen Frimann Koren
@ 2013-10-09  8:58         ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-10-09  8:58 UTC (permalink / raw)
  To: buildroot

Dear Espen Frimann Koren,

On Wed, 9 Oct 2013 10:23:49 +0200, Espen Frimann Koren wrote:
> I lost the build log and when I did make clean, it worked :-)
> 
> The link errors did not relate to OpesSSL-libs, but to functions within Qt
> that should have been compiled/present when OpenSSL was enabled. Maybe it
> was a consequence of how I did the build:
> 
> 1. Built all without openssl
> 2. Added openssl and built again, but without clean
> 2.1 Qt is not rebuilt then
> 3. Ran make qt5base-dirclean && make qt5base-build because I needed more
> features in Qt
> 3.1 The link error is present
> 4. make clean && make
> 4.1 Everything builds fine.

Indeed such sequences are not guaranteed to work, but in this specific
case, I'm not sure to understand why it wouldn't work. I'll try to see
if I can reproduce the problem.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2013-10-09  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08  8:43 [Buildroot] Qt 5.0.2 with OpenSSL Espen Frimann Koren
2013-10-08  8:48 ` Thomas Petazzoni
     [not found]   ` <CA+csPL5q=rYc_-Q4enRD07Pomj9A6hossAB9cesFnMNnLQv5GA@mail.gmail.com>
2013-10-09  7:51     ` Thomas Petazzoni
2013-10-09  8:23       ` Espen Frimann Koren
2013-10-09  8:58         ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox