Error trying to build C++ bindings

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By FellowCoder

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/godot_headers/api.json’:
File “/home/abm/Arthur/Godot/godot-cpp-master/SConstruct”, line 365:
File “/home/abm/Arthur/Godot/godot-cpp-master/”, line 12:
classes = json.load(open(path))

Do someone know how to fix it?

(Sorry for my bad english btw :/)

:bust_in_silhouette: Reply From: anubha

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: Error Creating bindings with Scons · Issue #180 · godotengine/godot-cpp · GitHub