i've tried CEF4Delphi/Lazarus. Installation on Lazarus 2.0.10/fpc 3.20 worked like a charm.
System is Debian10/Buster 64Bit.
(also tried on WIN10/64 Bit without any Problems!)
I downloaded cef_binary_84.2.1+g3f2c372+chromium-84.0.4147.89_linux64_minimal
i copied ceflib.so into /usr/lib
setup for CEF:
Code: Select all
procedure CreateGlobalCEFApp;
var
TempHome, TempBinDir : ustring;
begin
TempHome := IncludeTrailingPathDelimiter(extractfilepath(application.ExeName));
TempBinDir := TempHome + 'CEF';
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.SetCurrentDir := True;
if DirectoryExists(TempBinDir) then
begin
GlobalCEFApp.FrameworkDirPath := TempBinDir;
GlobalCEFApp.ResourcesDirPath := TempBinDir;
GlobalCEFApp.LocalesDirPath := TempBinDir+PathDelim+'locales';
GlobalCEFApp.cache := TempBinDir+PathDelim+'cache';
GlobalCEFApp.UserDataPath := TempBinDir+PathDelim+'UserData';
end;
// Add a debug log in the BIN directory
GlobalCEFApp.LogFile := 'cef.log';
GlobalCEFApp.LogSeverity := LOGSEVERITY_DEFAULT;//LOGSEVERITY_VERBOSE;
end;
CEF
CEF/locales
CEF/UserData
CEF/cache
copied Data from downloaded lib Release and Resources into folder CEF
Copied Project "SimpleBrowser2" into Projet folder.
Compiling worked without errors. Software starts, didn't show Main Window and closes immediately.
No Errors or warnings.
In Debug Mode i can see, in File CEFApplicationCore.pas line 1028
Code: Select all
function TCefApplicationCore.StartMainProcess : boolean;
begin
if (FStatus <> asLoading) then
Result := False
else
if not(FSingleProcess) and (length(FBrowserSubprocessPath) > 0) then
Result := MultiExeProcessing
else
Result := SingleExeProcessing;
end;
Code: Select all
if GlobalCEFApp.StartMainProcess then
begin
RequireDerivedFormResource:=True;
Application.Scaled:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end;
Whats to do?
