[Qtwebengine] Static builds of QtWebEngine aren't supported.

Mike Nolan me at mknln.com
Tue Dec 8 00:55:59 CET 2015


Hi Allan,

Thanks for the info and tips.

I don't have anything yet but will share what I find if there is anything
good.

On Mon, December 7, 2015 4:30 am, Allan Sandfeld Jensen wrote:
> Mixed static and dynamic builds are not supported, but could technically
> be possible, but I have no idea how much work it would be.
>
> You could try changing QtWebEngineCore into a lib TEMPLATE instead of a
> qt module, and set CONFIG += staticlib, that could at least make that
> statically linked into the API libraries (at the cost of being
> duplicated).
>
> You could probably also get away with making the qtwebchannel dependency
> optional (if you do, please contribute the patch).
>
> Btw If you find any tricks that significantly reduces the library size, I
>  would love to hear about them. It is not the first time the subject has
> come up.
>
> Regards
> `Allan
>
>
> On Monday 07 December 2015, Mike Nolan wrote:
>
>> Hi Allan,
>> I see,
>>
>>
>> Over here I am trying to limit the size of the deployed application as
>> well as to ease deployment (i.e. with the static build you won't have to
>>  send separate libraries - not that doing so is such a big deal).
>>
>> Since I noted that static builds of WebEngine aren't supported, I did
>> try an idea of linking Qt base statically but WebEngine dynamically, but
>> then hit some errors when compiling my application. Can you (or any
>> developer) speak to whether this should be possible? I am aware that I
>> may be doing something unusual/wrong/unsupported there so I will avoid
>> wasting my time if this is not a valid approach.
>>
>> Currently I have switched to trying to bring down the size of a dynamic
>>  library build and will see how that goes.
>>
>> Mike
>>
>>
>> On Sun, December 6, 2015 2:17 pm, Allan Sandfeld Jensen wrote:
>>
>>> On Sunday 06 December 2015, Mike Nolan wrote:
>>>
>>>> I am also facing the same issue currently and looking for info on
>>>> how to do this.
>>>>
>>>> I see the same issue when trying to build the 5.6 branch. (Not
>>>> latest but retrieved about two weeks ago. But I see this message
>>>> "Static builds
>>>> of QtWebEngine aren't supported" still is present in the latest
>>>> source.)
>>>
>>> That is because static builds are not supported. Even we did support
>>> it, it would be of limited use, since QtWebEngine is a multi-process
>>> library that uses an external binary anyway, and it contains LGPL code
>>> that would require any code linking to it, to be relinkable.
>>>
>>> Regards
>>> `Allan
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>> The Qt Company
>>> Rudower Chausse 13, 12489 D-Berlin
>>>
>>>
>>>
>>> The Qt Company is a group company of Digia Plc,
>>> Valimotie 21, FI-00380 Helsinki Finland
>>> _______________________________________________
>>> QtWebEngine mailing list
>>> QtWebEngine at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qtwebengine
>>>
>
>
> --
>
>
> The Qt Company
> Rudower Chausse 13, 12489 D-Berlin
>
>
> The Qt Company is a group company of Digia Plc,
> Valimotie 21, FI-00380 Helsinki Finland
>
>




More information about the QtWebEngine mailing list