Recent

Author Topic: Can't install CEF3.3  (Read 2557 times)

chiong

  • Newbie
  • Posts: 6
Can't install CEF3.3
« on: January 30, 2025, 10:37:14 am »
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

  • Hero Member
  • *****
  • Posts: 1571
Re: Can't install CEF3.3
« Reply #1 on: January 30, 2025, 11:00:33 am »
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
Best regards / Pozdrawiam
paweld

bbd666

  • New Member
  • *
  • Posts: 42
Re: Can't install CEF3.3
« Reply #2 on: January 30, 2025, 11:20:53 am »
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
« Last Edit: January 30, 2025, 11:54:00 am by bbd666 »

paweld

  • Hero Member
  • *****
  • Posts: 1571
Re: Can't install CEF3.3
« Reply #3 on: January 30, 2025, 12:36:32 pm »
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
Best regards / Pozdrawiam
paweld

bbd666

  • New Member
  • *
  • Posts: 42
Re: Can't install CEF3.3
« Reply #4 on: January 30, 2025, 01:20:09 pm »
Great.
Install successfull.
Many thks

Thaddy

  • Hero Member
  • *****
  • Posts: 18764
  • To Europe: simply sell USA bonds: dollar collapses
Re: Can't install CEF3.3
« Reply #5 on: January 30, 2025, 01:22:47 pm »
1. 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?
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

bbd666

  • New Member
  • *
  • Posts: 42
Re: Can't install CEF3.3
« Reply #6 on: January 30, 2025, 01:49:43 pm »
Then I tried to run the demos in the folder Lazarus_windows.
But they don't work :

Quote
CEF 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 ?
« Last Edit: January 30, 2025, 01:54:39 pm by bbd666 »

Thaddy

  • Hero Member
  • *****
  • Posts: 18764
  • To Europe: simply sell USA bonds: dollar collapses
Re: Can't install CEF3.3
« Reply #7 on: January 30, 2025, 02:11:01 pm »
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.
« Last Edit: January 30, 2025, 02:15:17 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Can't install CEF3.3
« Reply #8 on: January 30, 2025, 02:13:36 pm »
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.

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

  • Hero Member
  • *****
  • Posts: 18764
  • To Europe: simply sell USA bonds: dollar collapses
Re: Can't install CEF3.3
« Reply #9 on: January 30, 2025, 02:16:13 pm »
I 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.
« Last Edit: January 30, 2025, 02:23:42 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

bbd666

  • New Member
  • *
  • Posts: 42
Re: Can't install CEF3.3
« Reply #10 on: January 30, 2025, 02:26:18 pm »
ok . what about the demos of the package ?

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Can't install CEF3.3
« Reply #11 on: January 30, 2025, 02:28:25 pm »
I 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

  • Hero Member
  • *****
  • Posts: 1571
Re: Can't install CEF3.3
« Reply #12 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:
Quote
CEF4Delphi 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


Best regards / Pozdrawiam
paweld

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Can't install CEF3.3
« Reply #13 on: January 30, 2025, 03:41:15 pm »
@Thaddy - If you read the package's documentation, you'd see that it requires DCPcrypt to work:
Quote
CEF4Delphi 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

  • Sr. Member
  • ****
  • Posts: 483
Re: Can't install CEF3.3
« Reply #14 on: January 30, 2025, 06:37:39 pm »
It seems that DCPcrypt is only used to determine the SHA256 hash:
https://github.com/salvadordf/CEF4Delphi/blob/f0f4de8b3b5e69d0b9353a374093959712c56bb2/source/uCEFOAuth2Helper.pas#L121
So it can be replaced by analogous functions from FCL.

 

TinyPortal © 2005-2018