www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Tutorial on D + Chromium / CEF / DerelictCEF with OSX ?

reply "Mike McKee" <volomike gmail.com> writes:
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?
Sep 08 2015
next sibling parent reply "Joakim" <dlang joakim.fea.st> writes:
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.
Sep 08 2015
parent reply "Mike McKee" <volomike gmail.com> writes:
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.
Sep 08 2015
parent "Mike Parker" <aldacron gmail.com> writes:
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.
Sep 08 2015
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
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
Sep 08 2015
prev sibling parent Jacob Carlborg <doob me.com> writes:
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
Sep 08 2015