cefclient build fails (CEF 94.2.2)

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.

cefclient build fails (CEF 94.2.2)

Postby naoki5 » Tue Sep 21, 2021 12:59 am

I downloaded binary distribution (cef_binary_94.2.2+g0c2cc26+chromium-94.0.4606.50_windows32_beta.tar.bz2) and built it with VS 2019.
The cefclient build fails.
There seems to be a problem with the switch statement.
Code: Select all
>E:\projects\cef_binary\tests\cefclient\browser\views_overlay_controls.cc(32): error C2220: 次の警告はエラーとして処理されます
>E:\projects\cef_binary\tests\cefclient\browser\views_overlay_controls.cc(32): warning C4715: 'client::`anonymous namespace'::GetLabel': 値を返さないコントロール パスがあります。
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient build fails (CEF 94.2.2)

Postby magreenblatt » Tue Sep 21, 2021 4:35 am

Thanks, I'll fix this shortly.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient build fails (CEF 94.2.2)

Postby magreenblatt » Tue Sep 21, 2021 4:44 am

Here's the fix, if you want to apply it locally:
Code: Select all
diff --git tests/cefclient/browser/views_overlay_controls.cc tests/cefclient/browser/views_overlay_controls.cc
index 0945a791c..9421bb415 100644
--- tests/cefclient/browser/views_overlay_controls.cc
+++ tests/cefclient/browser/views_overlay_controls.cc
@@ -29,6 +29,8 @@ std::string GetLabel(ViewsOverlayControls::Command command, bool maximized) {
     case ViewsOverlayControls::Command::kClose:
       return "X";
   }
+  NOTREACHED();
+  return std::string();
 }

 }  // namespace
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient build fails (CEF 94.2.2)

Postby naoki5 » Tue Sep 21, 2021 5:01 am

I have successfully built cefclient and was able to launch it.
Thanks.
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient build fails (CEF 94.2.2)

Postby magreenblatt » Tue Sep 21, 2021 5:30 am

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


Return to Support Forum

Who is online

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