Error while building JCEF on Mac OS X

Having problems with building or using the JCEF Java binding? Ask your questions here.

Error while building JCEF on Mac OS X

Postby TheImplementer » Fri Jan 15, 2016 7:53 pm

Hi, I'm trying to build JCEF following the instructions available at the following link: https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding
I managed to create the XCode project file, but when I try to build the project I get the following errors:

Code: Select all
<cut>/workspace/java-cef/src/native/request_context_handler.h:24:37: error: use of undeclared identifier 'CefWebPluginInfo'
                          CefRefPtr<CefWebPluginInfo> plugin_info,
                                    ^
<cut>/workspace/java-cef/src/native/request_context_handler.h:25:27: error: unknown type name 'PluginPolicy'
                          PluginPolicy* plugin_policy) OVERRIDE;


Any ideas?

Thanks
TheImplementer
Newbie
 
Posts: 3
Joined: Fri Jan 15, 2016 7:48 pm

Re: Error while building JCEF on Mac OS X

Postby magreenblatt » Fri Jan 15, 2016 9:55 pm

Did you download the correct CEF version? See third_party/cef/README.jcef.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Error while building JCEF on Mac OS X

Postby TheImplementer » Sat Jan 16, 2016 6:13 am

Thanks for the reply.
Yes, I've downloaded the Mac OS X 64-bit version and unzipped it under the third_party/cef/macosx64 folder as per instructions. Those are the only two compilation errors I get, other files from the same folder compile just fine.
TheImplementer
Newbie
 
Posts: 3
Joined: Fri Jan 15, 2016 7:48 pm

Re: Error while building JCEF on Mac OS X

Postby nala » Tue Feb 02, 2016 12:25 pm

Hi, I'm having the same problem here. Downloaded correct version, but fails on Product>Build and I'm getting the same errors
nala
Newbie
 
Posts: 9
Joined: Tue Feb 02, 2016 12:19 pm

Re: Error while building JCEF on Mac OS X

Postby upgradingdave » Tue Feb 09, 2016 9:34 am

Hi I am running into this same issue as well. Anyone solve this yet by chance?

Code: Select all
<cut>/workspace/java-cef/src/native/request_context_handler.h:24:37: error: use of undeclared identifier 'CefWebPluginInfo'
                          CefRefPtr<CefWebPluginInfo> plugin_info,
                                    ^
<cut>/workspace/java-cef/src/native/request_context_handler.h:25:27: error: unknown type name 'PluginPolicy'
                          PluginPolicy* plugin_policy) OVERRIDE;
upgradingdave
Newbie
 
Posts: 4
Joined: Tue Feb 09, 2016 9:31 am

Re: Error while building JCEF on Mac OS X

Postby upgradingdave » Wed Feb 10, 2016 5:13 pm

Hi all, just a heads up that I got past this issue by downloading "Branch 2526" version of Mac OSx 64 bit. I'm guessing that the "Dev channel (trunk)" version is under development.

So, when you go to https://cefbuilds.com/, just be careful to choose a branch instead of trunk and should be good to go!
upgradingdave
Newbie
 
Posts: 4
Joined: Tue Feb 09, 2016 9:31 am

Re: Error while building JCEF on Mac OS X

Postby magreenblatt » Wed Feb 10, 2016 10:59 pm

You should use the version (3.XXXX.YYYY) specified in the third_party/cef/README.jcef file.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Error while building JCEF on Mac OS X

Postby TheImplementer » Sat Feb 13, 2016 7:18 pm

Thanks, using the 2526 branch did the trick.
TheImplementer
Newbie
 
Posts: 3
Joined: Fri Jan 15, 2016 7:48 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 30 guests