Linker error while building CEF

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.

Linker error while building CEF

Postby rachisa123 » Fri Sep 18, 2020 8:31 am

Hi,

I am building CEF version 4183 using the standard instructions in the page below in Ubuntu 16.04
https://bitbucket.org/chromiumembedded/ ... ckStart.md

In between I got an error related to DRM
use of undeclared identifier 'DRM_FORMAT_INVALID'


which was resolved when I added
use_system_libdrm=false
use_system_minigbm=false


based on this https://github.com/ungoogled-software/ungoogled-chromium-portablelinux/commit/fffb0b57ee967b6ee467a827259a1faf92ef520d

After proceeding fine till the end, I am getting the following linker error
Code: Select all
ninja: Entering directory `out/Debug_GN_x64'
[1/5] SOLINK ./libcef.so
FAILED: libcef.so libcef.so.TOC
python "../../build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm" --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libcef.so" -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--color-diagnostics -m64 -Werror -Wl,--gdb-index -rdynamic -nostdlib++ -Wl,-rpath=\$ORIGIN -o "./libcef.so" @"./libcef.so.rsp"
ld.lld: error: undefined symbol: apps::UninstallDialog::OnDialogClosed(bool, bool, bool)
>>> referenced by app_uninstall_dialog_view.cc:334 (../../chrome/browser/ui/views/apps/app_dialog/app_uninstall_dialog_view.cc:334)
>>>               ui/app_uninstall_dialog_view.o:(AppUninstallDialogView::OnDialogCancelled()) in archive obj/chrome/browser/ui/libui.a
>>> referenced by app_uninstall_dialog_view.cc:344 (../../chrome/browser/ui/views/apps/app_dialog/app_uninstall_dialog_view.cc:344)
>>>               ui/app_uninstall_dialog_view.o:(AppUninstallDialogView::OnDialogAccepted()) in archive obj/chrome/browser/ui/libui.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


I can see that the definition is present
grep -ir UninstallDialog::OnDialogClosed gives
Code: Select all
chrome/browser/apps/app_service/uninstall_dialog.cc:void UninstallDialog::OnDialogClosed


Please help.
rachisa123
Newbie
 
Posts: 1
Joined: Fri Sep 18, 2020 7:42 am

Re: Linker error while building CEF

Postby magreenblatt » Fri Sep 18, 2020 9:34 am

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


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 31 guests