<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br>شع 2016-07-01 16:18:27£¬"Deepthi Nandakumar" <<a href="mailto:deepthi@multicorewareinc.com">deepthi@multicorewareinc.com</a>> £؛<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 28, 2016 at 11:05 PM, Min Chen <span dir="ltr"><<a href="mailto:chenm003@163.com" target="_blank">chenm003@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Min Chen <<a href="mailto:min.chen@multicorewareinc.com">min.chen@multicorewareinc.com</a>><br>
# Date 1467135300 18000<br>
# Node ID 8974c28e7d6ac481028a860a415a31eb64885043<br>
# Parent 626fcbac7ffba723dabd3a9f0507c4c80f3e7bc9<br>
cmake: support IPhone cross compile on Mac OS X platform<br>
<br>
diff -r 626fcbac7ffb -r 8974c28e7d6a build/arm-ios/ios.cmake<br>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000<br>
+++ b/build/arm-ios/ios.cmake Tue Jun 28 12:35:00 2016 -0500<br>
@@ -0,0 +1,18 @@<br>
+# CMake toolchain file for cross compiling x265 for ARM arch<br>
+# This feature is only supported as experimental. Use with caution.<br>
+# Please report bugs on bitbucket<br>
+# Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source<br>
+<br>
+set(CROSS_COMPILE_ARM 1)<br>
+set(CMAKE_SYSTEM_NAME Darwin)<br>
+set(CMAKE_SYSTEM_PROCESSOR armv7l)<br>
+set(CMAKE_OSX_DEPLOYMENT_TARGET 0)<br>
+<br>
+# specify the cross compiler<br>
+set(CMAKE_C_COMPILER clang)<br>
+set(CMAKE_CXX_COMPILER clang++)<br>
+<br>
+# specify the target environment<br>
+set(CMAKE_FIND_ROOT_PATH ${IOS_PLATFORM_SDK})<br>
+<br>
+<br>
diff -r 626fcbac7ffb -r 8974c28e7d6a build/arm-ios/make-Makefiles.bash<br>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000<br>
+++ b/build/arm-ios/make-Makefiles.bash Tue Jun 28 12:35:00 2016 -0500<br>
@@ -0,0 +1,7 @@<br>
+#!/bin/bash<br>
+# Run this from within a bash shell<br>
+<br>
+IOS_PLATFORM_SDK=`xcrun --show-sdk-path --sdk iphoneos`<br>
+IOS_CFLAGS="-arch armv7 -mfpu=neon -pthread -miphoneos-version-min=7.0 -Qunused-arguments"<br>
+<br>
+cmake -DCMAKE_TOOLCHAIN_FILE=ios.cmake -DCMAKE_C_FLAGS="$IOS_CFLAGS" -DCMAKE_CXX_FLAGS="$IOS_CFLAGS" -DCMAKE_OSX_SYSROOT="$IOS_PLATFORM_SDK" -DIOS_PLATFORM_SDK="$IOS_PLATFORM_SDK" -G "Unix Makefiles" ../../source && ccmake ../../source<br>
diff -r 626fcbac7ffb -r 8974c28e7d6a source/CMakeLists.txt<br>
--- a/source/CMakeLists.txt Thu Jun 16 12:57:38 2016 +0530<br>
+++ b/source/CMakeLists.txt Tue Jun 28 12:35:00 2016 -0500<br>
@@ -187,7 +187,12 @@<br>
endif()<br>
endif()<br>
if(ARM AND CROSS_COMPILE_ARM)<br>
- set(ARM_ARGS -march=armv6 -mfloat-abi=soft -mfpu=vfp -marm)<br>
+message(STATUS ${PLATFORM_LIBS})<br>
+ if(APPLE)<br>
+ #set(ARM_ARGS -arch armv7 -arch armv7s -arch arm64)<br></blockquote><div><br></div><div>Min - did you mean to comment this out? </div><div><br></div><div>Yes, take it out now, it support iOS on different cpu, I find it from Apple SDK but I can't verify it now.</div><div><br></div></div>
</div></div>
</blockquote></div></div>