Open wolfmcnally opened 5 years ago
We sometimes encounter problems like these when Xcode isn't correctly set up. Try running xcode-select --install
to ensure that the command-line tools are properly configured. When basic system functions like socket
are missing, it's usually a sign that the build tools aren't getting the right SDK for some reason. Look at the "deps/classes/ios" file, which is a shell script that sets up the environment variables for iOS.
Thanks for your response. I have run xcode-select --install
so everything is fine there. I'm not sure what might be wrong with the classes/ios
file, although I have looked at it.
For now my workaround is to focus on building libbitcoin by itself, which I now have been able to do by separating the Boost bootstrap
phase from the build
phase. I'll have a PR shortly that fixes that.
I see, so you are just bypassing the rest of the Airbitz dependencies, and focusing on the libbitcoin immediate requirements. Of those, only boost is genuinely broken. That's promising! The boost build system is pretty awful, so having it break isn't too surprising.
I am attempting to build airbitz-core under MacOS 10.14 (Mojave) and am experiencing compile errors. Actually, I'd like to experiment with a minimum build of libbitcoin for iOS and your project appears to provide a straightforward infrastructure for building that. Except, I'm running into several issues. I am using Xcode 10.0 with the command line tools installed, and have installed the other build requirements via brew, per your instructions.
First I try to build airbitz-core per the README:
So it looks like zlib and openssl compiled fine, but we ran into a problem with libcurl. Looking at the more complete configuration information in build-ios-armv7.log:
Well, perhaps I don't need libcurl right now, because as I said I just want a basic build of libbitcoin to experiment with:
So boost failed to bootstrap. Looking at:
./build/boost/ios-armv7/boost_1_62_0/bootstrap.log
:So the bootstrap script can't find
<sys/types.h>
.I can build libsecp256k1:
So clearly the build system is mostly working— it's just certain dependencies that are broken.
A fix, workaround, or pointer to where I might start fixing it myself would be appreciated.