Page 1 of 1

Has anyone successfully built an CEF application with wxGTK?

Posted: Sun Nov 03, 2019 5:39 am
by winvdk
Hi,
I'm learning Chromium Embedded Framework (CEF), and tried to build some simple examples written by myself for practice. I followed this tutorial chromiumembedded / cef / wiki / GeneralUsage — Bitbucket, but it doesn't actually work. It really is not as simple as the tutorial describes. The main problem is the integration between CEF and wxGTK (I haven't tried wxMSW yet). There are some articles on the Internet teaching the topic, but they are either on Windows or using GTK+ 2. I haven't tried GTK+ 2 myself, but did try GTK+ 3 and it still didn't work. I think it is doable with GTK+ 3 (and its wxGTK front end), because I did have successfully built and run the example in the directory test/cefsimple/ that comes with the pre-built binary downloaded from CEF Automated Builds. The cefsimple uses X11 directly, so there must be a way for GTK+ 3 to integrate with CEF. Does any one know how? Any hints or links would be highly appreciated.

Re: Has anyone successfully built an CEF application with wxGTK?

Posted: Sun Nov 03, 2019 9:22 am
by PB
Do you know about wxWebViewChromium? For some reason, it has been long unmerged but perhaps it can serve as an inspiration:
https://github.com/wxWidgets/wxWidgets/pull/706

However, IIRC wxWebViewChromium structure (implementation of CEF classes) is kinda different from the CEF examples.

Re: Has anyone successfully built an CEF application with wxGTK?

Posted: Sun Nov 03, 2019 2:33 pm
by winvdk
Thanks for the reply, and yes I did check the source codes of wxWebViewChromium before asking the question. As far as I know, it is removed from version 3.1.2 of wxWidgets. I actually doubt if it is completed. For example, while creating a CefBrowser object it does not setup the CefWindowInfo object at all on all platforms except Windows. How will CEF know where to put the newly-created browser window if the code doesn't specify a container window? Weird. Maybe the wxWebViewChromium project is not completed yet.

Re: Has anyone successfully built an CEF application with wxGTK?

Posted: Sat Nov 09, 2019 7:29 am
by evstevemd
Did you try to build webviewsample_chromium to get the feel and see how to use it?