Closed superoven closed 3 years ago
I have fixed that now in the latest version now (v1.2.1) and I have tested it as well compiling with Mingw. Let me know if it still doesn't work for you.
Just remember to add the use_mingw=yes parameter for it to work also described here: https://gameanalytics.com/docs/item/godot-sdk#windows
In order to build windows export templates on any machine that isn't a windows machine, one needs to use mingw64: https://docs.godotengine.org/en/stable/development/compiling/compiling_for_windows.html#creating-windows-export-templates https://gameanalytics.com/docs/item/godot-sdk
Mingw64 version:
When building on Godot 3.2.3-stable:
It will fail on the step that actually links the
GameAnalytics.lib
file to the binary.This is the command it fails on in the verbose logs:
It fails with this error:
If one attempts to directly reference
GameAnalytics.lib
with${GODOT_ROOT}/modules/gameanalytics/cpp/lib/win64/GameAnalytics.lib
in the previous command instead, you get this error:Where it basically is unable to link the
GameAnalytics.lib
file.Thinking this was an issue with me trying to build on Mac, I tried the same procedure on Windows, also using mingw64 to compile the windows build template and got the same error from scons.
I was able to successfully compile the export template when using MVSC 2019 on Windows, so I am fairly confident that is the issue is specifically with attempting to build the export templates with mingw64. This is important for making a build process that does not span multiple machines.
Could we get built .lib and .dll files for the windows export template that would link properly with building godot with mingw64?