perbone / luascript

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

Error when building on Windows #42

Closed LasagnaCake closed 2 years ago

LasagnaCake commented 2 years ago

An error gets thrown when building on windows, using the following command: scons platform=windows module_luascript_enabled=yes target=release_debug bits=64 vsproj=yes

The error in question:

scons: Reading SConscript files ...
Configuring for Windows: target=release_debug, bits=64
Found MSVC version 14.2, arch amd64, bits=64
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> modules\luascript\editor\luascript_syntax_highlighter.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30133 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

luascript_syntax_highlighter.cpp
D:\Git Downloads\Godot Engine\modules\luascript\editor\luascript_syntax_highlighter.h(33): error C2039: 'HighlighterInfo': is not a member of 'TextEdit'
.\scene/gui/text_edit.h(41): note: see declaration of 'TextEdit'
D:\Git Downloads\Godot Engine\modules\luascript\editor\luascript_syntax_highlighter.h(33): error C2065: 'HighlighterInfo': undeclared identifier
D:\Git Downloads\Godot Engine\modules\luascript\editor\luascript_syntax_highlighter.h(33): error C2923: 'Map': 'HighlighterInfo' is not a valid template type argument for parameter 'V'
D:\Git Downloads\Godot Engine\modules\luascript\editor\luascript_syntax_highlighter.h(33): note: see declaration of 'HighlighterInfo'
D:\Git Downloads\Godot Engine\modules\luascript\editor\luascript_syntax_highlighter.h(33): error C2976: 'Map': too few template arguments
.\core/templates/map.h(42): note: see declaration of 'Map'
D:\Git Downloads\Godot Engine\modules\luascript\editor\luascript_syntax_highlighter.h(33): error C2955: 'Map': use of class template requires template argument list
.\core/templates/map.h(42): note: see declaration of 'Map'
D:\Git Downloads\Godot Engine\modules\luascript\editor\../constants.h(22): fatal error C1083: Cannot open include file: 'core/ustring.h': No such file or directory
scons: *** [modules\luascript\editor\luascript_syntax_highlighter.windows.opt.tools.64.obj] Error 2
scons: building terminated because of errors.
[Time elapsed: 00:00:19.221]
perbone commented 2 years ago

which branch are you compiling?

LasagnaCake commented 2 years ago

which branch are you compiling?

The master branch.

perbone commented 2 years ago

Please read the readme