Revision: 5712
          http://sourceforge.net/p/smartbody/code/5712
Author:   fastict
Date:     2014-07-15 03:13:44 +0000 (Tue, 15 Jul 2014)
Log Message:
-----------
trunk - ios - newly compiled activemq (and apr and apr-util) for ios.  compiled 
by me
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

apr 1.3.12
apr-util 1.3.12
ActiveMQ 3.4.0

-------

1. apr 1.3.12
http://archive.apache.org/dist/apr/apr-1.3.12.tar.gz
tar zxvf apr-1.3.12.tar.gz
In apr-1.3.12\include\apr_general.h, line 79, change from:
#if defined(CRAY) || (defined(__arm) && !(defined(LINUX))
to:
#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__APPLE__)))
create file setup.sh:
export ARMVERSION=7
export 
DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneOS6.1.sdk
export CFLAGS="-arch armv$ARMVERSION -pipe -no-cpp-precomp -isysroot $SDKROOT 
-miphoneos-version-min=4.1 -I$SDKROOT/usr/include/"
export CPPFLAGS="$CFLAGS"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-L$SDKROOT/usr/lib/ -L$SDKROOT/usr/lib/system"
export CPP="$DEVROOT/usr/bin/gcc -E"
export CXX="$DEVROOT/usr/bin/g++"
export CC="$DEVROOT/usr/bin/gcc"
export LD="$DEVROOT/usr/bin/ld"

./configure \
--host="arm-apple-darwin" \
--disable-shared \
ac_cv_file__dev_zero="yes" \
ac_cv_func_setpgrp_void="yes" \
apr_cv_process_shared_works="yes" \
apr_cv_mutex_robust_shared="no" \
apr_cv_tcp_nodelay_with_cork="yes" \
ac_cv_sizeof_struct_iovec="8" \
apr_cv_mutex_recursive="yes" \
--disable-dso \
--enable-threads
run ./setup.sh
make
copy \.libs\libapr-1.a to \ios\libs\iphoneos
 
2. apr-util 1.3.12
http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
tar zxvf apr-util-1.3.12.tar.gz
create file setup.sh:
Note the location of APR_FOLDER.  This needs to be changed to the location of 
where you extracted apr above in step 1.
export ARMVERSION=7
export 
DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneOS6.1.sdk
export CFLAGS="-arch armv$ARMVERSION -pipe -no-cpp-precomp -isysroot $SDKROOT 
-miphoneos-version-min=4.1 -I$SDKROOT/usr/include/"
export CPPFLAGS="$CFLAGS"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-L$SDKROOT/usr/lib/ -L$SDKROOT/usr/lib/system"
export CPP="$DEVROOT/usr/bin/gcc -E"
export CXX="$DEVROOT/usr/bin/g++"
export CC="$DEVROOT/usr/bin/gcc"
export LD="$DEVROOT/usr/bin/ld"

export APR_FOLDER="/Users/fast/Desktop/installers/ios/apr-1.3.12"

./configure \
--host="arm-apple-darwin" \
--with-apr="$APR_FOLDER" \
--with-expat=builtin 
run ./setup.sh
make
copy \xml\expat\.libs\libexpat.a to \ios\libs\iphoneos
copy \.libs\libaprutil-1.a to \ios\libs\iphoneos
 
3. ActiveMQ 3.4.0
http://archive.apache.org/dist/activemq/activemq-cpp/source/activemq-cpp-library-3.4.0-src.tar.gz
tar zxvf activemq-cpp-library-3.4.0-src.tar.gz
In src/main/decaf/lang/system.cpp line 471, change from:
#if defined (__APPLE__)
to:
#if 0
create file setup.sh:
Note the location of APR_FOLDER and APRUTIL_FOLDER.  These need to be changed 
to the location of where you extracted apr and apr-util above in steps 1 and 2.
export ARMVERSION=7
export 
DEVROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneOS6.1.sdk
export CFLAGS="-arch armv$ARMVERSION -pipe -no-cpp-precomp -isysroot $SDKROOT 
-miphoneos-version-min=4.1 -I$SDKROOT/usr/include/"
export CPPFLAGS="$CFLAGS"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-L$SDKROOT/usr/lib/ -L$SDKROOT/usr/lib/system"
export CPP="$DEVROOT/usr/bin/gcc -E"
export CXX="$DEVROOT/usr/bin/g++"
export CC="$DEVROOT/usr/bin/gcc"
export LD="$DEVROOT/usr/bin/ld"

export APR_FOLDER="/Users/fast/Desktop/installers/ios/apr-1.3.12"
export APRUTIL_FOLDER="/Users/fast/Desktop/installers/ios/apr-util-1.3.12"

./configure \
--host="arm-apple-darwin" \
--disable-ssl \
--with-apr="$APR_FOLDER" \
--with-apr-util="$APR_FOLDER" \
--disable-dependency-tracking
run ./setup.sh
make
copy \src\main\.libs\libactivemq-cpp.a to \ios\libs\iphoneos

Modified Paths:
--------------
    branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libactivemq-cpp.a
    branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libapr-1.a
    branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libaprutil-1.a
    branches/fast/smartbody-toolkit-5542/ios/libs/iphoneos/libexpat.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