I want to cross compile CEF for arm architecture on ubuntu14.04.
I have used the automate-git.py script for cloning repos and compiling.
used environmet variables:
GYP_GENERATORS=ninja
GYP_CROSSCOMPILE=1
GYP_DEFINES=target_arch=arm arm_float_abi=hard component=shared_library
Compiling ends with an error on the libcef_dll_wrapper target:
Generating CEF project files...
________ running '/usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi' in '/home/devel/workspace/cef3/chromium/src/cef'
Updating projects from gyp files...
-------- Running "ninja -C out/Release cefclient chrome_sandbox" in "/home/devel/workspace/cef3/chromium/src"...
ninja: Entering directory `out/Release'
ninja: warning: multiple rules generate gen/about_credits.html. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate files/osr_test.html. builds involving this target will not be correct; continuing anyway
[6101/14108] ACTION cef_pak: make_pack_resources_header_257e1bb3c5349fb75dd8330e75fc96f7
File include/cef_pack_resources.h updated.
[6107/14108] ACTION cef_pak: make_pack_strings_header_257e1bb3c5349fb75dd8330e75fc96f7
File include/cef_pack_strings.h updated.
[13903/14108] CXX obj/cef/libcef_dll/ctocpp/libcef_dll_wrapper.callback_ctocpp.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/cef/libcef_dll/ctocpp/libcef_dll_wrapper.callback_ctocpp.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=238013-3 -DCOMPONENT_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DUSING_CEF_SHARED -DGL_GLEXT_PROTOTYPES -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=0 -DMOJO_USE_SYSTEM_IMPL -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../cef -I../.. -I../../third_party/khronos -I../../gpu -I../../skia/config -I../../third_party/WebKit/Source -Igen/angle -fstack-protector --param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -target arm-linux-gnueabihf -march=armv7-a -no-integrated-as -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb --sysroot=/home/devel/workspace/cef3/chromium/src/chrome/installer/linux/debian_wheezy_arm-sysroot -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -funique-section-names -Wno-c++0x-compat -Wno-deprecated-declarations -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -std=gnu++11 -c ../../cef/libcef_dll/ctocpp/callback_ctocpp.cc -o obj/cef/libcef_dll/ctocpp/libcef_dll_wrapper.callback_ctocpp.o
In file included from ../../cef/libcef_dll/ctocpp/callback_ctocpp.cc:13:
In file included from ../../cef/libcef_dll/ctocpp/callback_ctocpp.h:21:
In file included from ../../cef/include/cef_callback.h:41:
In file included from ../../cef/include/cef_base.h:35:
In file included from ../../cef/include/base/cef_atomic_ref_count.h:55:
../../cef/include/base/cef_atomicops.h:187:2: error: "Atomic operations are not supported on your platform"
#error "Atomic operations are not supported on your platform"
^
1 error generated.
[13903/14108] CXX obj/cef/libcef_dll/ctocpp/libcef.scheme_handler_factory_ctocpp.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "automate-git.py", line 861, in <module>
if options.buildlogfile else None)
File "automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Release', 'cefclient', 'chrome_sandbox']' returned non-zero exit status 1
I read something about defining BUILDING_CEF_SHARED variable.
Doing this, brings me to other errors: OVERRIDE variable not defined
After defining OVERRIDE internal:: namespace problems did appear.
I have also tried other cef branches (2357, 2272) but there are the same problems.
What did I make wrong?
Is there anyone, how has successfully cross compiled CEF for arm
Thanks,
Jonny