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