cef static build

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.

cef static build

Postby vidyadeesha » Sat Nov 21, 2020 12:35 am

I am trying to build CEF source code to generate static library, therefore please suggest me is there any flag to set to generate the static library for CEF .
vidyadeesha
Newbie
 
Posts: 4
Joined: Sat Nov 21, 2020 12:14 am

Re: cef static build

Postby magreenblatt » Sat Nov 21, 2020 12:02 pm

What, specifically, do you want to build as a static library, and why? See also https://bitbucket.org/chromiumembedded/ ... braries.md
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cef static build

Postby vidyadeesha » Sun Nov 22, 2020 11:52 pm

In my project have to use cef library with static link therefore i need static library of cef. prebuilt cef library have only dynamic library .so please suggest how to link cef library as a static library.
vidyadeesha
Newbie
 
Posts: 4
Joined: Sat Nov 21, 2020 12:14 am

Re: cef static build

Postby magreenblatt » Mon Nov 23, 2020 12:17 pm

vidyadeesha wrote:In my project have to use cef library with static link

Why?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cef static build

Postby vidyadeesha » Mon Nov 23, 2020 11:25 pm

my entire application is linked with static only so i need this cef also static .
vidyadeesha
Newbie
 
Posts: 4
Joined: Sat Nov 21, 2020 12:14 am

Re: cef static build

Postby magreenblatt » Tue Nov 24, 2020 1:29 pm

Just because you are linking other libraries statically does not mean that you need to link CEF statically. Indeed, it is more likely to cause issues if you do.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cef static build

Postby Staxcelrom » Fri Jul 01, 2022 3:17 pm

Sorry for posting in an old thread, but I wanted to ask why - "If link the CEF statically, then it is "it is more likely to cause issues if you do."" ?
Staxcelrom
Expert
 
Posts: 206
Joined: Wed Jan 26, 2022 8:20 am

Re: cef static build

Postby magreenblatt » Sat Jul 02, 2022 3:27 am

All statically linked libraries need to be built with the same config and use the same runtime. Chromium also requires a very specific config and runtime. They are therefore unlikely to be compatible unless you build everything (your other static libs, exe, etc) as part of the Chromium build.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 51 guests