Page 1 of 1

requirements for building on macOS

PostPosted: Tue May 08, 2018 12:45 pm
by rmraya
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

Re: requirements for building on macOS

PostPosted: Wed May 09, 2018 2:19 am
by inx
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

Re: requirements for building on macOS

PostPosted: Wed May 09, 2018 2:22 am
by inx
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

Re: requirements for building on macOS

PostPosted: Thu May 10, 2018 7:35 am
by rmraya
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

Re: requirements for building on macOS

PostPosted: Wed Jul 04, 2018 3:09 am
by zmlctt
hi, i encounter the same problem, do you solve it now ?