0 votes

I downloaded the scons and the "godot-cpp-master" folder from git and when i ran "scons platform=linux generate_bindings=yes"
(as some tutorials says to do so)

The terminal gave me this error:

scons: Reading SConscript files ...
IOError: [Errno 2] No such file or directory: '/home/abm/Arthur/Godot/godot-cpp-master/godotheaders/api.json':
File "/home/abm/Arthur/Godot/godot-cpp-master/SConstruct", line 365:
File "/home/abm/Arthur/Godot/godot-cpp-master/binding
generator.py", line 12:
classes = json.load(open(path))

Do someone know how to fix it?

(Sorry for my bad english btw :/)

asked Feb 15 in Engine by FellowCoder (21 points)

1 Answer

+1 vote
Best answer

You must have got 2 folders like this:

copy the contents of 1st folder into godot-cpp-master\godot_headers

and then run the same command, it will work.
source: https://github.com/GodotNativeTools/godot-cpp/issues/180#issuecomment-417971498

answered Feb 16 by anubha (51 points)
selected Feb 17 by FellowCoder
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.