Closed guazi111 closed 1 year ago
When I try to build cef via docker ,there is the message:
using /tmp/goma_appuser as tmpdir
INFO: creating cache dir (/tmp/goma_appuser/goma_cache).
Traceback (most recent call last):
File "/home/appuser/build/depot_tools/.cipd_bin/goma_ctl.py", line 2371, in
Yes, Browservice needs a patched CEF (to support clipboard properly); the standard CEF is missing the cef_chromiumBrowserviceClipboard*
functions and thus trying to compile Browservice with it fails with the errors you are seeing.
Currently, the only supported way to build a patched version of CEF is using tools/build_patched_cef.py
. It has not been written with unstable network in mind, and building with unstable network connection probably isn't a common use case. How does it fail if you try to build with it (show the complete console output)? Depending on where it fails, it may be possible to make it more robust. (Another way would be to read the script and manually emulate it, retrying steps as required.)
In your second message, you seem to be missing some dependencies (such as pgrep
). How exactly are you building CEF in that case (what commands do you use)? Are you following the instructions in master/BUILD.md, using the image built from the correct Dockerfile?
I upgraded memory to 28g and change the proxy, it worked now.
thank you.
It seems need more memory than 16g to build the patched cef via docker or build_patched_cef.py
My network is unstable to run docker or tools/build_patched_cef.py to build the cef.
At last I built a cef distribution by following the instructions step by step.
But there was a error when I compiling Browservice:
/usr/bin/ld: release/obj/src/clipboard.o: in function
browservice::copyToClipboard(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': clipboard.cpp:(.text._ZN11browservice15copyToClipboardENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x8): undefined reference to
cef_chromiumBrowserviceClipboardCopy' /usr/bin/ld: release/obj/src/clipboard.o: in functionbrowservice::pasteFromClipboard[abi:cxx11]()': clipboard.cpp:(.text._ZN11browservice18pasteFromClipboardB5cxx11Ev+0x22): undefined reference to
cef_chromiumBrowserviceClipboardPaste' /usr/bin/ld: clipboard.cpp:(.text._ZN11browservice18pasteFromClipboardB5cxx11Ev+0x70): undefined reference to `cef_chromiumBrowserviceClipboardFreePasteResult' collect2: error: ld returned 1 exit status make: *** [Makefile:39: release/bin/browservice] Error 1It seems my cef file without the clipboard patches.
How to build a patched cef distribution manually ?
Thank you.