Revision: 6058
          http://sourceforge.net/p/smartbody/code/6058
Author:   fastict
Date:     2015-05-01 02:01:11 +0000 (Fri, 01 May 2015)
Log Message:
-----------
branch - ios - newly compiled activemq (and apr and apr-util) for ios 8.  
compiled by me

platform:
OSX 10.10.3
Xcode 6.3.1
iOS 8.3

Steps documented here:  
https://confluence.ict.usc.edu/pages/viewpage.action?pageId=16778697#BuildingtheToolkit-3rdPartyInstructions.1

-------

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 
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk
export 
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
#export CLANG_VERBOSE="--verbose"
export CPPFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT"
export CFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT -g -O0 -std=c99 -fPIC"
export CXXFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT -g -O0 -std=c++11 -stdlib=libc++ -fPIC -fcxx-exceptions"
export LDFLAGS="-arch armv7 -miphoneos-version-min=6.0 -stdlib=libc++ 
-L$SDKROOT/usr/lib -L$SDKROOT/usr/lib/system"
#export LIBS="-lc++ -lc++abi"
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 \
--build="x86_64-apple-darwin" \
--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 
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk
export 
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
#export CLANG_VERBOSE="--verbose"
export CPPFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT"
export CFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT -g -O0 -std=c99 -fPIC"
export CXXFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT -g -O0 -std=c++11 -stdlib=libc++ -fPIC -fcxx-exceptions"
export LDFLAGS="-arch armv7 -miphoneos-version-min=6.0 -stdlib=libc++ 
-L$SDKROOT/usr/lib -L$SDKROOT/usr/lib/system"
#export LIBS="-lc++ -lc++abi"
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/ios8/apr-1.3.12"

./configure \
--build="x86_64-apple-darwin" \
--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 
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk
export 
TOOLCHAIN=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
#export CLANG_VERBOSE="--verbose"
export CPPFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT"
export CFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT -g -O0 -std=c99 -fPIC"
export CXXFLAGS="$CLANG_VERBOSE -arch armv7 -pipe -miphoneos-version-min=6.0 
-isysroot $SDKROOT -g -O0 -std=c++11 -stdlib=libc++ -fPIC -fcxx-exceptions"
export LDFLAGS="-arch armv7 -miphoneos-version-min=6.0 -stdlib=libc++ 
-L$SDKROOT/usr/lib -L$SDKROOT/usr/lib/system"
#export LIBS="-lc++ -lc++abi"
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/ios8/apr-1.3.12"
export APRUTIL_FOLDER="/Users/fast/Desktop/installers/ios8/apr-util-1.3.12"

./configure \
--build="x86_64-apple-darwin" \
--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/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.


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Smartbody-svn mailing list
Smartbody-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartbody-svn

Reply via email to