Haha. Sorry I must been tired when I tested if the openssl extension worked with luasec extension but when I test now it works fine. I think I must have forgotten to restart the editor before testing
I am still missing to add native libraries for Android and iOS to the openssl extension because GameAnalytics SDK extension only uses the openssl libs for windows, linux and mac platforms.
I have added Android and iOS platform libs to the openssl extension now. It works fine building for iOS with luasec extension but I get this error when building for Android:
We donât have warnings as errors and non of those warnings are really fatal.
If you are using the BETA version, youâll now get the full log.txt in the build folder, it should help to narrow the issue down.
If I use the beta version (1.2.165) then I just get this error when building for android with both the original version of luasec and a modified version which I try to get to work with the openssl extension:
Ok I got back to original error again but I donât see the log.txt file (no build is generated because of the error). Where should the log.txt be located? In the folder you choose for the build to be created in or where?
AH, the log currently only ends up there in case of a successful build.
I need to fix that issue too, so that itâs always stored on disc. Sorry for sending you on a wild goose hunt! HONK
Iâll try to find the log on the server insteadâŚ
Thanks for the log @Mathias_Westerdahl. After adding a few extra flags when building the openssl libs for android it works now together with luasec. The openssl extension have of course been updated with the new libs for android as well.
Weâll see in the future, if we can also make it possible for you to use the new lib we use MbedTLS, to even further slim down the exe size. But thatâs for the future
I think the luasec extension needs to add the defold-openssl extension to its dependencies for it to work or else they will both extensions try to add the openssl libraries. I think I got it to work that way. Correct me if I am wrong.
The problem is that the luasec extension still has the libs inside the extension and is not using the openssl extension instead: https://github.com/britzl/defold-luasec/tree/master/luasec/lib. The openssl extension though only has libs for windows, mac and linux. So if you quickly want to fix the problem without waiting you need to download the luasec extension and manually add it to your project but delete the libs for windows, mac and linux (or just the platforms you will be using) and then add the openssl extension dependency to the or else you need to wait for a fix by the author of the extension I guess @BunBunBun
Yes @britzl. To avoid having duplicate symbols (from openssl libs) from both GA and luasec extension the openssl should be moved to a separate extension which they should then both dependent on. I have created one here https://github.com/GameAnalytics/defold-openssl but it doesnât have all the libs for the platforms that luasec extension openssl libs (as GA extension only uses openssl libs from Windows, Mac and Linux) so I donât know if you want to fork the repo and add the missing libs or something like that and then we use that extension instead. What do you think?