Revision: 5715
          http://sourceforge.net/p/smartbody/code/5715
Author:   fastict
Date:     2014-07-15 03:17:59 +0000 (Tue, 15 Jul 2014)
Log Message:
-----------
trunk - ios - newly compiled alut (freealut) 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

-------

6. alut (freealut)
https://github.com/vancegroup/freealut
download commit fc814e316c2bfa6e05b723b8cc9cb276da141aae  (7/11/2014)
create file toolchain-iphoneos.cmake:
set(IPHONE_SDK "6.1")
set(IPHONE_ROOT 
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer")
set(IPHONE_SDK_ROOT "${IPHONE_ROOT}/SDKs/iPhoneOS${IPHONE_SDK}.sdk")

set(CMAKE_FIND_ROOT_PATH "${IPHONE_SDK_ROOT}" "${IPHONE_ROOT}")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

set(CMAKE_SYSTEM_NAME "GNU")
set(CMAKE_SYSTEM_PROCESSOR armv7)
set(CMAKE_OSX_ARCHITECTURES armv7)

set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)

set(CMAKE_C_COMPILER llvm-gcc-4.2)
set(CMAKE_CXX_COMPILER llvm-g++-4.2)

add_definitions("-D__IPHONE__")
add_definitions("-arch armv7 -pipe -no-cpp-precomp --sysroot=${IPHONE_SDK_ROOT} 
-miphoneos-version-min=${IPHONE_SDK}")
set(CMAKE_C_LINK_FLAGS "-arch armv7 --isysroot=${IPHONE_SDK_ROOT} 
-miphoneos-version-min=${IPHONE_SDK} -L${IPHONE_SDK_ROOT}/usr/lib 
-L${IPHONE_SDK_ROOT}/usr/lib/system")
set(CMAKE_CXX_LINK_FLAGS ${CMAKE_C_LINK_FLAGS})

include_directories("${IPHONE_SDK_ROOT}/usr/include")
include_directories("${IPHONE_SDK_ROOT}/usr/include/c++/4.2.1")
include_directories("${IPHONE_SDK_ROOT}/usr/include/c++/4.2.1/armv7-apple-darwin10")

link_directories("${IPHONE_SDK_ROOT}/usr/lib")
link_directories("${IPHONE_SDK_ROOT}/usr/lib/system")

set(CMAKE_CROSSCOMPILING TRUE)
set(IPHONE TRUE)
In CMakeLists.txt, make the following changes:
line 29:
option(BUILD_EXAMPLES "build example applications" OFF)
option(BUILD_STATIC "build static library too" ON)
option(BUILD_TESTS "build the test-suite" OFF)
line 43 (comment out):
#find_package(OpenAL REQUIRED)
#include_directories(${OPENAL_INCLUDE_DIR})
In src/CMakeLists.txt, make the following changes:
line 47, from:
target_link_libraries(alut_static ${OPENAL_LIBRARY} ${ADD_LIBS})
to:
target_link_libraries(alut_static ${ADD_LIBS})
starting at line 70, comment out the rest of the file:
#add_library(alut SHARED ${ALUT_SOURCES} ${ALUT_INTERNAL_HEADERS} 
${ALUT_HEADERS})
#set_property(TARGET
#       alut
#       PROPERTY
#       PUBLIC_HEADER
#       ${ALUT_HEADERS})
#set_target_properties(alut
#       PROPERTIES
#       VERSION
#       ${MAJOR_VERSION}
#       SOVERSION
#       ${MAJOR_VERSION})
#target_link_libraries(alut ${OPENAL_LIBRARY})
#if(UNIX)
#       target_link_libraries(alut m)
#endif()        

#install(TARGETS alut
#       LIBRARY DESTINATION lib${LIB_SUFFIX}
#       ARCHIVE DESTINATION lib${LIB_SUFFIX}
#       RUNTIME DESTINATION bin
#       PUBLIC_HEADER DESTINATION include/AL)

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-iphoneos.cmake ..
make
copy \build\src\libalut.a to \ios\libs\iphoneos

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