-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I compile wax_stdlib about 64bit #59
Comments
+1 |
2 similar comments
+1 |
+1 |
+10086 |
I figured out how to compile wax_stdlib with 64bits support, take a look guys However there is still work to do, the library is being successfully loaded but it is not working as expected yet, the method pcallUserdata on it's 5th call is making reference to a invalid address in memory and I can't figure out why yet. I invite you all to try to fix this. Later today I'll update the readme on my fork with the instructions of how I've compiled for 64 bit but you can start debugging with the precompiled one to find why it is not working and fell free to push fixes. remember to compile the projects in ARM64. Regards |
i try compiled wax_stdlib.h 64-bit |
does this work? I always get EXC_BAD_ACCESS code=1 regards |
Friends, I've got it fully working on both architectures, here you go: https://github.com/felipejfc/wax_x86-64 Regards! |
int size = wax_fromObjc(L, type, usedArgs); -> int size = wax_sizeOfTypeDescription(type); fix crash... |
download wax_x86-64 ,in States (without wax.framework), try on iphone5 (hardware support 32bit),it run ok. but on iphone6plue (hardware support 32bit and 64bit),it crash ,in wax_helpers.m , "if ([instance isKindOfClass:[NSString class]]) {" thread 1:EXC_BAD_ACCESS(code=1,address=0x81a59408e1b9) |
strange, I can run well here on iphone 6 simulator! |
iphone 6 simulator run OK,but iphone 6 machine run crash 。 With the above question。 |
@felipejfc Thanks,my wax_stdlib_x64 Only how create wax_stdlib_x64.h file; |
If you change this line you'll miss some features @maxfong, I'm aware of the bug now @linmingzhi, I'm getting crash now using a device too... I'll try to figure it out! THe problem lies in grabbing va_list |
I've put a description on the problem in my repo |
HI,@felipejfc, i test your's code,find arm64 device,lua using OC delegate run crash and wax examples run crash,thank you for your efforts :>,come on |
@maxfong I'm aware of the issues, I'm currently working on a fix, I can already access the arguments but I need to fix an issue with pointers... I'm very near of fixing it, keep an eye on it |
@linmingzhi @maxfong it must be fully working now, can you guys confirm? regards! |
Oh well I guess I identified another issue with multiple arguments method calls that is not covered by the tests --'' |
Ok, now I think it is really working @linmingzhi @maxfong @KimReboot @HuJianChong https://github.com/felipejfc/wax_x86-64 I managed to run tests and examples |
@felipejfc ,if i // for (int i = 0; i < n-2; i++) { free(sharedMemoryForArgs[i]); },it will work OK,THX |
@maxfong If you free then it don't work? I think it's better to free them to avoid a memory leak... It works OK here even freeing the args, can you provide a code where freeing causes problems? |
@felipejfc my repo:https://github.com/maxfong/WaxPatch_X64/tree/develop, run develop branch, for free sharedMemoryForArgs will crash |
@maxfong it is true that it was causing a crash, I released a new commit with fix for that, the arguments needs to be freed so that no memory leak occurs. can you try it? |
NSMutableString *pp = [[NSMutableString alloc] init]; then causing a crash ../stdlib/waxClass.lua:28: Can't override method with return type d .And @maxfong is a bit similar ---run develop branch, for free sharedMemoryForArgs will crash |
@linmingzhi can you provide more information on this crash? what are you trying to do? are you using my last repo version? I've already solved the problem @maxfong pointed for sharedMemoryForArgs |
HI @linmingzhi , @felipejfc did |
@maxfong @linmingzhi felipejfc@45bbb5e To avoid memory leak! |
trying to use https://github.com/felipejfc/n-wax to replace wax with 64bit-enabled one.
in both cases i cant find this method anywhere (except bold declarations) |
@IPv6 I think you are not including all n-wax files in your project, check if you are including wax_ffi_closure .m and .h and also /lib/libffi files |
About the no_ffi branch you are probably not including wax_arguments .m and .h. In both cases you need to add files to your project, with the hacks i made for making it work i added new files into Wax. Note that I do not know which version is more performatic /stable. With or without libffi. Ild like your feedback |
@felipejfc Hi, I have just tested n-wax(the newest master branch: 89f3d35), the "states example" crash on iphone6 plus hardware device(Thread1: EXC_BAD_ACCESS (code=2, address=0x104aa8490)), but run OK on iphone6 plus simulator. Bug from libffi?? |
@felipejfc Hi,would you please show me some details about how to compile wax_stdlib_64.h,thanks |
wax is maintained by alibaba now, 64bit is support. see https://github.com/alibaba/wax |
My project is developmenting for more half a year in wax_hua,bug apple must support 64bit on 2015.02.01. but My project Does not support arm64 now. Now what should I do。and How do I compile wax_stdlib about 64bit。
The text was updated successfully, but these errors were encountered: