Error in building libcef_dll_wrapper project

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.

Error in building libcef_dll_wrapper project

Postby chayal » Sun Apr 02, 2023 11:50 am

Hi,
I am trying to import CEF3 for my x64 bit product.I followed the following steps:
1. Downloaded the build "cef_binary_111.2.7+gebf5d6a+chromium-111.0.5563.148_windows64.tar.bz2" available at https://cef-builds.spotifycdn.com/index.html
2. Ensured that I have cmake, python and visual studio 2019 to generate libcef_dll_wrapper project.
3. Unzip the cef binary tar file and used command "cmake -G "Visual Studio 16" -A x64 " as mentioned on help page https://github.com/chromiumembedded/cef-project
4. I was able to generate cef.sln and opened it in VS2019 and tried to build it.
On building I am getting following error:

"Severity Code Description Project File Line Suppression State
Error C2061 syntax error: identifier 'FILE_INFO_BY_HANDLE_CLASS' (compiling source file C:\Repo\Designer\cef_upgrade\cef_2\cef\libcef_dll\base\cef_lock_impl.cc) libcef_dll_wrapper C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\fileapi.h 1105 "
Severity Code Description Project File Line Suppression State

"Error C2061 syntax error: identifier 'FILE_INFO_BY_HANDLE_CLASS' (compiling source file C:\Repo\Designer\cef_upgrade\cef_2\cef\libcef_dll\base\cef_lock.cc) libcef_dll_wrapper C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\fileapi.h 1105 "

There are similar errors.
Can you please help me what am I doing wrong? Is it anything related to visual studio version.
I have attached the screenshots of Visual studio version details and the errors reported.

Thanks for the help in advance.
Attachments
vs.png
vs.png (27.45 KiB) Viewed 2578 times
errors.png
errors.png (248.43 KiB) Viewed 2578 times
chayal
Techie
 
Posts: 25
Joined: Sat Oct 02, 2021 4:50 pm

Return to Support Forum

Who is online

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