Build for shared crt DLLs (against msvcp140.dll)

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 for shared crt DLLs (against msvcp140.dll)

Postby Teotihuacan » Thu Oct 25, 2018 2:55 pm

hello

how to properly tell the compiller to build cef against shared crt dlls?

i.e. libcef.dll need to be linked with shared CRT dlls like msvcp140.dll.

I tried to change MT to MD in the chromium_git\chromium\src\cef\cmake\cef_variables.cmake.in
but it seems has no effect
Last edited by Teotihuacan on Thu Oct 25, 2018 5:21 pm, edited 2 times in total.
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: Build for shared crt DLLs (MD and MDd)

Postby Teotihuacan » Thu Oct 25, 2018 2:58 pm

I forgot to run create.bat...this seems required to resolve my issue
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: Build for shared crt DLLs (MD and MDd)

Postby magreenblatt » Thu Oct 25, 2018 3:02 pm

You should download or create a CEF binary distribution and use the configuration described at https://bitbucket.org/chromiumembedded/ ... braries.md
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build for shared crt DLLs (MD and MDd)

Postby Teotihuacan » Thu Oct 25, 2018 3:51 pm

magreenblatt wrote:You should download or create a CEF binary distribution and use the configuration described at https://bitbucket.org/chromiumembedded/ ... braries.md


I'm building cef using ninja but in your reference cmake is mentioned, so I dont understand how to use it
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: Build for shared crt DLLs (against msvcp140.dll)

Postby magreenblatt » Thu Oct 25, 2018 6:05 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build for shared crt DLLs (against msvcp140.dll)

Postby Teotihuacan » Fri Oct 26, 2018 3:45 am



I suppose we are talking about different things, my problem is not about building cef as .dll but about linking libcef.dll to msvcp140.dll
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: Build for shared crt DLLs (against msvcp140.dll)

Postby magreenblatt » Fri Oct 26, 2018 10:58 am

Teotihuacan wrote:


I suppose we are talking about different things, my problem is not about building cef as .dll but about linking libcef.dll to msvcp140.dll

Why do you want to link libcef.dll to msvcp140.dll?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build for shared crt DLLs (against msvcp140.dll)

Postby Teotihuacan » Fri Oct 26, 2018 11:04 am

magreenblatt wrote:
Teotihuacan wrote:


I suppose we are talking about different things, my problem is not about building cef as .dll but about linking libcef.dll to msvcp140.dll

Why do you want to link libcef.dll to msvcp140.dll?


cause otherwise I can't link libcef to my project which is completely build using shared CRT dlls approach
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Re: Build for shared crt DLLs (against msvcp140.dll)

Postby magreenblatt » Fri Oct 26, 2018 11:08 am

You only need to build libcef_dll_wrapper with /MD. See the first link that I posted for you.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build for shared crt DLLs (against msvcp140.dll)

Postby Teotihuacan » Fri Oct 26, 2018 11:25 am

magreenblatt wrote:You only need to build libcef_dll_wrapper with /MD. See the first link that I posted for you.


could you write down here complete command and its requirements? beacuse cef manual says that everything must be build using ninja but this page says that I should use cmake - this is confusing

and there is no "CEF binary distribution" page on cef site, the only place where we can find that is http://opensource.spotify.com/cefbuilds/index.html
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 84 guests