Revision: 5718
          http://sourceforge.net/p/smartbody/code/5718
Author:   fastict
Date:     2014-07-15 03:20:39 +0000 (Tue, 15 Jul 2014)
Log Message:
-----------
trunk - ios - newly compiled python for ios.  compiled by me.  This is Python 
2.7.3
platform:
OSX 10.8.5
Xcode 4.6.1
iOS 6.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="6.1"

# set up environment variables for cross compilation
export 
DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer"
export SDKROOT="$DEVROOT/SDKs/iPhoneOS${IOS_VERSION}.sdk"
export CPPFLAGS="-I$SDKROOT/usr/lib/gcc/arm-apple-darwin10/4.2.1/include/ 
-I$SDKROOT/usr/include/"
export CFLAGS="$CPPFLAGS -pipe -no-cpp-precomp -isysroot $SDKROOT"
export LDFLAGS="-isysroot $SDKROOT -Lextralibs/"
export CPP="/usr/bin/cpp $CPPFLAGS"

mkdir extralibs
ln -s "$SDKROOT/usr/lib/libgcc_s.1.dylib" extralibs/libgcc_s.10.4.dylib

./configure CC="$DEVROOT/usr/bin/arm-apple-darwin10-llvm-gcc-4.2" 
LD="$DEVROOT/usr/bin/ld" --disable-toolbox-glue --host=armv7-apple-darwin
run ./setup.sh
make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen CROSS_COMPILE_TARGET=yes
copy \libpython2.7.a to \ios\libs\iphoneos

Added Paths:
-----------
    branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libpython2.7.a
    branches/fast/smartbody-toolkit-5542/ios/python/Python-2.7-xcompile.patch

Removed Paths:
-------------
    branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libpython2.6.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

Reply via email to