4
votes

I'm trying to install Delphi Chromium in Delphi 2007, but there is not a .dpk file for this version in the 'packages' dir. There are packages for D7 and newer versions (XE, XE2), but not for 2007.

I tried to use the D7 package, but it returns me this error :

[DCC Error] chrome.dpr(6): F1026 File not found: 'cefgui.dcu'

The 'cefgui.pas' path is already on the library path.

I also can't open the XE package because it is on the newer project format and can't be opened by D2007.

Any ideas ?

Thanks in advance !

1
Add the folder containing 'cefgui.pas' to the project search path.Ken White
Already did it, but the error remains.delphirules
There is no difference between the D7 version and what would be needed for a D2007 version except possibly version numbers in the RTL libraries. The error you're getting is because of a missing library path entry; that's the only reason for that error. If you're still getting it, you haven't added the proper path or you've added it in the wrong place.Ken White
I already added the correct path, the one the .pas files are stored in. There are no DCU files in this path although.delphirules

1 Answers

4
votes

in my download there is no chrome.dpr .

I do svn from here delphichromiumembedded

svn checkout http://delphichromiumembedded.googlecode.com/svn/trunk/

I have Rad 2007 only on my Windows 2000 Computer
and I can only show you my installation process, with Delphi 7 package.

  • Goto your chromiumembedded\packages there you run chromium.bat
  • RAD Studio -> Open project -> DCEF_D7.dpk (not DCEF_D7.dproj)
  • right click on DCEF_D7.bpl do a compile and a install

enter image description here

New palette Chromium

enter image description here

Test : ... chromiumembedded\demos\guiclient\guiclient.dpr works

Update:

With the newest downloaded dcef3-0cc175e7a629.zip. I got the same error File not found: cefgui.dcu.
I got it to compile with the following steps.

  • Download the four .dcu's from here Chromiumembedded.zip.
    They are from the older chromiumembedded.
  • Put them into the src and packages folder.
  • Compile
  • Minimize the IDE
  • Open Notepad
  • Open cefgui.pas, ceflib.pas, cefvcl.pas, cefreg.pas in Notepad
  • change the 4 files somewhat. (one, two letter is enough). Best, top in the comment. Save the files.
  • Go back to the IDE
  • Delphi inform you that files are changed outside the IDE : The question reload confirm with yes, the demand for renew the memory, also.
  • Compile and you are done.
  • if you want you can undo the changes at the four .pas files.

But beware: if you do a clean , then the four .dcu files will be deleted.