| Thread overview | ||||||||
|---|---|---|---|---|---|---|---|---|
|
September 08, 2015 Tutorial on D + Chromium / CEF / DerelictCEF with OSX ? | ||||
|---|---|---|---|---|
| ||||
I downloaded DerelictCEF and used dub to compile it on my OSX (Yosemite). Now how do I get CEF downloaded and ready to work with it? I found an OSX 64 bit version file here: https://cefbuilds.com/ There doesn't seem to be any documentation for that part. From there, what is the trick to load up a local HTML page that says Hello World? | ||||
September 08, 2015 Re: Tutorial on D + Chromium / CEF / DerelictCEF with OSX ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Mike McKee | On Tuesday, 8 September 2015 at 11:37:13 UTC, Mike McKee wrote: > I downloaded DerelictCEF and used dub to compile it on my OSX (Yosemite). Now how do I get CEF downloaded and ready to work with it? I found an OSX 64 bit version file here: > > https://cefbuilds.com/ > > There doesn't seem to be any documentation for that part. > > From there, what is the trick to load up a local HTML page that says Hello World? Mike's busy writing a book, you're on your own for now: http://dblog.aldacron.net/2015/01/derelictcef-binding-to-chromium-embedded-framework/ You could try building and linking the sample code that he pasted there, using the standard procedure to link against C libraries, ie add "-L-L path/to/ceflib -L-l name_of_ceflib" to your dmd invocation. | |||
September 08, 2015 Re: Tutorial on D + Chromium / CEF / DerelictCEF with OSX ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Joakim | Bad timing on my part, I guess. If DerelictCEF gets off the ground, gets stable, and has good documentation (specifically on the CEF install part is what I lack), then that's an extremely robust, cross-platform GUI framework that D can take advantage of. I got DerelictCEF compiled okay -- it's the CEF install part that I lack. Here's what I'd like to do: * Show Chromium with my own custom titlebar, no tabs, a minimal menu, a non-resizable window but minimizable, and no page rightclick. * Load the HTML into Chromium from a resource file. * Inject D callbacks into the Javascript. * At that point, I can use CSS and jQuery in the HTML to interact with the D classes. | |||
September 08, 2015 Re: Tutorial on D + Chromium / CEF / DerelictCEF with OSX ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Mike McKee | On 2015-09-08 13:37, Mike McKee wrote: > I downloaded DerelictCEF and used dub to compile it on my OSX > (Yosemite). Now how do I get CEF downloaded and ready to work with it? I > found an OSX 64 bit version file here: > > https://cefbuilds.com/ I have no idea how to use the actual API but to use it you need to: 1. Download the 64bit binary 2. Extract the archive 3. Copy the file "Release/Chromium Embedded Framework.framework" to "/Library/Frameworks". DerelictCEF will automatically find the framework at runtime -- /Jacob Carlborg | |||
September 08, 2015 Re: Tutorial on D + Chromium / CEF / DerelictCEF with OSX ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Mike McKee | On 2015-09-08 13:37, Mike McKee wrote: > I downloaded DerelictCEF and used dub to compile it on my OSX > (Yosemite). Now how do I get CEF downloaded and ready to work with it? I > found an OSX 64 bit version file here: > > https://cefbuilds.com/ > > There doesn't seem to be any documentation for that part. > > From there, what is the trick to load up a local HTML page that says > Hello World? > BTW, these questions are more suited for the learn group [1]. [1] http://forum.dlang.org/group/learn -- /Jacob Carlborg | |||
September 09, 2015 Re: Tutorial on D + Chromium / CEF / DerelictCEF with OSX ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Mike McKee | On Tuesday, 8 September 2015 at 15:53:39 UTC, Mike McKee wrote:
> Bad timing on my part, I guess. If DerelictCEF gets off the ground, gets stable, and has good documentation (specifically on the CEF install part is what I lack), then that's an extremely robust, cross-platform GUI framework that D can take advantage of.
Once the book is finished, my next focus will be on getting the documentation for all of the Derelict packages completed. Generally, I don't think it's my responsibility to document how to install the C libraries Derelict binds to, but given the scarcity of CEF documentation, I'll eventually put together a tutorial for it once I figure it all out myself. I'm eager to use CEF for a project I have in mind.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply