Page 1 of 1

Mac use CEF, An error occurred during initialization

PostPosted: Wed May 05, 2021 10:28 pm
by jyDev
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 1473 times

anyone have a solution?Please contact me
thank you!

Re: Mac use CEF, An error occurred during initialization

PostPosted: Thu May 06, 2021 12:12 pm
by magreenblatt
You need to load the CEF library using CefScopedLibraryLoader. Look at the CEF sample applications for proper usage.