Lecrapouille / gdcef

[Plugin][Version 0.10.0][Functional] Chromium Embedded Framework Webview for Godot 3 and 4
https://discord.gg/EckEwy7S5U
MIT License
224 stars 27 forks source link

CEF 104 failed with Linux #5

Closed Lecrapouille closed 2 years ago

Lecrapouille commented 2 years ago

@raphipod I reverted CEF version to 103 it seems that on my Debian I have a failure. I have to investigate.

Lecrapouille commented 2 years ago

@raphipod I have also added a new demo + used Godot-3.5, is this working for you ?

raphipod commented 2 years ago

Well, what a coincidence. I am on Fedora right now, I'm setting it up. Afterwards I'll test it!

Lecrapouille commented 2 years ago

@raphipod I emailed you. The issue is CefInitialize failed I guess it's because the build/gdcefSubProcess is broken: it is supposed to run as a standalone application, but it's frozen.

raphipod commented 2 years ago

I've successfully compiled gdcef from your master branch with CEF 103 (with Fedora 36), I have yet to test it with Godot 3.5

raphipod commented 2 years ago

Hmm. When I try to run CEF.tscn in /examples/01/, it spits out the following:

Invalid call. Nonexistent function 'create_browser' in base 'Node'.

It errors out in the CEF node, the gdnlib script is attached, but it shows up as empty in the editor (Godot 3.5-stable btw): What am I missing here?

Bildschirmfoto vom 2022-08-15 22-25-48

Edit: Both libgdcef.so & libcef.so are in the dependencies of the project, as it's supposed to be:

Bildschirmfoto vom 2022-08-15 22-33-08

raphipod commented 2 years ago

@raphipod I emailed you. The issue is CefInitialize failed I guess it's because the build/gdcefSubProcess is broken: it is supposed to run as a standalone application, but it's frozen.

Ok. I'll continue working on this tomorrow. I'll write something if I got news.

Lecrapouille commented 2 years ago

@raphipod the main scene is gui_in_3d and I forget to cherry-pick the paragraph for Linux, the path to libcef.so is probably not known by your system. You have to set the path to the examples/build/ folder with:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path/to/gdcef/examples/build/

Adapt the path to your system.

raphipod commented 2 years ago

So, CEF 104 successfully compiled on my Fedora machine. A wild guess: They've probably changed something in the backend of CEF that a development package of Debian can not provide due to a newer version of it being needed.

Lecrapouille commented 2 years ago

@raphipod closed. Tried with the newer CEF 104 has fixed issues or more probable the issue was on my side with LD_LIBRARY_PATH referring to an older CEF version