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.

install CEF4Delphi

Post Reply
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

Hi :

Did you add the "CEF4Delphi\source" directory to the library path ?
I see that the dproj file points to "C:\Users\Public\Documents\Embarcadero\Studio\17.0\Bpl\CEF4Delphi.bpl"
Is that directory in your computer ?

The following are default Delphi settings :
Go to the "Tools->Options" menu and open "Environment options->Delphi options->Library" and check the "Package output directory". It should be "$(BDSCOMMONDIR)\Bpl" for the 32Bit platform.
In "Environment options->Environment variables" you should have $(BDSCOMMONDIR) set to "C:\Users\Public\Documents\Embarcadero\Studio\17.0"

I hope this helps you
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

  • Open Delphi and click on the "component"->"Install Packages" menu option.
  • Select the line with CEF4Delphi and then click "Remove".
  • Close Delphi and delete the old DEF4Delphi BPL file. If you copied "libcef.dll" and "chrome_elf.dll" in the windows folder delete them too.
  • Open Delphi again and compile CEF4Delphi.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

Hi :

You have to follow the instructions given here :
https://www.briskbard.com/index.php?lang=en&pageid=cef

Instead of using CEF4Delphi.dproj you have to use CEF4Delphi_D7.dpk, build the project and then install it.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

I've added more detailed installation instructions for Delphi 7.
https://www.briskbard.com/index.php?lang=en&pageid=cef

Don't forget to create the dcu subdirectory.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

Thank you for your bug report!

I just updated the Delphi 7 DPK and now there's a new SimpleBrowser DPR for Delphi 7 too.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

I'm glad that you could make it work. :D

I just added an image of the final layout to the main web page :
https://www.briskbard.com/index.php?lang=en&pageid=cef
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: install CEF4Delphi

Post by salvadordf »

linglung wrote: Mon Apr 03, 2017 6:34 am Btw, a bit question: all these packages (*.pak, *.dll, *.lib) should be included in my final exe application, is it right?
if so, then it's huge size of exe. :cry:
As you can see in the picture, you need to include all those files but you can safely delete two of the biggest files : cef_sandbox.lib and libcef.lib.

Image

Remember that you can get an smaller exe if you compile your application in "Release" mode and not in "Debug" mode. I would also recommend "Inno Setup" to create a compressed installer.

linglung wrote: Mon Apr 03, 2017 6:34 amApologize for my bad english. I'm not native english speaker :oops:
Neither am I :P
Post Reply