<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Could you try my new patch?<br><div></div><div id="divNeteaseMailCard"></div><br>At 2016-06-23 11:20:02,"steven.Hu" <huhai8274@163.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>I found 'arm-linux' directory under 'build' directory, and I changed the 'crosscompile.cmake' to the following:</div><div><br></div><div><div># CMake toolchain file for cross compiling x265 for ARM arch</div><div># This feature is only supported as experimental. Use with caution.</div><div># Please report bugs on bitbucket</div><div># Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source</div><div><br></div><div>set(CROSS_COMPILE_ARM 1)</div><div>set(CMAKE_SYSTEM_NAME Darwin)</div><div>set(CMAKE_SYSTEM_PROCESSOR armv7l)</div><div><br></div><div># specify the cross compiler</div><div>set(CMAKE_C_COMPILER /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)</div><div>set(CMAKE_CXX_COMPILER /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++)</div><div><br></div><div># specify the target environment</div><div>SET(CMAKE_FIND_ROOT_PATH  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/)</div></div><div><br></div><div>Then I run '<span style="line-height: 23.8px;">cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source</span><span style="line-height: 1.7;">' from the arm-linux directory, and I got the'Makefile' without any error info.</span></div><div><span style="line-height: 1.7;">But when run 'make', it reported many errors, which may be caused by incorrect headers including.I found the compiler uses the headers under '</span><b style="line-height: 1.7;">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk</b><span style="line-height: 1.7;">', instead, it should use the headers under '</span>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/<span style="line-height: 1.7;">'.</span></div><div><span style="line-height: 1.7;">How can I fix it? Any suggestion would be appreciated!</span></div>







</div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div>