luascript: Problem with windows build
Hello !
First of all thanks for your work ! I really appreciate your work on binding the LUA language to godot. Now i’m not super familiar with scons et neither with “antlr4” but I keep having this error comming up when I recompile godot using this command :
scons -j4 platform=windows module_luascript_enabled=yes
and I keep getting errors such as :
ConsoleErrorListener.cpp [ 26%] Compiling ==> modules\luascript\lib\antlr4\DefaultErrorStrategy.cpp DefaultErrorStrategy.cpp C:\Users\Lufen\Documents\Godot\godot+lua\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>
or :
-C4273 (exemple : lib\antlr4\DefaultErrorStrategy.h(19): note: see previous definition of ‘{ctor}’ )
Any ideas of where this is comming from ?
I am on Windows x64 version 20H2.
EDIT : after further research it seems that I have an issue similar to this case?
EDIT 2: I’m trying to build it using WSL2 😃
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (10 by maintainers)
Hi! Sorry for the delay… So I’m still unable to develop on Windows and any issues on this platform will have to wait or have community help. Linux and Mac works great, my problem is I don’t have a Windows machine. So for now I’m afraid I can’t help you sorry. – Perbone
Not that I will blame you haha.
Seems like this error problem is quiet tricky…
I’m trying to build 3.2x with the latest Lua but still getting the same error that has been mentioned here, any solutions? Platform: Windows
No problem,
I will ask help in my friendlist to see if someone knows anything about scons because my self i’m not any good with it too 😂
It is official scons sucks and I suck hard with scons! Well as I said before, for now I’m done with this issue until I have my own windows build pipeline. Thanks you guys for the effort 'till now. – Perbone
No problem !
I am trying different things too as i’m building now the project from 0 using MinGW.
I let you know what 😃
Interesting all this Antlr4 things are new and I may or may not had create new bugs. I’ll have new commits this week end and I hope this error will be solved. Just one note though is that I don’t have a Windows enviroment so your input will be much appreciated. – Perbone