perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
629 stars 44 forks source link

Error on build in Windows #62

Closed GokuHiki closed 10 months ago

GokuHiki commented 11 months ago

I have error when build Godot with luascript in Windows 10 with visual studio as bellow:

luascript_editor_syntax_highlighter.cpp
[ 43%] Compiling modules\luascript\debug.cpp ...
[ 43%] Compiling modules\luascript\lua_script.cpp ...
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30143 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

debug.cpp
modules\luascript\parser\generated\LuaParser.cpp(304): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30143 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

lua_script.cpp
[ 43%] Compiling modules\luascript\lua_script_instance.cpp ...
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30143 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

lua_script_instance.cpp
[ 43%] Compiling modules\luascript\lua_script_language.cpp ...
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30143 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

lua_script_language.cpp
[ 43%] Compiling modules\luascript\lua_script_resource_formate_loader.cpp ...
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30143 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

lua_script_resource_formate_loader.cpp
D:\Downloads\_Dev\godot\modules\luascript\lua_script_instance.h(46): error C3668: 'LuaScriptInstance::notification': method with override specifier 'override' did not override any base class methods
modules\luascript\lua_script.cpp(85): error C2259: 'LuaScriptInstance': cannot instantiate abstract class
D:\Downloads\_Dev\godot\modules\luascript\lua_script_instance.h(24): note: see declaration of 'LuaScriptInstance'
modules\luascript\lua_script.cpp(85): note: due to following members:
modules\luascript\lua_script.cpp(85): note: 'void ScriptInstance::validate_property(PropertyInfo &) const': is abstract
.\core/object/script_instance.h(45): note: see declaration of 'ScriptInstance::validate_property'
modules\luascript\lua_script.cpp(85): note: 'void ScriptInstance::notification(int,bool)': is abstract
.\core/object/script_instance.h(70): note: see declaration of 'ScriptInstance::notification'
modules\luascript\lua_script.cpp(85): error C2259: 'LuaScriptInstance': cannot instantiate abstract class
D:\Downloads\_Dev\godot\modules\luascript\lua_script_instance.h(24): note: see declaration of 'LuaScriptInstance'
modules\luascript\lua_script.cpp(85): note: due to following members:
modules\luascript\lua_script.cpp(85): note: 'void ScriptInstance::validate_property(PropertyInfo &) const': is abstract
.\core/object/script_instance.h(45): note: see declaration of 'ScriptInstance::validate_property'
modules\luascript\lua_script.cpp(85): note: 'void ScriptInstance::notification(int,bool)': is abstract
.\core/object/script_instance.h(70): note: see declaration of 'ScriptInstance::notification'
scons: *** [modules\luascript\lua_script.windows.editor.x86_64.obj] Error 2
D:\Downloads\_Dev\godot\modules\luascript\lua_script_instance.h(46): error C3668: 'LuaScriptInstance::notification': method with override specifier 'override' did not override any base class methods
scons: *** [modules\luascript\lua_script_instance.windows.editor.x86_64.obj] Error 2
modules\luascript\lua_script_language.cpp(231): error C2259: 'LuaScript': cannot instantiate abstract class
D:\Downloads\_Dev\godot\modules\luascript\lua_script.h(26): note: see declaration of 'LuaScript'
modules\luascript\lua_script_language.cpp(231): note: due to following members:
modules\luascript\lua_script_language.cpp(231): note: 'String Script::get_class_icon_path(void) const': is abstract
.\core/object/script_language.h(144): note: see declaration of 'Script::get_class_icon_path'
modules\luascript\lua_script_language.cpp(231): error C2259: 'LuaScript': cannot instantiate abstract class
D:\Downloads\_Dev\godot\modules\luascript\lua_script.h(26): note: see declaration of 'LuaScript'
modules\luascript\lua_script_language.cpp(231): note: due to following members:
modules\luascript\lua_script_language.cpp(231): note: 'String Script::get_class_icon_path(void) const': is abstract
.\core/object/script_language.h(144): note: see declaration of 'Script::get_class_icon_path'
scons: *** [modules\luascript\lua_script_language.windows.editor.x86_64.obj] Error 2
scons: building terminated because of errors.
[Time elapsed: 00:07:54.133]

Can you help me with it? Thank you and regards!

perbone commented 10 months ago

Hi!

Until now I didn't have a Windows machine to be able to solve problems with this OS. I now have a machine and will resolve this soon. I will close this issue because there is already another one on the same topic that I will keep open to follow up on the correction.

--Perone