Revision: 5767
          http://sourceforge.net/p/smartbody/code/5767
Author:   fastict
Date:     2014-08-08 01:24:48 +0000 (Fri, 08 Aug 2014)
Log Message:
-----------
trunk - ios - newly compiled activemq (and apr and apr-util) 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

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 
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
export 
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
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="$TOOLCHAIN/usr/bin/clang -E"
export CXX="$TOOLCHAIN/usr/bin/clang++"
export CC="$TOOLCHAIN/usr/bin/clang"
export LD="$TOOLCHAIN/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 
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
export 
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
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="$TOOLCHAIN/usr/bin/clang -E"
export CXX="$TOOLCHAIN/usr/bin/clang++"
export CC="$TOOLCHAIN/usr/bin/clang"
export LD="$TOOLCHAIN/usr/bin/ld"

export APR_FOLDER="/Users/fast/Desktop/installers/ios7/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
In src/main/decaf/util/AbstractQueue.h line 63, change from:
if( offer( value ) ) {
to:
if( this->offer( value ) ) {

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 
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
export 
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
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="$TOOLCHAIN/usr/bin/clang -E"
export CXX="$TOOLCHAIN/usr/bin/clang++"
export CC="$TOOLCHAIN/usr/bin/clang"
export LD="$TOOLCHAIN/usr/bin/ld"

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

./configure \
--host="arm-apple-darwin" \
--disable-ssl \
--with-apr="$APR_FOLDER" \
--with-apr-util="$APRUTIL_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