iOS directions don't work for 64 bit simulator

Jun 16, 2014 at 7:47 PM
in the directions to build casablanca for iOS, it says to use the build.sh from https://git.gitorious.org/boostoniphone/galbraithjosephs-boostoniphone.git. I have found that this will not build the version for x86_64 architecture, The script at https://gist.github.com/JLamkin/6c7b966e5b05a54f47f4 seems to correct that from what I have seen.
Coordinator
Jun 16, 2014 at 9:52 PM
Edited Jun 16, 2014 at 9:53 PM
Hi Les,

Thanks for bringing this to our attention.

After comparing the scripts, it seems that the best short-term workaround is to add -arch x86_64 to line 140 of boost.sh:
: $XCODE_ROOT/Toolchains/XcodeDefault.xctoolchain/usr/bin/$COMPILER -arch i386 -fvisibility-inlines-hidden $EXTRA_CPPFLAGS
becomes
: $XCODE_ROOT/Toolchains/XcodeDefault.xctoolchain/usr/bin/$COMPILER -arch i386 -arch x86_64 -fvisibility-inlines-hidden $EXTRA_CPPFLAGS
I've copied this into a work item for tracking: https://casablanca.codeplex.com/workitem/196

Thanks,
roschuma
Jun 18, 2014 at 2:11 PM
Edited Jun 18, 2014 at 2:11 PM
I also needed to make one other change to the instructions:

after cloning ios-cmake open ios-cmake/toolchain/ios.make

Change:
# set the architecture for iOS
# NOTE: Currently both ARCHS_STANDARD_32_BIT and ARCHS_UNIVERSAL_IPHONE_OS set armv7 only, so set both manually
if (${IOS_PLATFORM} STREQUAL "OS")
        set (IOS_ARCH armv6 armv7)
else (${IOS_PLATFORM} STREQUAL "OS")
        set (IOS_ARCH i386)
endif (${IOS_PLATFORM} STREQUAL "OS")
to
# set the architecture for iOS
# NOTE: Currently both ARCHS_STANDARD_32_BIT and ARCHS_UNIVERSAL_IPHONE_OS set armv7 only, so set both manually
if (${IOS_PLATFORM} STREQUAL "OS")
        set (IOS_ARCH armv64 armv7 armv7s)
else (${IOS_PLATFORM} STREQUAL "OS")
        set (IOS_ARCH i386 x86_64)
endif (${IOS_PLATFORM} STREQUAL "OS")
Coordinator
Jun 18, 2014 at 10:37 PM
Thanks for this, I'll add it to the issue.
Coordinator
Feb 17, 2015 at 6:24 PM
FYI - this has been implemented in the development branch now. Full details in the following issue that was tracking:

https://casablanca.codeplex.com/workitem/196

Steve