Open Deadpikle opened 5 years ago
Hmm. I remember running across something like this previously, but it's been a while now so I don't recall exactly what the issue was. I'll take a look at it when I get a chance.
Which versions of Xcode and macOS are you running?
Xcode 10; macOS 10.14.6.
Also came across this today with Xcode 11.2 on Catalina (10.15.1 beta), while testing out if we can upgrade our build servers to the latest macOS. The clue above about ICU is an interesting find, and I wonder if locale depends on it. We use boost as a dependency of Libbitcoin, and their documentation says that it is only used when ICU is conditionally incorporated only for one of their modules, which we do not use so I can bypass, but thought I'd pass that along here in case it helps. By the way, thank you for providing this script! It helped us out of a weird build issue in Catalina that we'd struggled to find a fix to for days.
Here what I found about this issue ...
For me Boost.Locale with ICU/ICONV building only for 1.66.0 version. In the versions above 1.67.0 it's got failed. There were updating of Locale module in 1.67.0. I've tried to build it with ICONV and ICU - all the time the same result. BTW - the same troubles for Android too.
For now I've done my own script for 1.66.0. That is building Boost for iOS and MacOS within Locale. I am not Boost-person and I can't to do it by my own.
I'm currently in the midst of upgrading several dependency build scripts for my projects (Android included), so I should be able to get to this sometime in the next week. I don't use Locale, but I did have it building at some point. Boost has some dependencies on itself and I'll have to dig through the documentation & figure out what Locale needs again. Things change from time to time. I'm sure there's documentation somewhere - finding it is the hard part.
I'm currently in the midst of upgrading several dependency build scripts for my projects (Android included), so I should be able to get to this sometime in the next week. I don't use Locale, but I did have it building at some point. Boost has some dependencies on itself and I'll have to dig through the documentation & figure out what Locale needs again. Things change from time to time. I'm sure there's documentation somewhere - finding it is the hard part.
It would be great ... I am not Boost-person but it critically required for me.
please check if change similar to #64 fixes build for macOS.
Btw building locale manually for macOS (without this script) succeeds for me without any special settings, but I tested only x86_64.
When I run the following command:
The build fails with the following error:
Looking earlier in the build log and poking around on disk, I can see that there are no build files for locale.
macos-build.log
has a helpful error:The docs for
locale
(here) state the following:I'm looking into what this would take to fix now, as
which iconv
on my system returns a valid, usable binary.http://metashapes.com/blog/building-boost-locale-ios/ has some interesting details, but adding
-I$XCODE_ROOT/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${MACOS_SDK_VERSION}.sdk/usr/include/ -L$XCODE_ROOT/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${MACOS_SDK_VERSION}.sdk/usr/lib/
toEXTRA_MACOS_SDK_FLAGS
doesn't seem to work.