Can't install CEF3.3 lazarus / 21-General ---------------------------------------------------------------------- chiong · 2025-01-30 09:37 I have the following error when compiling the code : "cef3ref.pas(1578,1) Error: Local variables size exceeds supported limit" Older release also generate the same error.  I am using lazarus 3.2. Any help is much appreciated. TQ. ---------------------------------------------------------------------- paweld · 2025-01-30 10:00 fpCEF3 - has been unsupported for years. Install CEF4Delphi, which works very well with Lazrus: https://github.com/salvadordf/CEF4Delphi/releases/tag/131.0.6778.265 ---------------------------------------------------------------------- bbd666 · 2025-01-30 10:20 Thks can you give us some clues how to install it pls ? Online Package Manager returns an error : 'One or more packages can't be found. See the package graph for details' Then I followed your instructions : https://github.com/salvadordf/CEF4Delphi/wiki/Installation-in-Lazarus- FPC but still same error msg Lazarus 3.8 FPC 3.2.2 ---------------------------------------------------------------------- paweld · 2025-01-30 11:36 1. install DCPcrypt if you don't already have it installed - in Lazarus IDE:     a. Package > Online Package Manager     b. select the DCPcrypt package.     c. click Install.     d. rebuild the IDE 2. download the CEF4Delphi package from: https://github.com/salvadordf /CEF4Delphi/archive/refs/tags/131.0.6778.265.zip 3. unzip the file 4. rename the unzipped folder to: CEF4Delphi 5. create a new folder _components in the Lazarus installation folder, e.g. C:\Lazarus 6. move the CEF4Delphi folder to C:\Lazarus\_components 7. launch the Lazarus IDE 8. package > Open package file 9. select: C:\Lazarus\_components\CEF4Delphi\packages\cef4delphi_lazarus.lpk 10. click Compile. 11 Click Use > Install. 12. rebuild the IDE ---------------------------------------------------------------------- bbd666 · 2025-01-30 12:20 Great. Install successfull. Many thks ---------------------------------------------------------------------- Thaddy · 2025-01-30 12:22 Quote from: paweld on January 30, 2025, 12:36:32 pm1. install DCPcrypt Huh? I am not sure current DCPcrypt supports tls 1.3 and since when? If it does I am amazed, if it does not it makes the whole thing useless. can you plz shed some light Pawel? ---------------------------------------------------------------------- bbd666 · 2025-01-30 12:49 Then I tried to run the demos in the folder Lazarus_windows. But they don't work : QuoteCEF binaries missing ! the missing files are : libcef.dll chrome_elf.dll d3dcompiler_47.dll etc... around 60 files more @Thaddy : what do you mean "whole thing" ? Impossible to use it with Laz 3.8 ? ---------------------------------------------------------------------- Thaddy · 2025-01-30 13:11 No I mean that the proper encryption protocols are not present in dcpcrypt, which means any software that relies on it is useless: I am not aware that dcpcrypt supports tls 1.3. If it does, that is a pleasant surprise. I thought it was abandon ware. Note that if something compiles, it does not mean it is usable, especially not where security is concerned. And with CEF that is most certainly the case. Btw you don't need to install cef unless you are a screen drawer. You just need the package. ---------------------------------------------------------------------- lainz · 2025-01-30 13:13 Quote from: Thaddy on January 30, 2025, 02:11:01 pmNo I mean that the proper encryption protocols are not present in dcpcrypt, which means any software that relies on it is useless: I am not aware that dcpcrypt supports tls 1.3. If it does, that is a pleasant surprise. I thought it was abandon ware. I dont' think dcpcrypt is used to do any connection with internet... maybe is used to do something else. Chromium must be the one that access internet with their libs internally. ---------------------------------------------------------------------- Thaddy · 2025-01-30 13:16 Quote from: lainz on January 30, 2025, 02:13:36 pmI dont' think dcpcrypt is used to do any connection with internet... maybe is used to do something else. Silly you: https Encryption is core for internet and dcpcrypt used to provide that, similar to openssl. I merely think that dcpcrypt is unloved and not maintained, which makes it useless as an openssl substitude. For such a good fpc programmer as you are, that remark comes to me as a shck because it is soooooo wrong. Hence I wrote :"pleasantly surprised"... If the current bottom line is supported, which is tls 1.2. ---------------------------------------------------------------------- bbd666 · 2025-01-30 13:26 ok . what about the demos of the package ? ---------------------------------------------------------------------- lainz · 2025-01-30 13:28 Quote from: Thaddy on January 30, 2025, 02:16:13 pmQuote from: lainz on January 30, 2025, 02:13:36 pmI dont' think dcpcrypt is used to do any connection with internet... maybe is used to do something else. Silly you: https Encryption is core for internet and dcpcrypt used to provide that, similar to openssl. I merely think that dcpcrypt is unloved and not maintained, which makes it useless as an openssl substitude. For such a good fpc programmer as you are, that remark comes to me as a shck because it is soooooo wrong. Hence I wrote :"pleasantly surprised"... If the current bottom line is supported, which is tls 1.2. Again. I said that dcpcrypt maybe is used for something else. Why chromium will need dcpcrypt? It has no sense. If course https will be accessible with chromium and his own libraries. No need for third-party. ---------------------------------------------------------------------- paweld · 2025-01-30 14:21 @Thaddy - If you read the package's documentation, you'd see that it requires DCPcrypt to work: QuoteCEF4Delphi is available in Online Package Manager but you will need to install the DCPCrypt package first. @bbd666: Here you have links to download the necessary files: https://github.com/salvadordf/CEF4Delphi/blob/master/README.md and here instructions on how to properly place them in the program directory: https://www.briskbard.com/index.php?lang=en&pageid=cef ---------------------------------------------------------------------- lainz · 2025-01-30 14:41 Quote from: paweld on January 30, 2025, 03:21:02 pm@Thaddy - If you read the package's documentation, you'd see that it requires DCPcrypt to work: QuoteCEF4Delphi is available in Online Package Manager but you will need to install the DCPCrypt package first. I think that was clear. But we don't know why is that required. For what is used. ---------------------------------------------------------------------- korba812 · 2025-01-30 17:37 It seems that DCPcrypt is only used to determine the SHA256 hash: https://github.com/salvadordf/CEF4Delphi/blob/f0f4de8b3b5e69d0b9353a37 4093959712c56bb2/source/uCEFOAuth2Helper.pas#L121 So it can be replaced by analogous functions from FCL. ---------------------------------------------------------------------- lainz · 2025-01-30 20:22 Quote from: korba812 on January 30, 2025, 06:37:39 pmIt seems that DCPcrypt is only used to determine the SHA256 hash: https://github.com/salvadordf/CEF4Delphi/blob/f0f4de8b3b5e69d0b9353a37 4093959712c56bb2/source/uCEFOAuth2Helper.pas#L121 So it can be replaced by analogous functions from FCL. Thanks for looking. Thaddy, is not for https, in this case ---------------------------------------------------------------------- bbd666 · 2025-01-31 11:10 No, that doesn't work. i've copied the 2 folders in the _components/CEF4Delphi/bin directory and I get the error msg : unsupported CEF version ! Use only the CEF binaries specified in the CEF4Delphi Readme.md file at https://github.com/salvadordf/CEF4Delphi Expected lib.cef.dll version : 131.4.1.0 Found libcef.dll version : 132.3.1.0 ---------------------------------------------------------------------- paweld · 2025-01-31 12:39 CEF binary files must be in a directory together with the exe file. ---------------------------------------------------------------------- chiong · 2025-01-31 12:44 Quote from: paweld on January 30, 2025, 12:36:32 pm1. install DCPcrypt if you don't already have it installed - in Lazarus IDE:     a. Package > Online Package Manager     b. select the DCPcrypt package.     c. click Install.     d. rebuild the IDE 2. download the CEF4Delphi package from: https://github.com/salvadordf /CEF4Delphi/archive/refs/tags/131.0.6778.265.zip 3. unzip the file 4. rename the unzipped folder to: CEF4Delphi 5. create a new folder _components in the Lazarus installation folder, e.g. C:\Lazarus 6. move the CEF4Delphi folder to C:\Lazarus\_components 7. launch the Lazarus IDE 8. package > Open package file 9. select: C:\Lazarus\_components\CEF4Delphi\packages\cef4delphi_lazarus.lpk 10. click Compile. 11 Click Use > Install. 12. rebuild the IDE Thank yo paweld. I had managed to install the chromium component - finally. But when I tried running the demos , none seem to work. As an example the fullscreen demo generated 4 errors & below is one of them : uMainForm.pas(144,36) Error: Identifier not found "CEF_WOD_NEW_FOREGROUND_TAB" These seem to be a member of a set.  Is there something missing ?  Thank you for your kind attention. ---------------------------------------------------------------------- bbd666 · 2025-01-31 12:46 they are ---------------------------------------------------------------------- lainz · 2025-01-31 13:01 Here: https://www.briskbard.com/index.php?lang=en&pageid=cef#links You have the correct versions to download. ---------------------------------------------------------------------- paweld · 2025-01-31 13:08 Earlier I gave links to the main version, and you need to download the version according to the version of the component, that is 131.4.1, sorry. for win32: https://cef-builds.spotifycdn.com/cef_binary_131.4.1%2Bg437 feba%2Bchromium-131.0.6778.265_windows32.tar.bz2 for win64: https://cef-builds.spotifycdn.com/cef_binary_131.4.1%2Bg437 feba%2Bchromium-131.0.6778.265_windows64.tar.bz2 ---------------------------------------------------------------------- bbd666 · 2025-01-31 13:14 Ok Thks Paweld for kindness and patience. That's alright now.