Compile Chromium 60 with headless compile flags

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Compile Chromium 60 with headless compile flags

Postby akaoray » Fri Jun 23, 2017 10:10 am

Hello. I compile branch 3112 using chromium headless flags:
Code: Select all
use_ozone=true ozone_auto_platforms=false ozone_platform='headless' ozone_platform_headless=true headless_use_embedded_resources=true headless_fontconfig_utils=true


But in the process of compiling I get an error:

Code: Select all
[22320/28614] CXX obj/cef/libcef_static/render_widget_host_view_osr.o
FAILED: obj/cef/libcef_static/render_widget_host_view_osr.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/cef/libcef_static/render_widget_host_view_osr.o.d -DV8_DEPRECATION_WARNINGS -DDCHECK_ALWAYS_ON=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"303369-1\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBUILDING_CEF_SHARED -DUSING_CHROMIUM_INCLUDES -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DANGLE_ENABLE_RELEASE_ASSERTS -DTOOLKIT_VIEWS=1 -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_GPU=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DENABLE_IPC_FUZZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DV8_USE_EXTERNAL_STARTUP_DATA -DMESA_EGL_NO_X11_HEADERS -DI18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1 -DI18N_ADDRESS_VALIDATION_DATA_URL=\"https://chromium-i18n.appspot.com/ssl-aggregate-address/\" -DHUNSPELL_STATIC -DHUNSPELL_CHROME_CLIENT -DUSE_HUNSPELL -DLEVELDB_PLATFORM_CHROMIUM=1 -I../../third_party/WebKit/public/platform -I../../third_party/WebKit/public/web -I../../third_party/crashpad/crashpad -I../.. -Igen -I../../cef -I../../third_party/WebKit/Source -Igen/blink -I../../third_party/libwebp -I../../third_party/khronos -I../../gpu -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/third_party/vulkan -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I../../third_party/boringssl/src/include -I../../build/linux/debian_jessie_amd64-sysroot/usr/include/nss -I../../build/linux/debian_jessie_amd64-sysroot/usr/include/nspr -Igen/components/metrics/proto -I../../third_party/libwebm/source -Igen -I../../third_party/WebKit -Igen/third_party/WebKit -I../../v8/include -Igen/v8/include -I../../third_party/re2/src -I../../third_party/mesa/src/include -Igen -Igen -I../../third_party/libaddressinput/src/cpp/include -I../../third_party/libaddressinput/chromium/override -Igen -I../../third_party/brotli/include -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/libxml/src/include -I../../third_party/libxml/linux/include -I../../third_party/zlib -I../../v8/include -Igen/v8/include -I../../third_party/freetype/include -I../../third_party/freetype/src/include -I../../breakpad/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -m64 -march=x86-64 -pthread -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 --sysroot=../../build/linux/debian_jessie_amd64-sysroot -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-header-guard -DLIBXML_STATIC= -std=gnu++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -c ../../cef/libcef/browser/osr/render_widget_host_view_osr.cc -o obj/cef/libcef_static/render_widget_host_view_osr.o
../../cef/libcef/browser/osr/render_widget_host_view_osr.cc:729:48: error: cannot initialize a parameter of type 'unsigned long' with an lvalue of type 'ui::PlatformCursor' (aka 'void *')
  handler->OnCursorChange(browser_impl_.get(), platform_cursor, cursor_type,
                                               ^~~~~~~~~~~~~~~
../../cef/include/cef_render_handler.h:153:47: note: passing argument to parameter 'cursor' here
                              CefCursorHandle cursor,
                                              ^
1 error generated.
[22329/28614] CXX obj/cef/libcef_static/permission_context.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "automate-git.py", line 1079, in <module>
    if options.buildlogfile else None)
  File "automate-git.py", line 55, in run
    args, cwd=working_dir, env=env, 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_GN_x64', 'cefsimple', 'chrome_sandbox']' returned non-zero exit status 1



Is it possible to compile the cef with the support headless flag?
Thanks!
akaoray
Newbie
 
Posts: 5
Joined: Tue Aug 02, 2016 11:45 am

Re: Compile Chromium 60 with headless compile flags

Postby magreenblatt » Fri Jun 23, 2017 12:03 pm

magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

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