Giter VIP home page Giter VIP logo

Comments (7)

salvadordf avatar salvadordf commented on May 27, 2024

Hi,

I only have a Raspberry Pi 4 and I can't test CEF4Delphi in Raspberry Pi 5 at this moment.

I'm not sure if the CEF sample application works fine in Raspberry Pi 5.
https://cef-builds.spotifycdn.com/cef_binary_119.4.7%2Bg55e15c8%2Bchromium-119.0.6045.199_linuxarm64_client.tar.bz2

It would be necessary to test the sample application in Chrome runtime mode, hardware acceleration, etc. before testing the CEF4Delphi demos.

Download the sample application and execute this command :
cefsimple --enable-chrome-runtime --use-views

from cef4delphi.

PTz0uAH avatar PTz0uAH commented on May 27, 2024

@salvadordf

RPi 5 Debian 12 testing: > cefsimple --enable-chrome-runtime --use-views

preliminary test results:

  • as the google page was default I had to go to my vAmigaWeb test page via the debug console so that works..
  • vAmigaWeb started ok yet not at full speed..
  • Mouse Pointer integration works..
  • Local Storage to save/boot vAmigaWeb harddisk works..
  • Drag 'n drop worked, openfile requester works..
  • Popup window works.. yet no addressbar..
  • Audio works..
  • FullScreenAPI F11 works..

Too bad I could not check hw-acceleration in chrome://gpu nor chrome://flags from the console ( only http:// and https:// allowed? )

Most options used by vAmigaWeb work with > cefsimple

I do not know at this moment how to enable the GPU.. and/or hw acceleration for WebGL..

2023-12-11-102344_1920x1080_scrot

note: as you can see the user agent shows (X11; X86_64) which is odd as we are on ARM64..

What can I do more to test?

from cef4delphi.

salvadordf avatar salvadordf commented on May 27, 2024

Some early Raspberry Pi 5 testers reported that some applications needed to be adapted to the new hardware. I wouldn't be surprised if the hardware acceleration for Chromium is not available yet.

Follow these instructions to build cefclient and you'll be able to see the chrome://gpu page.
chromiumembedded/cef#3087

cefclient has hardware acceleration enabled by default.

I was waiting a few weeks before buying a Raspberry Pi 5 because I would like to have a passively cooled case with a PCIe hat that would allow me to connect an NVMe drive but I'll try to find some reseller in Spain now.
Edit : all shops are out of stock. :-/

from cef4delphi.

PTz0uAH avatar PTz0uAH commented on May 27, 2024

@salvadordf

I was lucky the RPi5/8G arrived last week.. wanted it since October..

Too bad the limited availability spoils the fun for you..

But let me cheer you up a bit and share this with you.. as I said before "everything works" with the Chromium official build so behold this RPi5 report..

about-gpu-2023-12-11T11-39-10-477Z.txt

from cef4delphi.

salvadordf avatar salvadordf commented on May 27, 2024

I finally received my Raspberry Pi 5. :D

I installed Raspberry Pi OS 64 bit and Lazarus 2.6.2 from the repository. I tried to use fpcupdeluxe to install Lazarus 3.0 but there's a build error so I had to use the old packages from the repository.

After installing DCPcrypt and CEF4Delphi 119.4.7 I could run the GTK 3 demos normally, even the TinyBrowser and TinyBrowser2 demos that use the Chrome runtime mode.

The GTK2 demos like MiniBrowser work when you don't enable the Chrome runtime mode but if you enable it you will see an error about mixing GTK2 and GTK3 symbols. This is the issue #441 "Linux : Some GTK2 demos crash".

Lazarus 2.6.2 has some issues with the debugger but I could set the GlobalCEFApp.ChromeRuntime property. I guess some of the issues you describe might be related to using the trunk version of Lazarus because I could set ChromeRuntime and EnableGPU without problems with Lazarus 2.6.2.

from cef4delphi.

PTz0uAH avatar PTz0uAH commented on May 27, 2024

@salvadordf well I did get the "double windows bug" using Wayland and laz 2.2.6 so I switched back to X and tried the trunk version..

It is indeed great to hear it worked out for you as described.. I did put the pi on the shelf for later..

So it should work, even with GTK3.. thanks for the feedback..

I'm gonna dive into it again.. and let you know..

from cef4delphi.

PTz0uAH avatar PTz0uAH commented on May 27, 2024

@salvadordf I've got the pi5 back into the program for testing and want to share my findings.. so far..

I boldly updated the (trunk) Lazarus 3.99 GTK2 install with fpcupdeluxe and also included the latest cef4delphi module..

going from there I found why the previous attempt getting access to the MiniBrowser cef properties in the editor failed..

In the uses clause after implementation it says uCefClient which could be harmless when using windows but mandatory for linux flavours..

After I manually adapted uCefClient to uCEFCLient things "came to live" in lazarus..

All missing properties are available now..

I could Enable the GPU.. it shows enabled in chrome://gpu

But could NOT load a file into vAmigaWeb using the JS buttons or even localstorage so that's not functioning yet..

After enabling ChromeRuntime the MiniBrowser crashes silently.. returning immediately to Lazarus..

So there are some crucial hurdles left but "all works with the official defacto std chromium release" which feels a bit frustrating..

Hope to get it working some day..

from cef4delphi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.