My build script looks like this:
- Code: Select all
#!/bin/sh
BUILD_ROOT="/path/to/cef_source_3.2924.1575.g97389a9"
XCODE731_PATH="/Applications/Xcode7.3.1/Xcode.app/Contents/Developer"
sudo xcode-select -s "$XCODE731_PATH"
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"
export CEF_ARCHIVE_FORMAT=tar.bz2
# Target: CEF 3.2924.1575.g97389a9 / Chromium 56.0.2924.76
python "$BUILD_ROOT/automate-git.py" --download-dir="$BUILD_ROOT" --branch=2924 --checkout=97389a9 --x64-build
and the errors I'm seeing look like this:
- Code: Select all
...
FAILED: obj/cef/cefclient_executable/cefclient_mac.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/cef/cefclient_executable/cefclient_mac.o.d -DV8_DEPRECATION_WARNINGS -DENABLE_NOTIFICATIONS -DENABLE_PLUGINS=1 -DENABLE_PDF=1 -DDCHECK_ALWAYS_ON=1 -DNO_TCMALLOC -DUSE_EXTERNAL_POPUP_MENU=1 -DENABLE_WEBRTC=1 -DDISABLE_NACL -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DUSE_PROPRIETARY_CODECS -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=284979-2 -DCR_XCODE_VERSION=0731 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTOOLKIT_VIEWS=1 -I../.. -Igen -I../../third_party/khronos -I../../gpu -I../../third_party/libwebp -I../../cef -Iincludes -fno-strict-aliasing -fstack-protector -fcolor-diagnostics -arch x86_64 -Wall -Werror -Wextra -Wpartial-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -O2 -gdwarf-2 -fno-standalone-debug -isysroot /Applications/Xcode7.3.1/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.9 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -fno-threadsafe-statics -fvisibility-inlines-hidden -std=c++11 -stdlib=libc++ -fobjc-call-cxx-cdtors -Wobjc-missing-property-synthesis -fno-rtti -fno-exceptions -c ../../cef/tests/cefclient/cefclient_mac.mm -o obj/cef/cefclient_executable/cefclient_mac.o
../../cef/tests/cefclient/cefclient_mac.mm:22:29: error: property 'mainMenu' not found on object of type 'id'
NSMenu* main_menu = NSApp.mainMenu;
^
1 error generated.
...
ninja: build stopped: subcommand failed.
...
-------- Running "ninja -C out/Debug_GN_x64 cefclient" in "/path/to/cef_source_3.2924.1575.g97389a9/chromium/src"...
Traceback (most recent call last):
File "/path/to/cef_source_3.2924.1575.g97389a9/automate-git.py", line 980, in <module>
if options.buildlogfile else None)
File "/path/to/cef_source_3.2924.1575.g97389a9/automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Debug_GN_x64', 'cefclient']' returned non-zero exit status 1
I located the following post:
http://magpcss.org/ceforum/viewtopic.php?f=6&t=14954&p=34065&hilit=NSApp.mainMenu#p34065
which seems to indicate that changing "NSApp.mainMenu" to "[[NSApplication sharedApplication] mainMenu]" in cefclient_mac.mm might fix part of the problem, but that was for a different version of Xcode, and was based on the Spotify distribution (while I am building from source). For the rest of the errors, I've seen numerous similar cases in the forum, but none seem to apply to my situation.
Any idea what the problem is, or on possible solutions? Thanks for any help you can provide.