salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.21k stars 366 forks source link

Error compiling "uCEFMiscFunctions.pas" for Lazarus on macOS Big Sur #401

Closed uniho closed 2 years ago

uniho commented 2 years ago

Could you check it?

CEF4Delphi: 97.1.1 OS: MacOS Big Sur CPU: x86_64 Lazarus: 2.2.0 (instaled from Lazarus-2.2.0-0-x86_64-macosx.pkg) fpc: 3.2.2 (instaled from fpc-3.2.2.intelarm64-macosx.dmg, fpc-src-3.2.2-20210709-macosx.dmg)

Incidentally I fixed it to use "CocoaAll" unit in implementation section in uCEFMiscFunctions.pas.

salvadordf commented 2 years ago

I'll try to check it as soon as I can. I don't have a Mac and I have to ask for favors with every test.

uniho commented 2 years ago

You might test it on VM. See https://www.makeuseof.com/tag/macos-windows-10-virtual-machine/

salvadordf commented 2 years ago

We couldn't build the ide in that OS. We had this error about a missing "ideoptionsintf" unit : https://forum.lazarus.freepascal.org/index.php?topic=57752.msg429772#msg429772

I guess you are using fpcupdeluxe with a development version of Lazarus and FPC. I decided to add the CocoaAll unit anyway. Please, let me know if this solves this issue.

uniho commented 2 years ago

I have not been using fpcupdeluxe. I just installed fpc-3.2.2.intelarm64-macosx.dmg, fpc-src-3.2.2-20210709-macosx.dmg, and Lazarus-2.2.0-0-x86_64-macosx.pkg as described in the wiki. And see here.

uniho commented 2 years ago

I confirmed that it can be compiled at f6f2539 for now. Thanks.