Page 1 of 1

Problems building JCEF

PostPosted: Mon Aug 03, 2015 5:21 am
by clapas
Hi everyone,

following the steps for building JCEF from sources I encountered a problem. The build specified in the src\cef\third_party\README.jcef file is not listed in cefbuilds.com.
It says it should be 3.2357.1286.gf615d24 but it is not there... In the meantime I was trying with previous build CEF 3.2357.1276.gd4b589c, but I get compilation errors. I guess those are due to mismatching build versions. Anyway, they all look like this, in case it may be relevant:

Code: Select all
native/CefCommandLine_N.cpp: In function ‘_jobject* Java_org_cef_callback_CefCommandLine_1N_N_1getArguments(JNIEnv*, jobject)’:
/usr/lib/jvm/java-7-openjdk-amd64/include/jni_md.h:40:21: error: ‘UNUSED_succ’ was not declared in this scope
   #define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))


Cheers

Re: Problems building JCEF

PostPosted: Mon Aug 03, 2015 3:04 pm
by magreenblatt
CEF is not tested with OpenJDK. Use the Oracle JDK for best results.

Re: Problems building JCEF

PostPosted: Tue Aug 04, 2015 4:16 am
by clapas
Thank you for your reply.

I will try with Oracle JDK.

How about the build not being listed in cefbuilds.com? Is it ok to compile against a mismatching build?

Cheers

Re: Problems building JCEF

PostPosted: Tue Aug 04, 2015 11:55 am
by magreenblatt
clapas wrote:How about the build not being listed in cefbuilds.com? Is it ok to compile against a mismatching build?

You will probably have to build CEF yourself for the time being. See https://bitbucket.org/chromiumembedded/ ... ssues/137/.

Re: Problems building JCEF

PostPosted: Fri Jan 04, 2019 4:50 am
by vvijayan
Hi,
I am also facing the same issue while trying to build JCEF with OpenJDK.
Is the bug still present ?

Regards,
Vinitha

Re: Problems building JCEF

PostPosted: Thu Jun 20, 2019 2:19 am
by FirstAirBender
There is a build on github which is built with openjdk

https://github.com/smac89/java-cef-build