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.22k stars 373 forks source link

Error Building on XE2 #414

Closed bemgiz closed 2 years ago

bemgiz commented 2 years ago

Error Building CEF4Delphi on Delphi XE2 update 4

Message Build Error : [DCC Error] uCEFArgCopy.pas(112): E2003 Undeclared identifier: 'StrDispose'

Complete code at line 112 on file uCEFArgCopy.pas:
{$IFNDEF FPC}System.AnsiStrings.{$ENDIF}StrDispose(FArgVCopy[i]);

I put this Path at Delphi Library : D:\Projetos\Bibliotecas\Chromium - Tortoise\trunk\source

Complete Error Messages : Checking project dependencies... Building CEF4DelphiVCLRTL.dproj (Debug, Win32) brcc32 command line for "CEF4DelphiVCLRTL.vrc" c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 "CEF4DelphiVCLRTL.vrc" -foCEF4DelphiVCLRTL.res dcc command line for "CEF4DelphiVCLRTL.dpk" c:\program files (x86)\embarcadero\rad studio\9.0\bin\dcc32.exe -$O- -$W+ --no-config -B -Q -TX.bpl -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE; DbiProcs=BDE;DbiErrs=BDE -DDEBUG -E.\Win32\Debug -I"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\debug";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32\debug"; D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32\debug;"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release"; "C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports"; "C:\Users\Public\Documents\RAD Studio\9.0\Dcp";"c:\program files (x86)\embarcadero\rad studio\9.0\include";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\source\include"; D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include; D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common; D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug; D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium - Tortoise\trunk\source" -LE"C:\Users\Public\Documents\RAD Studio\9.0\Bpl" -LN"C:\Users\Public\Documents\RAD Studio\9.0\Dcp" -N0.\Win32\Debug -NSWinapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win; Xml.Win;Bde;System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell; -O"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release";"C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports";"C:\Users\Public\Documents\RAD Studio\9.0\Dcp";"c:\program files (x86)\embarcadero\rad studio\9.0\include";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\source\include"; D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include; D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common; D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug; D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium - Tortoise\trunk\source" -R"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release";"C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports";"C:\Users\Public\Documents\RAD Studio\9.0\Dcp";"c:\program files (x86)\embarcadero\rad studio\9.0\include"; "c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi

What I do, please ? Thank you

salvadordf commented 2 years ago

Embarcadero's wiki is still partially down and I had to use web.archive.org to search for information about those units.

I don't have XE2 and I can't test this issue but it should be fixed now. Please, download CEF4Delphi again and let me know if you have any other issue.

PS : Older Delphi versions had FMX issues. If your application only uses VCL then you can build and install CEF4Delphi.dpk instead of CEF4Delphi_group.groupproj

bemgiz commented 2 years ago

Thank you Salvador,

I use only VCL on Delphi XE2.

I downloaded the new version of CEF4Delphi and I tried the new orientation but, now, have another error when compiling CEF4Delphi.dpk :

[image: image.png]

Messages :

Checking project dependencies... Building CEF4Delphi.dproj (Debug, Win32) brcc32 command line for "CEF4Delphi.vrc" c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 "CEF4Delphi.vrc" -foCEF4Delphi.res dcc command line for "CEF4Delphi.dpk" c:\program files (x86)\embarcadero\rad studio\9.0\bin\dcc32.exe -$O- -$W+ --no-config -B -Q -Z -TX.bpl

-AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE; DbiProcs=BDE;DbiErrs=BDE -DDEBUG -I"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release";"C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports";"C:\Users\Public\Documents\RAD Studio\9.0\Dcp"; "c:\program files (x86)\embarcadero\rad studio\9.0\include";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32";"D:\Projetos\Bibliotecas\Jedi

XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\source\include";D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;

D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Data;Datasnap;Web;Soap; -O"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release";"C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports";"C:\Users\Public\Documents\RAD Studio\9.0\Dcp";"c:\program files (x86)\embarcadero\rad studio\9.0\include"; "c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi

XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32";"D:\Projetos\Bibliotecas\Jedi

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;

D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;

D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;

D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

I also tryed to compile CEF4Delphi_group.groupproj an the error is another, now on CEF4DelphiFMXRTL :

[image: image.png]

Messages :

Checking project dependencies... Compiling CEF4Delphi_designtime.dproj (Debug, Win32) dcc command line for "CEF4Delphi_designtime.dpk" c:\program files (x86)\embarcadero\rad studio\9.0\bin\dcc32.exe -$O- -$W+ --no-config -M -Q -TX.bpl

-AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE; DbiProcs=BDE;DbiErrs=BDE -DDEBUG -E.\Win32\Debug -I"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\debug";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"D:\Projetos\Bibliotecas\Jedi - XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32\debug";

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32\debug;"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release"; "C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports"; "C:\Users\Public\Documents\RAD Studio\9.0\Dcp";"c:\program files (x86)\embarcadero\rad studio\9.0\include";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi -

XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32";"D:\Projetos\Bibliotecas\Jedi

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;

D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\source\include";D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;

D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\source\include";D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;

D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32\debug;"c:\program files (x86)\embarcadero\rad studio\9.0\lib\Win32\release"; "C:\Users\Joao\OneDrive\João\1 - Projetos\RAD Studio\9.0\Imports";"c:\program files (x86)\embarcadero\rad studio\9.0\Imports"; "C:\Users\Public\Documents\RAD Studio\9.0\Dcp";"c:\program files (x86)\embarcadero\rad studio\9.0\include";"c:\program files (x86)\embarcadero\rad studio\9.0\RaveReports\Lib";"C:\Program Files (x86)\Raize\CS5\Lib\RS-XE2\Win32";"D:\Projetos\Bibliotecas\Jedi -

XE2\jcl-2.4.1.4571\jcl-2.4.1.4571\lib\d16\win32";"D:\Projetos\Bibliotecas\Jedi

D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\lib\d16\win32;D:\Projetos\Bibliotecas\Jedi\jcl-master\jcl-master\jcl\source\include;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\lib\D16\win32;D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\common;

D:\Projetos\Bibliotecas\Jedi\jvcl-master\jvcl-master\jvcl\Resources;D:\Projetos\Bibliotecas\ZEOS\packages\DelphiXE2\Win32\Debug;

D:\Projetos\Bibliotecas\tdbf701\packages\DelphiXE2\dcu;"D:\Projetos\Bibliotecas\Chromium

Thank you João Carlos

Em ter., 26 de abr. de 2022 às 07:22, Salvador Díaz Fau < @.***> escreveu:

Embarcadero's wiki is still partially down and I had to use web.archive.org to search for information about those units.

I don't have XE2 and I can't test this issue but it should be fixed now. Please, download CEF4Delphi again and let me know if you have any other issue.

PS : Older Delphi versions had FMX issues. If your application only uses VCL then you can build and install CEF4Delphi.dpk instead of CEF4Delphi_group.groupproj

— Reply to this email directly, view it on GitHub https://github.com/salvadordf/CEF4Delphi/issues/414#issuecomment-1109621163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKPIA2EGVP7ILQOSJOKFK3VG67XFANCNFSM5UJQDHIQ . You are receiving this because you authored the thread.Message ID: @.***>

salvadordf commented 2 years ago

About the CEF4Delphi.dpk error, this line is the real cause of this problem : [DCC Error] CEF4Delphi.dpk(32): E2029 'END' expected but identifier 'rrequires' found

That's an old Delphi error that corrupts the DPK files when the package is modified. You need to edit the CEF4Delphi.dpk file and fix these words : "requires", "contains" and the final "end".

I used Delphi 11.1 to create the packages and the DPK format has changed over the years. You'll have to add the 'CEF4Delphi/source' directory to the search path of the projects manually. This includes the CEF4Delphi.dpk file and also your application projects that use CEF4Delphi.

bemgiz commented 2 years ago

The instalation is Ok but anyone demo works. Each one have a problem.

Thank you, I will search another solution.

João Carlos

Em ter., 26 de abr. de 2022 às 14:22, Salvador Díaz Fau < @.***> escreveu:

About the CEF4Delphi.dpk error, this line is the real cause of this problem : [DCC Error] CEF4Delphi.dpk(32): E2029 'END' expected but identifier 'rrequires' found

That's an old Delphi error that corrupts the DPK files when the package is modified. You need to edit the CEF4Delphi.dpk file and fix these words : "requires", "contains" and the final "end".

I used Delphi 11.1 to create the packages and the DPK format has changed over the years. You'll have to add the 'CEF4Delphi/source' directory to the search path of the projects manually. This includes the CEF4Delphi.dpk file and also your application projects that use CEF4Delphi.

— Reply to this email directly, view it on GitHub https://github.com/salvadordf/CEF4Delphi/issues/414#issuecomment-1110058700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKPIA4SFNKLXD5AHYCZHCTVHAQ6HANCNFSM5UJQDHIQ . You are receiving this because you authored the thread.Message ID: @.***>