Comments (24)
Yep, that's it. It works.
from gdcef.
@raphipod ok lol Can you git pull --rebase origin master
now. Hope to be fixed :)
from gdcef.
@raphipod nope with https://visualstudio.microsoft.com/fr/vs/ as described in the doc. More info https://github.com/stigmee/install#compile-stigmee-for-windows
To compile Stigmee for Windows:
Ensure VS2022 is installed
Open an x64 Native Tools Command Prompt for VS 2022, with Administrator privilege (this should be available in the start menu under Visual Studio 2022). This ensures the environment is correctly set to use the VS tools.
I did not pick this function in this repo
See: https://github.com/stigmee/install/blob/master/build.py#L554
and https://github.com/stigmee/install/blob/master/helper.py#L203
from gdcef.
@raphipod courage ! On the initial project, Windows user did not get trouble: my script works well :) but on this current repo I quickly copied and adapt the script since I stopped maintaining both projects. I'll commit the cl checker function.
from gdcef.
Awesome!
[INFO] Compilation done with success. You can run your Godot editor and import the project at 'gdcef/example'
That seemed to have worked. Can't say it a thousand times, thanks!
from gdcef.
Ok I'm closing this ticket. I updated the changelog to 0.3.1. I'll make a 0.3.2 if doc or example evolves.
from gdcef.
@raphipod I've just realized that I forget to call the compile_cef() :( in the script. I have fixed it and I have extended the script by removing the usage of the argv[1] holding the path to godot-cpp. Now I clone it and compile godot-cpp automatically in the folder gdcef/thirdparty/, therefore you have nothing to pass to the script. Hope this will fix your issue. In summary:
./build.py
is enough :)
from gdcef.
Hmm. Still getting stuck at line 250, saying STIGMEE_INSTALL_PATH is not defined.
Traceback (most recent call last):
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 385, in <module>
compile_cef()
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 250, in compile_cef
shutil.copyfile(os.path.join(STIGMEE_INSTALL_PATH, "patch", "CEF", "win", "libcef_dll_wrapper_cmake"),
NameError: name 'STIGMEE_INSTALL_PATH' is not defined
All other actions before that work as expected now, thanks a bunch for fixing the script!
Edit: Just commenting out line 249 - 251 seems to make it work again. Those seem to be related to CMake, which is deprecated in CEF.
from gdcef.
@raphipod ok I know, what it this: missing copying patches for Windows. I'll commit.
from gdcef.
@raphipod since I do not have Windows now I cannot really check. Ping me if something is still odd !
from gdcef.
Yes, I'll test it now!
from gdcef.
Traceback (most recent call last):
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 386, in <module>
compile_cef()
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 251, in compile_cef
shutil.copyfile(os.path.join(PATCHES_PATH, "CEF", "win", "libcef_dll_wrapper_cmake"),
File "C:\Users\raphi\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\raphi\\Documents\\DEV\\GDCef\\gdcef\\patches\\CEF\\win\\libcef_dll_wrapper_cmake'
I think it expects .\patches\CEF\win in .\gdcef, not in project root folder. I am testing further.
from gdcef.
Now it stops when compiling GDNative_CEF. Something also seems odd in the SConstruct file.
scons: *** [src\browser_io.obj] Error 1
scons: *** [src\gdbrowser.obj] Error 1
scons: *** [src\gdcef.obj] Error 1
scons: *** [src\gdlibrary.obj] Error 1
Der Befehl "cl" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
scons: *** [src\helper.obj] Error 1
scons: building terminated because of errors.
Traceback (most recent call last):
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 388, in <module>
compile_gdnative_cef(GDCEF_PATH)
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 371, in compile_gdnative_cef
gdnative_scons_cmd("windows")
File "C:\Users\raphi\Documents\DEV\GDCef\build.py", line 356, in gdnative_scons_cmd
run(["scons", "api_path=" + GODOT_CPP_API_PATH,
File "C:\Users\raphi\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['scons', 'api_path=C:\\Users\\raphi\\Documents\\DEV\\GDCef\\thirdparty\\godot-3.4\\cpp', 'build_path=C:\\Users\\raphi\\Documents\\DEV\\GDCef\\example\\build', 'target=release', '--jobs=12', 'platform=windows']' returned non-zero exit status 2.
It really doesn't like being compiled it seems ;)
from gdcef.
@raphipod this means "The "cl" command is either misspelled or could not be found." This is your Windows g++ missing.
from gdcef.
Alright. My bad lol. That should be installed with Mingw, correct?
from gdcef.
Ah, I see. Thanks for your help until here!
from gdcef.
@raphipod courage ! On the initial project, Windows user did not get trouble: my script works well :) but on this current repo I quickly copied and adapt the script since I stopped maintaining both projects. I'll commit the cl checker function.
Ok. I'm installing cl right now, let's see what happens.
from gdcef.
@raphipod I added functions for checking CMake and cl.exe
from gdcef.
@raphipod Is this running before thanking me ?
from gdcef.
Haha. You got me there :) I'll test it with Godot
from gdcef.
If this is working for you, I'll update the version to 0.3.1. I'll let you free to open pull requests for updating the unclear part of the documentation (my English is not good), upgrade the example (for example add missing key binding or applying CEF page on rotating cube). I'm a total noob in Godot :)
from gdcef.
I'll definitely update the documentation, CEF version in build.py - I also have to learn a little bit more about Godot and how it handles modules, but I'll get it working.
from gdcef.
@raphipod Cool ! Is the hello world example working for you ? Just open Godot 3.4 and import the godot.project in the example/ folder.
from gdcef.
@raphipod Finally :)
from gdcef.
Related Issues (20)
- Widevine support? HOT 2
- FileNotFoundError on compile HOT 6
- Please add support for Godot-4.0 HOT 9
- Build Error for GDCEF HOT 11
- API: Add save the page as html HOT 1
- Nonexistent function 'initialize' when running demos HOT 6
- Compile the add-on with Godot HOT 18
- Noob install Demo not working, Godot 4 & 3 HOT 2
- Unable to build the extension for Godot 4 on Windows 11 machine HOT 7
- Integrating JavaScript APIs
- godot-4 branch: Stopping debug mode in editor often does not close gdcefSubProcess.exe on Windows 11 HOT 1
- audio bus output HOT 6
- No SConstruct file found.
- Need to pass modifiers in all mouse events HOT 1
- error: "Can't open dynamic library: cef_artifacts/libgdcef.dll" when execute a build for windows platform HOT 2
- Android Support HOT 3
- Not able to get jitsi-meet works in the 2D demo HOT 18
- Slow and buggy on some webpages
- Communicating data between gdscript <-> browser HOT 2
- Copy/paste in Godot input text makes the application freezing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdcef.