Help needed with Chromium Embedded Framework wxWebView integration

38 views
Skip to first unread message

Tobias T

unread,
Feb 20, 2018, 3:23:18 PM2/20/18
to wx-dev
Hi,
I've recently put some finishing touches on the SOC 2014 project integrating Chromium Embedded Framework as wxWebView backend.
See the Pull Request here. General feedback is welcome, please comment in the PR.

Please first try building using CMake it will automatically download the required CEF libraries. Just configure with wxUSE_WEBVIEW_CHROMIUM=ON and CMAKE_CXX_STANDARD=11 and you should be able to build webviewsample_chromium. I've tested this with Visual Studio 2017, Xcode 9 and Ninja on Ubuntu.
I've also updated autoconf but that's not complete yet also building on OSX should work.

For GTK on Linux I need someone with some more Linux GTK Knowledge:

In the following line the window gets set via the CEF API method SetAsChild() this needs a Xwindow? handle
https://github.com/TcT2k/wxWidgets/blob/4ee5b50401a37867530b1d94ce4fd820802c700a/src/common/webview_chromium.cpp#L267
I'm not sure how to acquire one in the context. So if anybody could get this to run or can give me tips please do.
The original code did not build anymore with current CEF interface.

Regards,
Tobias

Igor Korot

unread,
Feb 20, 2018, 3:35:26 PM2/20/18
to wx-dev
Hi, Tobias,

On Tue, Feb 20, 2018 at 2:23 PM, Tobias T <ttas...@gmail.com> wrote:
> Hi,
> I've recently put some finishing touches on the SOC 2014 project integrating
> Chromium Embedded Framework as wxWebView backend.
> See the Pull Request here. General feedback is welcome, please comment in
> the PR.
>
> Please first try building using CMake it will automatically download the
> required CEF libraries. Just configure with wxUSE_WEBVIEW_CHROMIUM=ON and
> CMAKE_CXX_STANDARD=11 and you should be able to build
> webviewsample_chromium. I've tested this with Visual Studio 2017, Xcode 9
> and Ninja on Ubuntu.

Do I have to build with c++11? Is it CEF requiremt?

Thank you.

>
> --
> To unsubscribe, send email to wx-dev+un...@googlegroups.com
> or visit http://groups.google.com/group/wx-dev
>

Tobias Taschner

unread,
Feb 20, 2018, 3:36:49 PM2/20/18
to wx-...@googlegroups.com
Yes CEF requires building with C++11 and CEF will automatically downloaded when building with CMake.


>
> --
> To unsubscribe, send email to wx-dev+unsubscribe@googlegroups.com
> or visit http://groups.google.com/group/wx-dev
>

--
To unsubscribe, send email to wx-dev+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wx-dev


Igor Korot

unread,
Feb 20, 2018, 3:40:58 PM2/20/18
to wx-dev
Tobias,

On Tue, Feb 20, 2018 at 2:36 PM, Tobias Taschner <t...@tc84.de> wrote:
> Yes CEF requires building with C++11 and CEF will automatically downloaded
> when building with CMake.

But I can grab the CEF binaries and build wx w/o c++11, right?

Thank you.

>
> 2018-02-20 21:35 GMT+01:00 Igor Korot <ikor...@gmail.com>:
>>
>> Hi, Tobias,
>>
>> On Tue, Feb 20, 2018 at 2:23 PM, Tobias T <ttas...@gmail.com> wrote:
>> > Hi,
>> > I've recently put some finishing touches on the SOC 2014 project
>> > integrating
>> > Chromium Embedded Framework as wxWebView backend.
>> > See the Pull Request here. General feedback is welcome, please comment
>> > in
>> > the PR.
>> >
>> > Please first try building using CMake it will automatically download the
>> > required CEF libraries. Just configure with wxUSE_WEBVIEW_CHROMIUM=ON
>> > and
>> > CMAKE_CXX_STANDARD=11 and you should be able to build
>> > webviewsample_chromium. I've tested this with Visual Studio 2017, Xcode
>> > 9
>> > and Ninja on Ubuntu.
>>
>> Do I have to build with c++11? Is it CEF requiremt?
>>
>> Thank you.
>>
>> >
>> > --
>> > To unsubscribe, send email to wx-dev+un...@googlegroups.com
>> > or visit http://groups.google.com/group/wx-dev
>> >
>>
>> --
>> To unsubscribe, send email to wx-dev+un...@googlegroups.com

Tobias Taschner

unread,
Feb 20, 2018, 4:46:33 PM2/20/18
to wx-...@googlegroups.com
Currently I'm not sure yet. At least the webview_chromium library needs to be built with c++11 because of the CEF headers. But the rest should be independent of that.

>> > To unsubscribe, send email to wx-dev+unsubscribe@googlegroups.com

>> > or visit http://groups.google.com/group/wx-dev
>> >
>>
>> --
>> To unsubscribe, send email to wx-dev+unsubscribe@googlegroups.com
> To unsubscribe, send email to wx-dev+unsubscribe@googlegroups.com
Reply all
Reply to author
Forward
0 new messages