Skip to content

Error Creating bindings with Scons #180

@AleFachini

Description

@AleFachini

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions