nathanfranke / gdextension

GDExtension template that automatically builds into a self-contained addon for the Godot Asset Library. Updated to Godot 4.2.1.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error on scons building

vaporvee opened this issue · comments

commented

when i type scons in the main directory it errors and terminates building.

g++ -o godot-cpp/src/core/class_db.linux.template_debug.x86_64.o -c -std=c++17 -fPIC -Wwrite-strings -m64 -march=x86-64 -O2 -DDEBUG_ENABLED -DDEBUG_METHODS_ENABLED -Igodot-cpp/gdextension -Igodot-cpp/include -Igodot-cpp/gen/include -Igodot-cpp/src godot-cpp/src/core/class_db.cpp
src/register_types.cpp:3:10: fatal error: godot/gdnative_interface.h: No such file or directory
    3 | #include <godot/gdnative_interface.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [src/register_types.os] Error 1
In file included from godot-cpp/gen/include/godot_cpp/classes/ref_counted.hpp:39,
                 from godot-cpp/include/godot_cpp/classes/ref.hpp:37,
                 from godot-cpp/gen/include/godot_cpp/classes/node.hpp:41,
                 from src/my_node.hpp:3,
                 from src/my_node.cpp:1:
godot-cpp/include/godot_cpp/core/class_db.hpp: In instantiation of 'static godot::MethodBind* godot::ClassDB::bind_method(N, M, VarArgs ...) [with N = const char*; M = void (MyNode::*)(); VarArgs = {}]':
src/my_node.cpp:10:22:   required from here
godot-cpp/include/godot_cpp/core/class_db.hpp:224:58: error: cannot convert 'const char*' to 'const godot::MethodDefinition&'
  224 |         return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, sizeof...(p_args) == 0 ? nullptr : (const void **)argptrs, sizeof...(p_args));
      |                                                          ^~~~~~~~~~~~~
      |                                                          |
      |                                                          const char*
godot-cpp/include/godot_cpp/core/class_db.hpp:108:104: note:   initializing argument 3 of 'static godot::MethodBind* godot::ClassDB::bind_methodfi(uint32_t, godot::MethodBind*, const godot::MethodDefinition&, const void**, int)'
  108 |         static MethodBind *bind_methodfi(uint32_t p_flags, MethodBind *p_bind, const MethodDefinition &method_name, const void **p_defs, int p_defcount);
      |                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
scons: *** [src/my_node.os] Error 1
scons: building terminated because of errors.