Build wrapper with vs2017

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.

Build wrapper with vs2017

Postby snowendless » Thu Sep 20, 2018 11:29 pm

Hello guys, I try to use CEF with vs2017 and encounter a problem:

1,windows10 and vs2017 15.8
2,cef_binary_3.3497.1829
3,cmake 3.12.2
4, make with /MD and build, ceftests project failed with "run_all_unittests.obj : error LNK2019: unresolved external symbol _cef_sandbox_info_create referenced in function "public: __thiscall CefScopedSandboxInfo::CefScopedSandboxInfo(void)" (??0CefScopedSandboxInfo@@QAE@XZ)"

then I found that cmake compain "CEF sandbox is not compatible with the current MSVC version (1915)"

how can I find a version of CEF sandbox can be used for vs2017?
thanks~
snowendless
Newbie
 
Posts: 2
Joined: Thu Sep 20, 2018 11:05 pm

Re: Build wrapper with vs2017

Postby magreenblatt » Fri Sep 21, 2018 4:06 am

The sandbox is a static library that you compile into your executable. It does not support /MD.

It looks like 1915 is VS2017 version 15.8. You can add it to the list in cmake/cef_variables.cmake.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build wrapper with vs2017

Postby snowendless » Mon Sep 24, 2018 8:57 pm

magreenblatt wrote:The sandbox is a static library that you compile into your executable. It does not support /MD.

It looks like 1915 is VS2017 version 15.8. You can add it to the list in cmake/cef_variables.cmake.


Thanks for your kindly answer, I've got a further question, my application dlls are all working in /MD mode, is there any possible way to use cef in MD mode?

Do I have to build my own sandbox in MD mode?

Thanks~
snowendless
Newbie
 
Posts: 2
Joined: Thu Sep 20, 2018 11:05 pm

Re: Build wrapper with vs2017

Postby magreenblatt » Tue Sep 25, 2018 4:58 am

You cannot build the sandbox in MD mode. You need to choose -- use MD when linking your executable, or use the sandbox.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 58 guests