Building libcef_dll_wrapper

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.

Building libcef_dll_wrapper

Postby oglo » Fri Jun 11, 2021 8:05 am

Hi. I'm new to cef and I have a problem building libcef_dll_wrapper. I have a legacy project that uses cef, but this project configured only for release mode and I'm trying to add debug mode. So, I have downloaded the latest cef distribution and built it as explained in tutorial. Next, I've added new subproject for cef wrapper into existing solution (for MSVC2017) and copied "include" and "libcef_dll" folders from path_to_chromium\src\cef into it (such folders are used by release mode). Almost all parameters for project I took from existing release project, except that I replaced all NDEBUG macroses to _DEBUG. The problem I'm unable to build this projects - there are a lots of errors corresponding to missing 'net/base/net_error_list.h' and 'dlfcn.h' headers. Also there are some "fatal error C1189: #error: This file can be included DLL-side only" errors. So, what I'm doing wrong? May be I've took lib files from the wrong place?
oglo
Newbie
 
Posts: 6
Joined: Fri Jun 11, 2021 7:51 am

Re: Building libcef_dll_wrapper

Postby magreenblatt » Fri Jun 11, 2021 10:20 am

You should take the files from a binary distribution. That includes a CMake configuration that shows required defines, etc. See the included README.txt for usage.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Building libcef_dll_wrapper

Postby oglo » Wed Jun 16, 2021 8:29 am

Ok, I've downloaded binary destribution and compiled it with disabled iterator debugging (_HAS_ITERATOR_DEBUGGING=0;_ITERATOR_DEBUG_LEVEL=0). All previous errors had gone but I still cann't link it due
Code: Select all
libcef_dll_wrapper.lib(libcef_dll_wrapper.obj) : error LNK2001: unresolved external symbol _cef_parse_json_buffer
oglo
Newbie
 
Posts: 6
Joined: Fri Jun 11, 2021 7:51 am

Re: Building libcef_dll_wrapper

Postby magreenblatt » Wed Jun 16, 2021 9:34 am

Are you using all binaries from the same binary distribution (libcef.dll, .lib, etc)?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Building libcef_dll_wrapper

Postby oglo » Thu Jun 17, 2021 3:44 am

Yes, I copied them from Debug (I'm trying to create debug config of my app) folder of binary distribution.
oglo
Newbie
 
Posts: 6
Joined: Fri Jun 11, 2021 7:51 am

Re: Building libcef_dll_wrapper

Postby oglo » Thu Jun 17, 2021 4:27 am

I'm sorry. It seems that I've messed some project's properties. I just tried to setup debug config of my app from scratch, and it builds. However, now libcef.dll throws exception at startup and I need to debug it.
oglo
Newbie
 
Posts: 6
Joined: Fri Jun 11, 2021 7:51 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests