Build errors during customization

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.

Build errors during customization

Postby nkanand » Thu Feb 11, 2021 8:43 pm

We are using CEF 4147. We have added a couple of customizations in CEF that calls into blink.
During build on windows, i see the below errors. What do I need to change in Build.gn to resolve the dependencies.

C:\code\chromium_git\chromium\src>ninja -C out\Release_GN_x64 cefsimple
ninja: Entering directory `out\Release_GN_x64'
[1/1] Regenerating ninja files
[2/3] LINK(DLL) libcef.dll libcef.dll.lib libcef.dll.pdb
FAILED: libcef.dll libcef.dll.lib libcef.dll.pdb
ninja -t msvc -e environment.x64 -- ..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /nologo "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\ATLMFC\lib\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\lib\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" /IMPLIB:./libcef.dll.lib /DLL /OUT:./libcef.dll /PDB:./libcef.dll.pdb @./libcef.dll.rsp
lld-link: error: undefined symbol: class content::ContentClient * __cdecl content::GetContentClient(void)
>>> referenced by .\..\..\cef\libcef\renderer\vrm\web_extended_static_client_impl.cc:59
>>> libcef_static.lib(web_extended_static_client_impl.obj):(public: virtual bool __cdecl WebExtendedStaticClientImpl::IsInsertInputAllowed(void))

lld-link: error: undefined symbol: private: static unsigned int blink::UpdateStyleForbiddenScope::s_update_style_forbidden_scope_count
>>> referenced by .\..\..\cef\libcef\renderer\blink_helper.cc:133
>>> libcef_static.lib(blink_helper.obj):(private: static bool __cdecl BlinkHelper::GetOverlayingElementsById(class blink::WebFrame *, class blink::WebString const &, class std::__1::vector<class blink::Element *, class std::__1::allocator<class blink::Element *>> *))
>>> referenced by .\..\..\cef\libcef\renderer\blink_helper.cc:169
>>> libcef_static.lib(blink_helper.obj):(private: static bool __cdecl BlinkHelper::GetOverlayingElementsById(class blink::WebFrame *, class blink::WebString const &, class std::__1::vector<class blink::Element *, class std::__1::allocator<class blink::Element *>> *))
>>> referenced by .\..\..\cef\libcef\renderer\blink_helper.cc:172
>>> libcef_static.lib(blink_helper.obj):(public: static struct blink::WebRect __cdecl BlinkHelper::GetElementPositionFromViewPortById(class blink::WebFrame *, class blink::WebString const &, bool))
>>> referenced 25 more times

lld-link: error: undefined symbol: bool __cdecl blink::IsMenuList(class blink::LayoutObject const *)
>>> referenced by .\..\..\cef\libcef\renderer\vrm\dom_mutation_handler.cc:52
>>> libcef_static.lib(dom_mutation_handler.obj):(public: void __cdecl DomMutationHandler::OnMutationRecord(class blink::Node &))
>>> referenced by .\..\..\cef\libcef\renderer\vrm\layout_element_translator.cc:69
>>> libcef_static.lib(layout_element_translator.obj):(public: void __cdecl LayoutElementTranslator::Translate(class std::__1::shared_ptr<class ILayoutNode> const &))

lld-link: error: undefined symbol: public: void __cdecl blink::ComputedStyle::SetColor(class blink::Color const &)
>>> referenced by .\..\..\cef\libcef\renderer\vrm\drawn_elements_overlapping_elements_hider.cc:124
>>> libcef_static.lib(drawn_elements_overlapping_elements_hider.obj):(private: void __cdecl DrawnElementsOverlappingElementsHider::SelectiveShow(class std::__1::shared_ptr<class ILayoutNode const> const &, bool))

lld-link: error: undefined symbol: public: class WTF::String __cdecl blink::StyleRuleKeyframe::KeyText(void) const
>>> referenced by .\..\..\cef\libcef\renderer\vrm\layout_css_animation_translator.cc:45
>>> libcef_static.lib(layout_css_animation_translator.obj):(public: class std::__1::shared_ptr<class ILayoutCSSAnimation> __cdecl LayoutCSSAnimationsTranslator::TranslateAnimation(class blink::StyleRuleKeyframes const *, class blink::Document const &))

lld-link: error: undefined symbol: public: static void __cdecl blink::MarkupFormatter::AppendDocumentType(class WTF::StringBuilder &, class blink::DocumentType const &)
>>> referenced by .\..\..\cef\libcef\renderer\vrm\layout_node_view_translator.cc:70
>>> libcef_static.lib(layout_node_view_translator.obj):(private: class std::__1::shared_ptr<class ILayoutDoctype const> __cdecl LayoutNodeViewTranslator::TranslateDocumentType(class blink::LayoutObject const &))
ninja: build stopped: subcommand failed.
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm

Return to Support Forum

Who is online

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