Page 1 of 1

E2003 Undeclared identifier: 'TCefCursorHandle'

Posted: Thu Apr 25, 2024 8:28 pm
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'

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Posted: Fri Apr 26, 2024 10:12 am
by salvadordf
Sorry but CEF doesn't support Android at this moment.
https://github.com/salvadordf/CEF4Delphi/issues/407

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Posted: Fri Apr 26, 2024 1:57 pm
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.

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Posted: Fri Apr 26, 2024 2:34 pm
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, ...

Re: E2003 Undeclared identifier: 'TCefCursorHandle'

Posted: Fri Apr 26, 2024 2:59 pm
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: