successfully built cef2go with go 1.7 64-bit under OSX

192 views
Skip to first unread message

alex....@gmail.com

unread,
Sep 5, 2016, 12:59:15 AM9/5/16
to CEF2go
I just succeeded in building the demo app with cef2go using 64-bit go1.7 under OSX Yosemite.

The process was:
- download the "test app" from cefbuilds.com for CEF 3.1750.1625. This is actually the part most likely to go wrong. On cefbuilds.com there are branches, builds, platforms, and then for each one there is the library, the test app, and the debug/release symbols. You want branch 1750 build 1625, OSX 64-bit, and the Test App. The file you eventually download should be named "cef_binary_3.1750.1625_macosx64_client.7z".

Now uncompress and rename all the "cefclient" things to "cef2go":

$ 7z x cef_binary_3.1750.1625_macosx64_client.7z
$ cd cef_binary_3.1750.1625_macosx64_client/Release
$ mv cefclient.app cef2go.app
$ cd cef2go.app/Contents/Frameworks/
$ mv cefclient\ Helper.app cef2go\ Helper.app
$ cd cef2go\ Helper.app/Contents/MacOS
$ mv cefclient\ Helper cef2go\ Helper

Now clone cef2go master and move cef2go.app into the Release dir
$ git clone g...@github.com:cztomczak/cef2go.git
$ mv cef_binary_3.1750.1625_macosx64_client/Release/cef2go.app cef2go/Release
$ cd cef2go

And finally:
$ make

If all goes according to plan you should get a window with a simple HTML file. If you get build errors complaining about architectures then that probably means that your go binary has an architecture different from that of the CEF framework. Try comparing:

$ go version
$ file "Release/cef2go.app/Contents/Frameworks/Chromium Embeddded Framework.framework"

If the window appears but there is no html rendered inside it then that means you got something wrong with the app renaming. Check your terminal output for dlopen failures.

Czarek Tomczak

unread,
Sep 5, 2016, 6:18:52 AM9/5/16
to CEF2go
Thanks for sharing.

Btw. cefbuilds.com is deprecated, newest CEF binaries can be downloaded from http://opensource.spotify.com/cefbuilds/index.html . If someone makes it work with new CEF and would like to share it that would be great (most probably it will require some code changes).
Reply all
Reply to author
Forward
0 new messages