godot-cpp: Can't generate bindings
I downloaded a version of Godot from here: http://fixnum.org/godot/#latest_complete
And followed your instructions to generate the cpp bindings up to this point:
scons p=linux target=bindings generate_bindings=yes
But get the following errors:
scons: Reading SConscript files … GLES3: max extensions: 356 GLES3: max ubo light: 409 GLES3: max ubo reflections: 455, ubo size: 144 ERROR: set_method_flags: Condition ’ !check->method_map.has(p_method) ’ is true. At: core/class_db.cpp:1008. ERROR: set_method_flags: Condition ’ !check->method_map.has(p_method) ’ is true. At: core/class_db.cpp:1008. ERROR: set_method_flags: Condition ’ !check->method_map.has(p_method) ’ is true. At: core/class_db.cpp:1008. ERROR: set_method_flags: Condition ’ !check->method_map.has(p_method) ’ is true. At: core/class_db.cpp:1008. mesege ERROR: _gl_debug_print: GL ERROR: Source: OpenGL Type: Performance ID: 131218 Severity: Medium Message: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state. At: drivers/gles3/rasterizer_gles3.cpp:123. ERROR: load: No loader found for resource: res://godot_api.json At: core/io/resource_loader.cpp:213. ERROR: start: Failed loading scene: res://godot_api.json At: main/main.cpp:1462. WARNING: cleanup: ObjectDB Instances still exist! At: core/object.cpp:1910. ERROR: cleanup: There are still MemoryPool allocs in use at exit! At: core/dvector.cpp:69. IOError: [Errno 2] No such file or directory: ‘godot_api.json’: File “/home/pc/Applications/Godot/Godot3.0/SimpleLibrary/cpp_bindings/SConstruct”, line 71: binding_generator.generate_bindings(json_api_file) File “/home/pc/Applications/Godot/Godot3.0/SimpleLibrary/cpp_bindings/binding_generator.py”, line 9: classes = json.load(open(path))
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Merge pull request #9 from BastiaanOlij/gdex-windows-compile Fixed windows compile (MSVC) and moved test project files — committed to BastiaanOlij/godot-cpp by vnen 3 years ago
There are a lot of people excited about GDNative.Thanks for your efforts karroffel! 😃
Okay, should now build fine!
@JimmyJames707 Huge patch incoming, should fix everything 😃
Nice, thanks! I just want to experiment with a couple of procedural generation ideas, previously limited by GDScript’s performance. Did not mean for it to look like I was so dependent on the bindings that I needed a fix right there and then (at least, not yet 😄). But hey, no harm done!
@gtsiam just opened a PR here
But damn, chill 😄 These bindings are still subject to change, so don’t really rely on them. Nice to see you needing them though 😄
What are you using them for though? Just interested to hear ^^
Interesting, I can now reproduce. This is an upstream error though, I’ll see if I can make a patch for Godot.
Looking into it 😉