GameAnalytics / GA-SDK-GODOT

Official GameAnalytics Godot SDK repository
MIT License
42 stars 7 forks source link

Compiling export template for windows from linux throws an error #10

Closed lentsius-bark closed 3 years ago

lentsius-bark commented 3 years ago

Another day, another issue :) GA works now and I'm super happy about that. One last thing that stops me from getting the game to my testers:

Compiling a windows export template from Linux, uses mingw and throws the following error:

[ 96%] Linking Program        ==> bin/godot.windows.opt.64.exe
[ 96%] x86_64-w64-mingw32-g++: error: GameAnalytics.lib: No such file or directory
[ 99%] progress_finish(["progress_finish"], [])
[100%] scons: *** [bin/godot.windows.opt.64.exe] Error 1
scons: building terminated because of errors.
lentsius-bark commented 3 years ago

I should add for more information, What works:

What doesn't:

Not sure this is solvable, but as my gitlab CD is based around a Linux headless server(docker image) exporting the game automatically to each target platform, this'd be very welcome.

the1schwartz commented 3 years ago

OK thanks for reporting this. I will have a look at this what is going wrong.

lentsius-bark commented 3 years ago

Thank you! :)

the1schwartz commented 3 years ago

I think you are missing to add the use_mingw=yes and maybe also following this https://gameanalytics.atlassian.net/wiki/spaces/ENGINEERING/pages/2147778561/Research+Opt-in+opt-out+flow+in+other+SDKs if you errors with mutex not a member of std namespace.

Let me know if this is working for you.

lentsius-bark commented 3 years ago

Although I don't have access to the Confluence documentation, adding the flag use_mingw totally fixed it! You're a wizard and this issue is solved. Thank you.