CEF branch 4472 build for mac arm64 fails

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.

CEF branch 4472 build for mac arm64 fails

Postby charlieq » Thu Jul 08, 2021 5:40 pm

Hi there.

I have been trying to make CEF build on macOS Big Sur (mac mini M1 2020, RAM: 8GB). Xcode 12.5 is installed on the machine.

I tried almost 10 times. but always failed. Could you please help?

Log is as following:
[3229/80399] python ../../cef/tools/compile_ib_files.py --input ../../cef/tests/cefclient/resources/mac/English.lproj/MainMenu.xib --output gen/cef/cefclient_xibs_compile_ibtool/MainMenu.nib --minimum-deployment-target 10.11.0
FAILED: gen/cef/cefclient_xibs_compile_ibtool/MainMenu.nib
python ../../cef/tools/compile_ib_files.py --input ../../cef/tests/cefclient/resources/mac/English.lproj/MainMenu.xib --output gen/cef/cefclient_xibs_compile_ibtool/MainMenu.nib --minimum-deployment-target 10.11.0
Traceback (most recent call last):
File "../../cef/tools/compile_ib_files.py", line 56, in <module>
sys.exit(main())
File "../../cef/tools/compile_ib_files.py", line 45, in main
if ibtool_section_re.match(line):
TypeError: cannot use a string pattern on a bytes-like object
charlieq
Techie
 
Posts: 40
Joined: Mon Mar 20, 2017 9:50 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby magreenblatt » Thu Jul 08, 2021 5:55 pm

Building on M1 Mac is not yet tested/supported with CEF. You should instead cross-compile from an Intel Mac. See https://bitbucket.org/chromiumembedded/ ... t-on-arm64
magreenblatt
Site Admin
 
Posts: 11083
Joined: Fri May 29, 2009 6:57 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby magreenblatt » Thu Jul 08, 2021 5:59 pm

There might also be a problem with your python version. See https://magpcss.org/ceforum/viewtopic.php?f=6&t=18294
magreenblatt
Site Admin
 
Posts: 11083
Joined: Fri May 29, 2009 6:57 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby charlieq » Thu Jul 08, 2021 6:08 pm

magreenblatt wrote:There might also be a problem with your python version. See viewtopic.php?f=6&t=18294


Marshall, Thanks lot for your quick response!

What python version is required to make an arm64 build? python2 or python3? I am using 3.7.9 on the machine.
charlieq
Techie
 
Posts: 40
Joined: Mon Mar 20, 2017 9:50 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby charlieq » Mon Jul 12, 2021 3:49 pm

magreenblatt wrote:There might also be a problem with your python version. See viewtopic.php?f=6&t=18294


Tried dozens of times. It broke at different places every time.

[3354/80399] python ../../third_party/node/node.py ../../third_party/devtools-frontend/src/scripts/build/ninja/copy-files.js /Users/casinoqa/projects/cef-4472/chromium/src/third_party/devtools-frontend/src/front_end/cm /Users/casinoqa/projects/cef-4472/chromium/src/out/Debug_GN_arm64/gen/third_party/devtools-frontend/src/front_end/cm codemirror.css
FAILED: gen/third_party/devtools-frontend/src/front_end/cm/codemirror.css
python ../../third_party/node/node.py ../../third_party/devtools-frontend/src/scripts/build/ninja/copy-files.js /Users/casinoqa/projects/cef-4472/chromium/src/third_party/devtools-frontend/src/front_end/cm /Users/casinoqa/projects/cef-4472/chromium/src/out/Debug_GN_arm64/gen/third_party/devtools-frontend/src/front_end/cm codemirror.css
Traceback (most recent call last):
File "../../third_party/node/node.py", line 42, in <module>
RunNode(sys.argv[1:])
File "../../third_party/node/node.py", line 30, in RunNode
cmd, cwd=os.getcwd(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[3355/80399] python ../../third_party/node/node.py ../../third_party/devtools-frontend/src/scripts/build/ninja/copy-files.js /Users/casinoqa/projects/cef-4472/chromium/src/third_party/devtools-frontend/src/front_end/Images /Users/casinoqa/projects/cef-4472/chromium/src/out/Debug_GN_arm64/gen/third_party/devtools-frontend/src/front_end/Images accelerometer-back.svg,accelerometer-bottom.png,accelerometer-front.svg,accelerometer-left.png,accelerometer-right.png,accelerometer-top.png,lighthouse_logo.svg,checkboxCheckmark.svg,checker.png,chevrons.svg,chromeDisabledSelect_2x.png,chromeDisabledSelect.png,chromeLeft.avif,chromeMiddle.avif,chromeRight.avif,chromeSelect.svg,chromeSelectDark.svg,cssoverview_icons_2x.avif,dropdown_7x6_icon.svg,elements_panel_icon.svg,errorWave.svg,error_icon.svg,ic_delete_list.svg,ic_delete_filter.svg,flex-direction-icon.svg,flex-align-content-center-icon.svg,flex-align-content-start-icon.svg,flex-align-content-end-icon.svg,flex-align-content-space-around-icon.svg,flex-align-content-space-between-icon.svg,flex-align-content-space-evenly-icon.svg,flex-align-content-stretch-icon.svg,flex-justify-content-center-icon.svg,flex-wrap-icon.svg,flex-nowrap-icon.svg,flex-justify-content-flex-end-icon.svg,flex-justify-content-flex-start-icon.svg,flex-justify-content-space-around-icon.svg,flex-justify-content-space-between-icon.svg,flex-justify-content-space-evenly-icon.svg,flex-align-items-flex-start-icon.svg,flex-align-items-flex-end-icon.svg,flex-align-items-stretch-icon.svg,flex-align-items-center-icon.svg,flex-align-self-center-icon.svg,flex-align-self-flex-end-icon.svg,flex-align-self-flex-start-icon.svg,flex-align-self-stretch-icon.svg,baseline-icon.svg,network_conditions_icon.svg,ic_checkmark_16x16.svg,ic_info_black_18dp.svg,ic_memory_16x16.svg,ic_page_next_16x16_icon.svg,ic_page_prev_16x16_icon.svg,ic_redo_16x16_icon.svg,ic_show_node_16x16.svg,ic_suggest_color.svg,ic_undo_16x16_icon.svg,ic_warning_black_18dp.svg,issue-cross-icon.svg,issue-exclamation-icon.svg,issue-text-icon.svg,largeIcons.svg,link_icon.svg,mediumIcons.svg,navigationControls_2x.png,navigationControls.png,network_panel_icon.svg,nodeIcon.avif,node_search_icon.svg,popoverArrows.png,profileGroupIcon.png,profileIcon.png,profileSmallIcon.png,radioDot-dark-theme.png,radioDot.png,refresh_12x12_icon.svg,resizeDiagonal.svg,resizeHorizontal.svg,resizeVertical.svg,resourceCSSIcon.png,resourceDocumentIcon.png,resourceDocumentIconSmall.png,resourceJSIcon.png,resourcePlainIcon.png,resourcePlainIconSmall.png,resourcesTimeGraphIcon.avif,searchNext.png,searchPrev.png,securityIcons.svg,settings_14x14_icon.svg,smallIcons.svg,sources_panel_icon.svg,speech.png,switcherIcon.svg,toolbarResizerVertical.png,touchCursor_2x.png,touchCursor.png,trash_bin_icon.svg,treeoutlineTriangles.svg,warning_icon.svg,whatsnew.avif,feedback_thin_16x16_icon.svg
FAILED: gen/third_party/devtools-frontend/src/front_end/Images/accelerometer-back.svg gen/third_party/devtools-frontend/src/front_end/Images/accelerometer-bottom.png gen/third_party/devtools-frontend/src/front_end/Images/accelerometer-front.svg gen/third_party/devtools-frontend/src/front_end/Images/accelerometer-left.png gen/third_party/devtools-frontend/src/front_end/Images/accelerometer-right.png gen/third_party/devtools-frontend/src/front_end/Images/accelerometer-top.png gen/third_party/devtools-frontend/src/front_end/Images/lighthouse_logo.svg gen/third_party/devtools-frontend/src/front_end/Images/checkboxCheckmark.svg gen/third_party/devtools-frontend/src/front_end/Images/checker.png gen/third_party/devtools-frontend/src/front_end/Images/chevrons.svg gen/third_party/devtools-frontend/src/front_end/Images/chromeDisabledSelect_2x.png gen/third_party/devtools-frontend/src/front_end/Images/chromeDisabledSelect.png gen/third_party/devtools-frontend/src/front_end/Images/chromeLeft.avif gen/third_party/devtools-frontend/src/front_end/Images/chromeMiddle.avif gen/third_party/devtools-frontend/src/front_end/Images/chromeRight.avif gen/third_party/devtools-frontend/src/front_end/Images/chromeSelect.svg gen/third_party/devtools-frontend/src/front_end/Images/chromeSelectDark.svg gen/third_party/devtools-frontend/src/front_end/Images/cssoverview_icons_2x.avif gen/third_party/devtools-frontend/src/front_end/Images/dropdown_7x6_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/elements_panel_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/errorWave.svg gen/third_party/devtools-frontend/src/front_end/Images/error_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_delete_list.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_delete_filter.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-direction-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-center-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-start-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-end-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-space-around-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-space-between-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-space-evenly-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-content-stretch-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-justify-content-center-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-wrap-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-nowrap-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-justify-content-flex-end-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-justify-content-flex-start-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-justify-content-space-around-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-justify-content-space-between-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-justify-content-space-evenly-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-items-flex-start-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-items-flex-end-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-items-stretch-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-items-center-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-self-center-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-self-flex-end-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-self-flex-start-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/flex-align-self-stretch-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/baseline-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/network_conditions_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_checkmark_16x16.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_info_black_18dp.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_memory_16x16.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_page_next_16x16_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_page_prev_16x16_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_redo_16x16_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_show_node_16x16.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_suggest_color.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_undo_16x16_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/ic_warning_black_18dp.svg gen/third_party/devtools-frontend/src/front_end/Images/issue-cross-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/issue-exclamation-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/issue-text-icon.svg gen/third_party/devtools-frontend/src/front_end/Images/largeIcons.svg gen/third_party/devtools-frontend/src/front_end/Images/link_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/mediumIcons.svg gen/third_party/devtools-frontend/src/front_end/Images/navigationControls_2x.png gen/third_party/devtools-frontend/src/front_end/Images/navigationControls.png gen/third_party/devtools-frontend/src/front_end/Images/network_panel_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/nodeIcon.avif gen/third_party/devtools-frontend/src/front_end/Images/node_search_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/popoverArrows.png gen/third_party/devtools-frontend/src/front_end/Images/profileGroupIcon.png gen/third_party/devtools-frontend/src/front_end/Images/profileIcon.png gen/third_party/devtools-frontend/src/front_end/Images/profileSmallIcon.png gen/third_party/devtools-frontend/src/front_end/Images/radioDot-dark-theme.png gen/third_party/devtools-frontend/src/front_end/Images/radioDot.png gen/third_party/devtools-frontend/src/front_end/Images/refresh_12x12_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/resizeDiagonal.svg gen/third_party/devtools-frontend/src/front_end/Images/resizeHorizontal.svg gen/third_party/devtools-frontend/src/front_end/Images/resizeVertical.svg gen/third_party/devtools-frontend/src/front_end/Images/resourceCSSIcon.png gen/third_party/devtools-frontend/src/front_end/Images/resourceDocumentIcon.png gen/third_party/devtools-frontend/src/front_end/Images/resourceDocumentIconSmall.png gen/third_party/devtools-frontend/src/front_end/Images/resourceJSIcon.png gen/third_party/devtools-frontend/src/front_end/Images/resourcePlainIcon.png gen/third_party/devtools-frontend/src/front_end/Images/resourcePlainIconSmall.png gen/third_party/devtools-frontend/src/front_end/Images/resourcesTimeGraphIcon.avif gen/third_party/devtools-frontend/src/front_end/Images/searchNext.png gen/third_party/devtools-frontend/src/front_end/Images/searchPrev.png gen/third_party/devtools-frontend/src/front_end/Images/securityIcons.svg gen/third_party/devtools-frontend/src/front_end/Images/settings_14x14_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/smallIcons.svg gen/third_party/devtools-frontend/src/front_end/Images/sources_panel_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/speech.png gen/third_party/devtools-frontend/src/front_end/Images/switcherIcon.svg gen/third_party/devtools-frontend/src/front_end/Images/toolbarResizerVertical.png gen/third_party/devtools-frontend/src/front_end/Images/touchCursor_2x.png gen/third_party/devtools-frontend/src/front_end/Images/touchCursor.png gen/third_party/devtools-frontend/src/front_end/Images/trash_bin_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/treeoutlineTriangles.svg gen/third_party/devtools-frontend/src/front_end/Images/warning_icon.svg gen/third_party/devtools-frontend/src/front_end/Images/whatsnew.avif gen/third_party/devtools-frontend/src/front_end/Images/feedback_thin_16x16_icon.svg
python ../../third_party/node/node.py ../../third_party/devtools-frontend/src/scripts/build/ninja/copy-files.js /Users/casinoqa/projects/cef-4472/chromium/src/third_party/devtools-frontend/src/front_end/Images /Users/casinoqa/projects/cef-4472/chromium/src/out/Debug_GN_arm64/gen/third_party/devtools-frontend/src/front_end/Images accelerometer-back.svg,accelerometer-bottom.png,accelerometer-front.svg,accelerometer-left.png,accelerometer-right.png,accelerometer-top.png,lighthouse_logo.svg,checkboxCheckmark.svg,checker.png,chevrons.svg,chromeDisabledSelect_2x.png,chromeDisabledSelect.png,chromeLeft.avif,chromeMiddle.avif,chromeRight.avif,chromeSelect.svg,chromeSelectDark.svg,cssoverview_icons_2x.avif,dropdown_7x6_icon.svg,elements_panel_icon.svg,errorWave.svg,error_icon.svg,ic_delete_list.svg,ic_delete_filter.svg,flex-direction-icon.svg,flex-align-content-center-icon.svg,flex-align-content-start-icon.svg,flex-align-content-end-icon.svg,flex-align-content-space-around-icon.svg,flex-align-content-space-between-icon.svg,flex-align-content-space-evenly-icon.svg,flex-align-content-stretch-icon.svg,flex-justify-content-center-icon.svg,flex-wrap-icon.svg,flex-nowrap-icon.svg,flex-justify-content-flex-end-icon.svg,flex-justify-content-flex-start-icon.svg,flex-justify-content-space-around-icon.svg,flex-justify-content-space-between-icon.svg,flex-justify-content-space-evenly-icon.svg,flex-align-items-flex-start-icon.svg,flex-align-items-flex-end-icon.svg,flex-align-items-stretch-icon.svg,flex-align-items-center-icon.svg,flex-align-self-center-icon.svg,flex-align-self-flex-end-icon.svg,flex-align-self-flex-start-icon.svg,flex-align-self-stretch-icon.svg,baseline-icon.svg,network_conditions_icon.svg,ic_checkmark_16x16.svg,ic_info_black_18dp.svg,ic_memory_16x16.svg,ic_page_next_16x16_icon.svg,ic_page_prev_16x16_icon.svg,ic_redo_16x16_icon.svg,ic_show_node_16x16.svg,ic_suggest_color.svg,ic_undo_16x16_icon.svg,ic_warning_black_18dp.svg,issue-cross-icon.svg,issue-exclamation-icon.svg,issue-text-icon.svg,largeIcons.svg,link_icon.svg,mediumIcons.svg,navigationControls_2x.png,navigationControls.png,network_panel_icon.svg,nodeIcon.avif,node_search_icon.svg,popoverArrows.png,profileGroupIcon.png,profileIcon.png,profileSmallIcon.png,radioDot-dark-theme.png,radioDot.png,refresh_12x12_icon.svg,resizeDiagonal.svg,resizeHorizontal.svg,resizeVertical.svg,resourceCSSIcon.png,resourceDocumentIcon.png,resourceDocumentIconSmall.png,resourceJSIcon.png,resourcePlainIcon.png,resourcePlainIconSmall.png,resourcesTimeGraphIcon.avif,searchNext.png,searchPrev.png,securityIcons.svg,settings_14x14_icon.svg,smallIcons.svg,sources_panel_icon.svg,speech.png,switcherIcon.svg,toolbarResizerVertical.png,touchCursor_2x.png,touchCursor.png,trash_bin_icon.svg,treeoutlineTriangles.svg,warning_icon.svg,whatsnew.avif,feedback_thin_16x16_icon.svg
Traceback (most recent call last):
File "../../third_party/node/node.py", line 42, in <module>
RunNode(sys.argv[1:])
File "../../third_party/node/node.py", line 30, in RunNode
cmd, cwd=os.getcwd(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
charlieq
Techie
 
Posts: 40
Joined: Mon Mar 20, 2017 9:50 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby magreenblatt » Mon Jul 12, 2021 5:32 pm

What version is the “python” command? Check that you don’t have multiple python installs in your PATH.
magreenblatt
Site Admin
 
Posts: 11083
Joined: Fri May 29, 2009 6:57 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby charlieq » Mon Jul 26, 2021 4:21 pm

magreenblatt wrote:What version is the “python” command? Check that you don’t have multiple python installs in your PATH.


Thanks. I made a successful arm64 build. I have another question? how to make a universal build to support both x64 & arm64? can I pass both --x64-build and --arm64-build options to automate-git.py?
charlieq
Techie
 
Posts: 40
Joined: Mon Mar 20, 2017 9:50 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby magreenblatt » Mon Jul 26, 2021 5:45 pm

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

Re: CEF branch 4472 build for mac arm64 fails

Postby charlieq » Tue Jul 27, 2021 12:53 pm



So there is no universal CEF package. Two CEF packages have to be shipped with an application: one for arm64, another for x86_64?
charlieq
Techie
 
Posts: 40
Joined: Mon Mar 20, 2017 9:50 pm

Re: CEF branch 4472 build for mac arm64 fails

Postby magreenblatt » Tue Jul 27, 2021 2:49 pm

Did you read the link? It mentions a script for creating a universal package.
magreenblatt
Site Admin
 
Posts: 11083
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 7 guests