godotengine / godotengine/godot-cpp
Error Creating bindings with Scons
- Dominant language
- C++
- Stars
- 2.7k
- Forks
- 809
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Description
Hello:
I Have been tring to follow the GDNative C++ Example but i ran into some issues.
when runing command:
> scons platform=windows headers=../godot_headers generate_bindings=yes
i get this output:
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> cl /Fosrc\core\AABB.obj /c src\core\AABB.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\core
> AABB.cpp
> c:\godotengine\cpp_example\godot-cpp\include\core\String.hpp(4): fatal error C1083: Cannot open include file: 'gdnative/string.h': No such file or directory
> scons: *** [src\core\AABB.obj] Error 2
> scons: building terminated because of errors.
>
> C:\GodotEngine\cpp_example\godot-cpp>scons platform=windows headers=../godot_headers generate_bindings=yes
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> cl /Fosrc\core\AABB.obj /c src\core\AABB.cpp /TP /nologo /EHsc /D_DEBUG /MDd /I. /Igodot_headers /Iinclude /Iinclude\core
> AABB.cpp
> c:\godotengine\cpp_example\godot-cpp\include\core\String.hpp(4): fatal error C1083: Cannot open include file: 'gdnative/string.h': No such file or directory
> scons: *** [src\core\AABB.obj] Error 2
> scons: building terminated because of errors.
I got the same result using MinGW instead of MVSC. And the string.h file is in the path. what im doing wrong?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.