Open jpienbro opened 7 years ago
Thanks for the report!, libpng should be easy enough to replace, but openssl 1.0.0m to 1.0.2 is a bit of a pain for all platforms. Talk is underway about replacing with mbedtls.
https://github.com/moai/moai-community branch pull-180 should get you what you need it has libpng 1.4.20 and has removed openssl and replaced with latest version of mbedtls. It would be greate if you could give that go for your project.
don't forget you might need to do a git submodule update --init --recursive
since the moai sdk now has a couple more submodules (libcurl and mbedtls)
Can confirm, this builds fine, will use it as my testing MOAI bin for the week and report any issues .. thanks and well done!
EDIT: it does not build fine on another machine, will investigate and find out why (libmoai-ios-3rdparty-mbedtls.a not included in build stage?)
Thanks, I will test that branch too. I'll try building it on Mac for Android, iOS and OSX.
Got it working for OSX and iOS, still trying to fix it for Android: "/Volumes/HDD/Repositories/moai-community/sdk/moai/3rdparty/curl/include/curl/curl.h:38:61: fatal error: curlbuild.h: No such file or directory
These are the modifications I made for OSX and iOS: OSX:
iOS:
Thanks, looks like I forgot to update the host projects and ios-static osx-static. I am following along and updating (osx done and pushed). I will get to android, I think I must have not copied it to the folder, so it worked on my machine since configure had run. I will copy to correct location and push.
@jpienbro added a bunch more commits which have your fixes above plus similar fixes to android and windows.
OK, will check it out
Seems to build correctly now for Android, OSX and iOS. Needs a bugfix for iOS, otherwise it will crash when trying access extension of iOS classes.
In src/moai-ios/host.mm AKUIosAppInitialize() was empty. Fixed it with:
void AKUIosAppInitialize () {
loadMoaiLib_NSArray ();
loadMoaiLib_NSData ();
loadMoaiLib_NSDate ();
loadMoaiLib_NSDictionary ();
loadMoaiLib_NSError ();
loadMoaiLib_NSNumber ();
loadMoaiLib_NSObject ();
loadMoaiLib_NSString ();
}
I noticed it before, but hadn't reported it yet
My game crashes for some weird reason on Android when loading a certain menu. I'll need to do some more debugging for that one.
looks like the right fix for the NSArray stuff is to link/include https://github.com/moai/moai-dev/blob/feature/community-1.7.5/src/moai-apple/host.mm
Google Play requires newer versions of these libraries because of vulnerabilities: See LibPNG requirement: https://support.google.com/faqs/answer/7011127?hl=en See OpenSSL requirement: https://support.google.com/faqs/answer/6376725?hl=en
I tried updating them myself by updating all references I could find in project & makefiles. Only managed to get LibPNG working. OpenSSL is giving a lot of issues.
P.S. I am using the moai-community repo/branch currently. That's the only one I managed to get working/building on Mac