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
I want to use it in iOS or Android but I can't compile #479
Comments
Can you compile, or can't you? btw, building on macOS (using the standard instructions) or Android (using the instructions in Android.configure.mk), should work fine, though I personally haven't tried either. |
If you want to link and run on an ARM iOS device, you need to use the iOS cross-compiling toolchain, which is included in Xcode somehow. This is a complicated topic which is not really the responsibility of libevent. |
@ploxiln Can you understand what I say? |
x86_64 is the architecture of your macOS laptop, but not of your iOS phone/tablet, so it doesn't work for iOS phone/tablet |
I get you. But even you run |
I want to use it in iOS or Android but I can't compile,please give a tip, thanks.
I have compile it, and generate
libjson-c.a
,libjson-c.4.dylib
and ect,but it can't run iOS or macOS(10.14+).file was built for archive which is not the architecture being linked (x86_64): /Users/man/workspace/libjson-c.a Undefined symbols for architecture x86_64: "_json_object_from_file", referenced from:
The text was updated successfully, but these errors were encountered: