<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Thank you!Sure,I'll have a try!<br><br>发自我的 iPhone</div><div><br>在 2016年6月24日,06:44,chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>> 写道:<br><br></div><blockquote type="cite"><div><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" <<a href="mailto:huhai8274@163.com">huhai8274@163.com</a>> 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></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>x265-devel mailing list</span><br><span><a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a></span><br><span><a href="https://mailman.videolan.org/listinfo/x265-devel">https://mailman.videolan.org/listinfo/x265-devel</a></span><br><span></span><br></div></blockquote></body></html>