Mac use CEF, An error occurred during initialization

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.

Mac use CEF, An error occurred during initialization

Postby jyDev » Wed May 05, 2021 10:28 pm

The current Code
Code: Select all
     
  CefRefPtr<CefCommandLine> command_line =
            CefCommandLine::CreateCommandLine();
        command_line->InitFromArgv(argc, argv);


the application crashed, an error occurred!
截屏2021-05-06 上午11.09.36.png
截屏2021-05-06 上午11.09.36.png (308.74 KiB) Viewed 1469 times

anyone have a solution?Please contact me
thank you!
jyDev
Newbie
 
Posts: 1
Joined: Wed May 05, 2021 9:41 pm

Re: Mac use CEF, An error occurred during initialization

Postby magreenblatt » Thu May 06, 2021 12:12 pm

You need to load the CEF library using CefScopedLibraryLoader. Look at the CEF sample applications for proper usage.
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 40 guests