Skip to content
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

libffi能引入源码吗 #7

Open
passerbycrk opened this issue May 17, 2019 · 5 comments
Open

libffi能引入源码吗 #7

passerbycrk opened this issue May 17, 2019 · 5 comments

Comments

@passerbycrk
Copy link

RT

@yulingtianxia
Copy link
Owner

@passerbycrk 旧版本的引入的就是源码,但是在Xcode 10.2 之后就编译失败。干脆换成大家都在用的lib 了

@passerbycrk
Copy link
Author

@passerbycrk 旧版本的引入的就是源码,但是在Xcode 10.2 之后就编译失败。干脆换成大家都在用的lib 了

所以用10.2之前的版本是可以正确编译么,我试试看。
BlockHook中目前在用的是tag: 3.2.1 编译的静态库吧?

@yulingtianxia
Copy link
Owner

@passerbycrk 恩恩是的,但是之前用源码编译还是有些问题,你可以试下。

@passerbycrk
Copy link
Author

passerbycrk commented May 20, 2019

@passerbycrk 恩恩是的,但是之前用源码编译还是有些问题,你可以试下。

编译环境:Xcode9.4.1,libffi(ksjogo版)
问题出现了,各种配置完成后,问题日志最后收敛成这些,看起来是汇编相关问题,相关知识以及还给老师了,不知道你对此有啥建议没

/Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:453:13: error: invalid variant 'rel' in '.long' directive .long LUW0@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:472:13: error: invalid variant 'rel' in '.long' directive .long LUW5@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:485:13: error: invalid variant 'rel' in '.long' directive .long LUW8@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:499:14: error: invalid variant 'rel' in '.long' directive .long LUW12@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:512:14: error: invalid variant 'rel' in '.long' directive .long LUW15@rel

@yulingtianxia
Copy link
Owner

@passerbycrk 恩恩是的,但是之前用源码编译还是有些问题,你可以试下。

编译环境:Xcode9.4.1,libffi(ksjogo版)
问题出现了,各种配置完成后,问题日志最后收敛成这些,看起来是汇编相关问题,相关知识以及还给老师了,不知道你对此有啥建议没

/Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:453:13: error: invalid variant 'rel' in '.long' directive .long LUW0@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:472:13: error: invalid variant 'rel' in '.long' directive .long LUW5@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:485:13: error: invalid variant 'rel' in '.long' directive .long LUW8@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:499:14: error: invalid variant 'rel' in '.long' directive .long LUW12@rel ^ /Users/xxx/Git/libffi/darwin_ios/src/x86/unix64_x86_64.S:512:14: error: invalid variant 'rel' in '.long' directive .long LUW15@rel

抱歉我也没看懂,ksjogo 版没用过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants