Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

E2003 Undeclared identifier: 'TCefCursorHandle'

Post Reply
cyracks
Posts: 1
Joined: Thu Apr 25, 2024 8:24 pm

E2003 Undeclared identifier: 'TCefCursorHandle'

Post by cyracks »

Hello.

I installed CEF4Delphi according to instructions available on page https://www.briskbard.com/index.php?lang=en&pageid=cef.

If I compile demo project SimpleFMXBrowser (FMX) for windows everything is working ok, but if target platform is changed to Android 32 or 64 bit then error bellow is shown. Any suggestions what could be the problem ?

[DCC Error] uCEFTypes.pas(4706): E2003 Undeclared identifier: 'TCefCursorHandle'
[DCC Error] uCEFTypes.pas(4806): E2003 Undeclared identifier: 'TCefEventHandle'
[DCC Error] uCEFTypes.pas(4807): E2005 'TCefEventHandle' is not a type identifier
[DCC Error] uCEFTypes.pas(7051): E2003 Undeclared identifier: 'TCefWindowHandle'
[DCC Error] uCEFTypes.pas(7052): E2005 'TCefWindowHandle' is not a type identifier
[DCC Error] uCEFTypes.pas(7782): E2005 'TCefWindowHandle' is not a type identifier
[DCC Fatal Error] uCEFApplicationCore.pas(537): F2063 Could not compile used unit 'uCEFTypes.pas'
User avatar
salvadordf
Posts: 4074
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Post by salvadordf »

Sorry but CEF doesn't support Android at this moment.
https://github.com/salvadordf/CEF4Delphi/issues/407
User avatar
salvadordf
Posts: 4074
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Post by salvadordf »

I just uploaded a fix for the build issue in Android but this will only be useful when you use the same code for multiple operating systems.
Use TWebBrowser in Android for now.
cyracks
Posts: 1
Joined: Thu Apr 25, 2024 8:24 pm

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Post by cyracks »

Thank you for the answer. I already tried with TWebBrowser but there are some performance problems and is very limited to configure.

What did you mean by
this will only be useful when you use the same code for multiple operating systems
I would like to build simple FMX only android app where 100% of the screen would be used for webbrowser, but having app would mean some additional benefits like being able to get device id, full screen, access to file system, ...
Last edited by cyracks on Fri Apr 26, 2024 2:43 pm, edited 1 time in total.
User avatar
salvadordf
Posts: 4074
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Post by salvadordf »

I meant that some FMX applications might use the same code for Windows and Android for example but in this case they would have to add conditional directives to use a different web browser component in Android.

The latest fix would make building that application a little bit easier but it doesn't mean that it can use CEF in Android. :oops:
Post Reply