requirements for building on macOS

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

requirements for building on macOS

Postby rmraya » Tue May 08, 2018 12:45 pm

Hi,

I'm trying to build JCEF on macOS following the instructions at https://bitbucket.org/chromiumembedded/ ... ndBuilding but Xcode throws an error

These are the tools I have:

CMake 3.11.1
Git version 2.15.1 (Apple Git-101)
Java build 1.8.0_172-b11
Python 2.7.10
ant 1.10.3 compiled on March 24 2018
Xcode 9.3 (9E145)
Xcode 9.3 command line tools installed

Everything running on macOS 10.13.4

Am I missing some dependency or is current code broken?

Regards,
Rodolfo
rmraya
Newbie
 
Posts: 8
Joined: Tue May 08, 2018 12:32 pm

Re: requirements for building on macOS

Postby inx » Wed May 09, 2018 2:19 am

what error does xcode throw?

for it to compile i needed to set the absolute path for ant in script:
jcef_build/native/CMakeScripts/jcef_postBuildPhase.makeRelease
(in my case: /opt/local/bin/ant)

somehow the path to ant could not be resolved... it's a bit hackish, but it worked.

hth
inx
Newbie
 
Posts: 5
Joined: Tue May 08, 2018 7:12 am

Re: requirements for building on macOS

Postby inx » Wed May 09, 2018 2:22 am

alternatively you can export the path to ant in the post-build script before the make command:
in my case it would look like this:
Code: Select all
export PATH=$PATH:/opt/local/bin

make -C /pathto/java-cef/jcef_build/native -f /pathto/java-cef/jcef_build/native/CMakeScripts/jcef_postBuildPhase.make$CONFIGURATION all
inx
Newbie
 
Posts: 5
Joined: Tue May 08, 2018 7:12 am

Re: requirements for building on macOS

Postby rmraya » Thu May 10, 2018 7:35 am

Hi,

There is no problem with ant, it is found by Xcode (It already is in a public path).

There is a Java problem. A class is not found and it seems that the issue has been reported for Java 8_121 and newer.

The error I get is:

([javac] /Users/rmraya/jcef/src/java/org/cef/browser/mac/CefBrowserWindowMac.java:26: error: cannot find symbol)

If anyone has a working build for macOS, I would appreciate a copy.

Thanks,
Rodolfo
rmraya
Newbie
 
Posts: 8
Joined: Tue May 08, 2018 12:32 pm

Re: requirements for building on macOS

Postby zmlctt » Wed Jul 04, 2018 3:09 am

hi, i encounter the same problem, do you solve it now ?
zmlctt
Newbie
 
Posts: 1
Joined: Wed Jul 04, 2018 3:04 am


Return to JCEF Forum

Who is online

Users browsing this forum: Google [Bot] and 27 guests