Porting CEF3 on ARM

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Porting CEF3 on ARM

Postby cameral » Tue Nov 18, 2014 6:13 pm

Hi,

I am porting CEF3 on ARM platform. My ARM doesn't support X11, so I want to use Ozone. I found one topic in the forum: http://www.magpcss.org/ceforum/viewtopi ... 890#p22890
I followed the instruction of the link to build my source, but failed. Here is the detailed step. Could you help to check if the steps is correct or I missed something?


Code: Select all
1.   Fetch depot_tools: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2.   Add depot_tools to PATH Env:
         # export PATH=`pwd`/depot_tools:"$PATH"
3.   Get the code
fetch --nohooks chromium .
cd src
git checkout master
gclient sync

4.   Configure GYP build
export GYP_GENERATORS='ninja'
export GYP_CROSSCOMPILE=1
export GYP_DEFINES="target_arch=arm arm_float_abi=hard use_ash=1 use_aura=1 chromeos=0 use_ozone=1"

5.   Generating the build files
$ ./build/gyp_chromium

6.   Download CEF source code
cd /path/to/chromium/src
git clone https://chromiumembedded@bitbucket.org/chromiumembedded/trunk-cef3.git cef

7.   Download chromiumembedded source code
cd /path/to/chromium/src
git clone https://github.com/kuscsik/chromiumembedded

8.   Setup an ARM build:
#cd src/chromiumembedded
# ./cef_create_projects.sh -I arm_ozone.gypi

9.   Build CEF
cd /path/to/chromium/src/cef
./cef_create_projects.sh
cd /path/to/chromium/src
ninja -C out/Debug cefclient cef_unittests


I got following error when I ran step 8.
Generating CEF project files...

________ running '/usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi' in '/disk/chromium/cef3/download/chromium/src/chromiumembedded'
Updating projects from gyp files...
Exception: 'chromiumembedded/libcef/resources/cef_strings.grd'
Traceback (most recent call last):
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 484, in CallLoadTargetBuildFile
includes, depth, check, False)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 399, in LoadTargetBuildFile
build_file_data, PHASE_EARLY, variables, build_file_path)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 1271, in ProcessVariablesAndConditionsInDict
build_file)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 1286, in ProcessVariablesAndConditionsInList
ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 1271, in ProcessVariablesAndConditionsInDict
build_file)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 1286, in ProcessVariablesAndConditionsInList
ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 1271, in ProcessVariablesAndConditionsInDict
build_file)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 1290, in ProcessVariablesAndConditionsInList
expanded = ExpandVariables(item, phase, variables, build_file)
File "/disk/chromium/cef3/download/chromium/src/tools/gyp/pylib/gyp/input.py", line 897, in ExpandVariables
replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
File "/disk/chromium/cef3/download/chromium/src/tools/grit/grit_info.py", line 138, in DoMain
options.target_platform)
File "/disk/chromium/cef3/download/chromium/src/tools/grit/grit_info.py", line 68, in Inputs
first_ids_file=ids_file, target_platform=target_platform)
File "/disk/chromium/cef3/download/chromium/src/tools/grit/grit/grd_reader.py", line 214, in Parse
handler.root.AssignFirstIds(filename_or_stream, defines)
File "/disk/chromium/cef3/download/chromium/src/tools/grit/grit/node/misc.py", line 460, in AssignFirstIds
raise e
KeyError: 'chromiumembedded/libcef/resources/cef_strings.grd'

------------------------------------------------------------------------------
Resource id not set for chromiumembedded/libcef/resources/cef_strings.grd (messages)!
Please update ../tools/gritsettings/resource_ids to include an entry for chromiumembedded/libcef/resources/cef_strings.grd. See the comments in resource_ids for information on why you need to update that file.
------------------------------------------------------------------------------
Traceback (most recent call last):
File "tools/gclient_hook.py", line 43, in <module>
RunAction(cef_dir, gyper)
File "/disk/chromium/cef3/download/chromium/src/chromiumembedded/tools/gclient_util.py", line 39, in RunAction
command, cwd=dir, always=True)
File "/disk/chromium/depot_tools/gclient_utils.py", line 286, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/disk/chromium/depot_tools/gclient_utils.py", line 531, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command /usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi returned non-zero exit status 1 in /disk/chromium/cef3/download/chromium/src/chromiumembedded


Your advice and help is much appreciated.
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Re: Porting CEF3 on ARM

Postby magreenblatt » Tue Nov 18, 2014 6:27 pm

git checkout master

You're checking out the master revision of Chromium, which is probably wrong.

6. Download CEF source code
cd /path/to/chromium/src
git clone https://chromiumembedded@bitbucket.org/ ... k-cef3.git cef

7. Download chromiumembedded source code
cd /path/to/chromium/src
git clone https://github.com/kuscsik/chromiumembedded

You're checking out multiple copies of CEF, which is probably wrong.
magreenblatt
Site Admin
 
Posts: 10749
Joined: Fri May 29, 2009 6:57 pm

Re: Porting CEF3 on ARM

Postby cameral » Wed Nov 19, 2014 12:00 pm

Hi magreenblatt

Thanks for your correction.
I use "fetch --nohooks chromium --nosvn=True" to checkout the chromium source and the previous problem disappears.
Here is the new detailed steps

Code: Select all
1.   Fetch depot_tools:
$git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

2.   Add depot_tools to PATH Env:
$ export PATH=`pwd`/depot_tools:"$PATH"

3.   Get the code
$cd /path/to/chromium
$fetch --nohooks chromium --nosvn=True

4.   Configure GYP build
$export GYP_GENERATORS='ninja'
$export GYP_CROSSCOMPILE=1
$export GYP_DEFINES="target_arch=arm arm_float_abi=hard use_ash=1 use_aura=1 chromeos=0 use_ozone=1"

5.   Generating the build files
$./build/gyp_chromium

6.   Download chromiumembedded source code
$cd /path/to/chromium/src
$git clone https://github.com/kuscsik/chromiumembedded cef

7.   Get Chromium revision by viewing the CHROMIUM_BUILD_COMPATIBILITY.txt file in the CEF top-level directory(https://github.com/kuscsik/chromiumembedded)
# The Chromium Embedded Framework (CEF) project is built on top of the Chromium
# project source tree. Chromium should be updated to the URL and revision listed
# below before building CEF. Chromium compatibility information for older CEF
# revisions is available by viewing this file's change history.
#
# Instructions for building CEF are available at:
# https://code.google.com/p/chromiumembedded/wiki/BranchesAndBuilding
{
'chromium_url': 'http://src.chromium.org/svn/trunk/src',
'chromium_revision': '280796',
'chromium_checkout': 'e800fe7470fa87dc1ca5b148a7c2c41f603fdcbd',
}

8.   Update the Chromium to the required commit hash
$cd /path/to/chromium
$gclient sync --revision e800fe7470fa87dc1ca5b148a7c2c41f603fdcbd –jobs 8

9.   Setup an ARM build:
$cd src/cef
$ ./cef_create_projects.sh -I arm_ozone.gypi

10.   Build CEF
$cd /path/to/chromium/src
$ninja -C out/Debug cefclient cef_unittests


I got following error message when I tried to compile CEF during Step 10.

$cd /disk/chromium/cross_cef/src/cef
$ ./cef_create_projects.sh -I arm_ozone.gypi

Checking CEF and Chromium revisions...

________ running '/usr/bin/python tools/check_revision.py' in '/disk/chromium/cross_cef/src/cef'
Not an SVN checkout.

Generating CEF version header file...

________ running '/usr/bin/python tools/make_version_header.py --header include/cef_version.h --cef_version VERSION --chrome_version ../chrome/VERSION --cpp_header_dir include' in '/disk/chromium/cross_cef/src/cef'
File include/cef_version.h updated.

Patching build configuration and source files for CEF...

________ running '/usr/bin/python tools/patcher.py --patch-config patch/patch.cfg' in '/disk/chromium/cross_cef/src/cef'
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/gritsettings.patch
WARNING:root:successfully patched ../tools/gritsettings/resource_ids
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/build.patch
WARNING:root:successfully patched ../build/mac/strip_save_dsym
WARNING:root:successfully patched ../build/gyp_chromium
WARNING:root:successfully patched ../build/common.gypi
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/zlib.patch
WARNING:root:successfully patched ../third_party/zlib/contrib/minizip/unzip.c
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/message_loop_443.patch
WARNING:root:successfully patched ../base/message_loop/message_loop.cc
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/webkit_933.patch
WARNING:root:successfully patched ../third_party/WebKit/Source/web/WebNode.cpp
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/gyp_331.patch
WARNING:root:successfully patched ../tools/gyp/pylib/gyp/generator/ninja.py
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/webkit_popups.patch
WARNING:root:successfully patched ../third_party/WebKit/public/web/WebView.h
WARNING:root:successfully patched ../third_party/WebKit/Source/web/ChromeClientImpl.cpp
WARNING:root:successfully patched ../third_party/WebKit/Source/web/WebViewImpl.cpp
WARNING:root:successfully patched ../third_party/WebKit/Source/web/WebViewImpl.h
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/underlay_1051.patch
WARNING:root:successfully patched ../ui/base/cocoa/underlay_opengl_hosting_window.h
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/views_widget_180.patch
WARNING:root:successfully patched ../ui/views/widget/desktop_aura/desktop_screen_win.cc
WARNING:root:successfully patched ../ui/views/widget/desktop_aura/desktop_screen_x11.cc
WARNING:root:successfully patched ../ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
WARNING:root:successfully patched ../ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
WARNING:root:successfully patched ../ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
WARNING:root:successfully patched ../ui/views/widget/widget.cc
WARNING:root:successfully patched ../ui/views/widget/widget.h
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/content_nav_1129.patch
WARNING:root:successfully patched ../content/public/renderer/content_renderer_client.cc
WARNING:root:successfully patched ../content/public/renderer/content_renderer_client.h
WARNING:root:successfully patched ../content/renderer/render_frame_impl.cc
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/renderer_host_1161.patch
WARNING:root:successfully patched ../content/browser/renderer_host/compositing_iosurface_layer_mac.mm
WARNING:root:successfully patched ../content/browser/renderer_host/compositing_iosurface_mac.mm
WARNING:root:successfully patched ../content/browser/renderer_host/compositing_iosurface_shader_programs_mac.cc
WARNING:root:successfully patched ../content/browser/renderer_host/compositing_iosurface_shader_programs_mac.h
WARNING:root:successfully patched ../content/browser/renderer_host/render_widget_host_view_aura.cc
WARNING:root:successfully patched ../content/browser/renderer_host/render_widget_host_view_mac.mm
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/public_browser_1161_1257.patch
WARNING:root:successfully patched ../content/public/browser/content_browser_client.cc
WARNING:root:successfully patched ../content/public/browser/content_browser_client.h
WARNING:root:successfully patched ../content/public/browser/web_contents.cc
WARNING:root:successfully patched ../content/public/browser/web_contents.h
WARNING:root:successfully patched ../content/public/browser/web_contents_delegate.cc
WARNING:root:successfully patched ../content/public/browser/web_contents_delegate.h
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/browser_web_contents_1257.patch
WARNING:root:successfully patched ../content/browser/web_contents/web_contents_impl.cc
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/prefs_content_1161.patch
WARNING:root:successfully patched ../content/public/common/common_param_traits_macros.h
WARNING:root:successfully patched ../content/renderer/web_preferences.cc
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/prefs_webkit_1161.patch
WARNING:root:successfully patched ../webkit/common/webpreferences.cc
WARNING:root:successfully patched ../webkit/common/webpreferences.h
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/webkit_platform_mac_328814.patch
WARNING:root:successfully patched ../third_party/WebKit/Source/platform/mac/ThemeMac.mm
WARNING:root:successfully patched ../third_party/WebKit/Source/platform/mac/WebCoreNSCellExtras.h
Reading patch file /disk/chromium/cross_cef/src/cef/patch/patches/ui_dragdrop_355390.patch
WARNING:root:successfully patched ../ui/base/dragdrop/os_exchange_data_provider_aurax11.cc
Skipping patch file /disk/chromium/cross_cef/src/cef/patch/patches/spi_webcore_364.patch
Writing file /disk/chromium/cross_cef/src/cef/patch/patch_state.h.

Generating CEF project files...

________ running '/usr/bin/python ../build/gyp_chromium cef.gyp -I cef.gypi -I arm_ozone.gypi' in '/disk/chromium/cross_cef/src/cef'
Updating projects from gyp files...
Running build/landmines.py...
$
$cd /disk/chromium/cross_cef/src/
$ ninja -C out/Debug cefclient cef_unittests
ninja: Entering directory `out/Debug'
ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate snapshot_blob.bin. 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
ninja: error: '../../cef/tests/cefclient/cefclient_gtk.cpp', needed by 'obj/cef/tests/cefclient/cefclient.cefclient_gtk.o', missing and no known rule to make it


Could you help to check what the reason is of the new problem?

Thanks a lot!
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Re: Porting CEF3 on ARM

Postby magreenblatt » Wed Nov 19, 2014 12:08 pm

cameral wrote:ninja: error: '../../cef/tests/cefclient/cefclient_gtk.cpp', needed by 'obj/cef/tests/cefclient/cefclient.cefclient_gtk.o', missing and no known rule to make it

That file doesn't exist in https://github.com/kuscsik/chromiumembedded. I would guess they don't build the cefclient target.
magreenblatt
Site Admin
 
Posts: 10749
Joined: Fri May 29, 2009 6:57 pm

Re: Porting CEF3 on ARM

Postby cameral » Wed Nov 19, 2014 1:04 pm

Hi Magreenblatt,

What target I should build? I also tried to build chrome and got following error message.

ninja -C out/Debug chrome
ninja: Entering directory `out/Debug'
ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate snapshot_blob.bin. 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
ninja: error: unknown target 'chrome'

Thanks,
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Re: Porting CEF3 on ARM

Postby magreenblatt » Wed Nov 19, 2014 1:44 pm

cameral wrote:What target I should build?

Maybe just libcef. The owner of that Git repo likely has their own sample application that they're not currently sharing.
magreenblatt
Site Admin
 
Posts: 10749
Joined: Fri May 29, 2009 6:57 pm

Re: Porting CEF3 on ARM

Postby cameral » Wed Nov 19, 2014 2:20 pm

Hi Magreenblatt,

I still got error message even I only build libcef.

ninja -C out/Debug libcef
ninja: Entering directory `out/Debug'
ninja: warning: multiple rules generate icudtl.dat. builds involving this target will not be correct; continuing anyway
ninja: warning: multiple rules generate snapshot_blob.bin. 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
[11/10785] CC obj/third_party/libwebp/enc/libwebp_enc.analysis.o
FAILED: cc -MMD -MF obj/third_party/libwebp/enc/libwebp_enc.analysis.o.d -DV8_DEPRECATION_WARNINGS -DBLINK_SCALE_FILTERS_AT_RECORD_TIME -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_OZONE=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD_DATA_FROM_STATIC -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DUSE_NSS=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -D_GLIBCXX_DEBUG=1 -Igen -I../../third_party/libwebp -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-format -Wno-unused-result -march=armv7-a -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb --sysroot=/disk/chromium/cross_cef/src/arm-sysroot -O0 -g -funwind-tables -c ../../third_party/libwebp/enc/analysis.c -o obj/third_party/libwebp/enc/libwebp_enc.analysis.o
cc1: error: unrecognized command line option ‘-mfpu=neon’
cc1: error: unrecognized command line option ‘-mfloat-abi=hard’
cc1: error: unrecognized command line option ‘-mthumb’
../../third_party/libwebp/enc/analysis.c:1:0: error: bad value (generic-armv7-a) for -mtune= switch
../../third_party/libwebp/enc/analysis.c:1:0: error: bad value (armv7-a) for -march= switch
../../third_party/libwebp/enc/analysis.c:1:0: error: bad value (generic-armv7-a) for -mtune= switch
FAILED: cc -MMD -MF obj/third_party/libwebp/enc/libwebp_enc.alpha.o.d -DV8_DEPRECATION_WARNINGS -DBLINK_SCALE_FILTERS_AT_RECORD_TIME -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_OZONE=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD_DATA_FROM_STATIC -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DUSE_NSS=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -D_GLIBCXX_DEBUG=1 -Igen -I../../third_party/libwebp -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-format -Wno-unused-result -march=armv7-a -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb --sysroot=/disk/chromium/cross_cef/src/arm-sysroot -O0 -g -funwind-tables -c ../../third_party/libwebp/enc/alpha.c -o obj/third_party/libwebp/enc/libwebp_enc.alpha.o
cc1: error: unrecognized command line option ‘-mfpu=neon’
cc1: error: unrecognized command line option ‘-mfloat-abi=hard’
cc1: error: unrecognized command line option ‘-mthumb’
../../third_party/libwebp/enc/alpha.c:1:0: error: bad value (generic-armv7-a) for -mtune= switch
../../third_party/libwebp/enc/alpha.c:1:0: error: bad value (armv7-a) for -march= switch
../../third_party/libwebp/enc/alpha.c:1:0: error: bad value (generic-armv7-a) for -mtune= switch
[11/10785] ACTION build_elements_module: build_elements_module_c1fba909835a634d100ee508508f757e
ninja: build stopped: subcommand failed.

Do you have some idea?

Thanks a lot!
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Re: Porting CEF3 on ARM

Postby cameral » Thu Nov 20, 2014 5:20 pm

The problem is solved by following steps:
1. export gcc compiler
export CC=arm-linux-gnueabihf-gcc
export CXX=arm-linux-gnueabihf-g++
2. update project file.
./cef_create_projects.sh -I arm_ozone.gypi

still don't know why arm compiler can't be set automatically.
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Re: Porting CEF3 on ARM

Postby cameral » Thu Nov 20, 2014 6:40 pm

Finally I got following error log:

../../ui/ozone/platform/dri/dri_console_buffer.cc:8:25: fatal error: xf86drmMode.h: No such file or directory
#include <xf86drmMode.h>
Is libdrm necessary for cef build on ARM?
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Re: Porting CEF3 on ARM

Postby cameral » Fri Nov 21, 2014 6:10 pm

Setting ozone_platform_dri=0 in arm_ozone.gypi solved the problem.
cameral
Newbie
 
Posts: 9
Joined: Fri Oct 17, 2014 9:25 am

Next

Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 5 guests