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 :/)

in Engine by (23 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

by (51 points)
selected by
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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.