Revision: 5769 http://sourceforge.net/p/smartbody/code/5769 Author: fastict Date: 2014-08-08 01:33:59 +0000 (Fri, 08 Aug 2014) Log Message: ----------- trunk - ios - newly compiled python for ios 7. compiled by me. platform: OSX 10.9.4 Xcode 5.1.1 iOS 7.1
Steps documented here: https://confluence.ict.usc.edu/display/VHTK/Building+the+Toolkit#BuildingtheToolkit-3rdPartyInstructions ------- 9. Python 2.7.3 https://www.python.org/download/releases/2.7.3/ https://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz tar zxvf Python-2.7.3.tgz download .patch file https://gist.githubusercontent.com/bmount/6929380/raw/baa4479c9937ea14c581767ec016ce04dfebf72f/Python-2.7.3-xcompile.patch patch -p1 < Python-2.7-xcompile.patch create file setup.sh: export IOS_VERSION="7.1" export ARMVERSION=7 # set up environment variables for cross compilation export DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer export TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export SDKROOT=$DEVROOT/SDKs/iPhoneOS7.1.sdk export CPPFLAGS="-I$TOOLCHAIN/usr/lib/clang/5.1/include/ -I$SDKROOT/usr/include/" export CFLAGS="-arch armv$ARMVERSION $CPPFLAGS -pipe -no-cpp-precomp -isysroot $SDKROOT" export CPPFLAGS="$CFLAGS" export CXXFLAGS="$CFLAGS" export LDFLAGS="-arch armv$ARMVERSION -isysroot $SDKROOT -L$SDKROOT/usr/lib/ -Lextralibs/" export CPP="$TOOLCHAIN/usr/bin/clang -E" export CXX="$TOOLCHAIN/usr/bin/clang++" export CC="$TOOLCHAIN/usr/bin/clang" export LD="$TOOLCHAIN/usr/bin/ld" export RANLIB="$DEVROOT/usr/bin/ranlib" mkdir extralibs ln -s "$SDKROOT/usr/lib/libgcc_s.1.dylib" extralibs/libgcc_s.10.4.dylib ./configure CC="$TOOLCHAIN/usr/bin/clang" LD="$TOOLCHAIN/usr/bin/ld" --disable-toolbox-glue --host="arm-apple-darwin" run ./setup.sh make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen CROSS_COMPILE_TARGET=yes copy \libpython2.7.a to \ios\libs\iphoneos Modified Paths: -------------- branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libpython2.7.a This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Smartbody-svn mailing list Smartbody-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/smartbody-svn