C++ build error since version 94.4.2+g6a963ca+chromium-94.0.

Having problems with building or using the JCEF Java binding? Ask your questions here.

C++ build error since version 94.4.2+g6a963ca+chromium-94.0.

Postby lbossens » Mon Dec 13, 2021 11:02 am

I followed the instructions here: https://bitbucket.org/chromiumembedded/ ... ndBuilding

I tried both Visual Studio 2015 and 2017 on Win64 (Windows 10), and I have the same problem.

I can build the solution if I checkout the commit :
f5a19bc4 Rene Schneider <slartie@posteo.de> on 24/08/2021 at 17:53

But since the commit 23a6e961 Rene Schneider <slartie@posteo.de> on 05/10/2021 at 14:01, I have the following error:

Code: Select all
2>libcef_dll_wrapper2.cc
2>C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\include/base/internal/cef_bind_internal.h(1250): error C2440: 'initializing': cannot convert from 'R (__cdecl *)(base::internal::BindStateBase *,conditional<_Test,const std::string&,const std::string&>::type)' to 'PolymorphicInvoke'
2>        with
2>        [
2>            R=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
2>        ] (compiling source file C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\libcef_dll\wrapper\cef_resource_manager.cc)
2>C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\include/base/internal/cef_bind_internal.h(1250): note: This conversion requires a reinterpret_cast, a C-style cast or function-style cast (compiling source file C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\libcef_dll\wrapper\cef_resource_manager.cc)
2>C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\include/base/cef_bind.h(123): note: see reference to function template instantiation 'decltype(auto) base::internal::BindImpl<base::RepeatingCallback,std::string(__cdecl &)(const std::string &),>(Functor)' being compiled
2>        with
2>        [
2>            Functor=std::string (__cdecl &)(const std::string &)
2>        ] (compiling source file C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\libcef_dll\wrapper\cef_resource_manager.cc)
2>C:\Users\lboss\dev\projects\java-cef2\third_party\cef\cef_binary_95.7.14+g9f72f35+chromium-95.0.4638.69_windows64\libcef_dll\wrapper\cef_resource_manager.cc(424): note: see reference to function template instantiation 'base::RepeatingCallback<std::string (const std::string &)> base::BindRepeating<std::string(__cdecl &)(const std::string &),>(Functor)' being compiled
2>        with
2>        [
2>            Functor=std::string (__cdecl &)(const std::string &)
2>        ]
2>Done building project "libcef_dll_wrapper.vcxproj" -- FAILED.


Can someone fix this ?
No idea whether its problem in the code or in the build instruction (we maybe need another compiler version - I tried VS 2015 and 2017 but not above).

Thank you,

Laurent
lbossens
Newbie
 
Posts: 5
Joined: Fri Dec 03, 2021 3:10 am

Re: C++ build error since version 94.4.2+g6a963ca+chromium-9

Postby magreenblatt » Mon Dec 13, 2021 12:35 pm

You need to build with VS2019. I'll update the BranchesAndBuilding Wiki page.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 31 guests

cron