Forum > Networking and Web Programming

CEF4Delphi under Ubuntu CEF binaries missing

(1/3) > >>

Forest:
Does anybody is using CEF4Delphi under Lazaus and Ubuntu or other GTK linux ? I have cef missing libraries error even when .so files are in application directory. I think it is not locating them. How to debug this problem, I saw somewhere that I can set path to libraries in code , do you know where ?

loaded:
This is how I use it on windows.

Lpr File ;

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---program Pline_Manager; {$mode objfpc}{$H+} uses  uCEFApplication,  {$IFDEF UNIX}{$IFDEF UseCThreads}  cthreads,  {$ENDIF}{$ENDIF}  Interfaces, // this includes the LCL widgetset  Forms, Unit_Main, Unit_ExtensionHandler   { you can add units after this }; {$R *.res} begin  CreateGlobalCEFApp; //The library path is defined in this method.    if GlobalCEFApp.StartMainProcess then    begin    RequireDerivedFormResource:=True;    Application.Title:='Pline Manager';    Application.Scaled:=True;    Application.Initialize;    Application.CreateForm(TForm_Main, Form_Main);    Application.Run;    end;  DestroyGlobalCEFApp;end. 

Unit_Main file ;

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure CreateGlobalCEFApp;begin  GlobalCEFApp                     := TCefApplication.Create;  GlobalCEFApp.cache               := 'cache';  GlobalCEFApp.LogFile             := 'cache\debug.log';  GlobalCEFApp.LogSeverity         := LOGSEVERITY_INFO;  GlobalCEFApp.EnablePrintPreview  := True;  GlobalCEFApp.OnWebKitInitialized := @GlobalCEFApp_OnWebKitInitialized;   GlobalCEFApp.FrameworkDirPath := UTF8ToCP1254(ExtractFilePath(ParamStr(0))) + 'Libraries\';  GlobalCEFApp.ResourcesDirPath := UTF8ToCP1254(ExtractFilePath(ParamStr(0))) + 'Libraries\';  GlobalCEFApp.LocalesDirPath := UTF8ToCP1254(ExtractFilePath(ParamStr(0)))   + 'Libraries\locales';end;

Forest:
UTF8ToCP1254 is required ? In my case should it be UTF8ToCP1250 for Eastern Europe ? In which unit it is declared ?

Forest:
Ok, thanks, it seems to be broken under GTK, still insist on missing cef files

loaded:

--- Quote from: Forest on April 09, 2023, 08:46:27 pm ---UTF8ToCP1254 is required ? In my case should it be UTF8ToCP1250 for Eastern Europe ? In which unit it is declared ?

--- End quote ---
In my case, it should be used when language-specific characters ğ,ü,ş,ı,ö,ç are used. You can test it yourself by experimenting.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uses lconvencoding;


--- Quote from: Forest on April 09, 2023, 08:58:48 pm ---Ok, thanks, it seems to be broken under GTK, still insist on missing cef files

--- End quote ---
Maybe there is a compatibility problem between the CEF4Delphi version you are using and the required CEF version!

Moreover ;
@salvadordf, author of CEF4Delphi, is a member of this forum and very helpful. If you contact him, he will help you.

Navigation

[0] Message Index

[#] Next page

Go to full version