[x265] How to build the Makefile with cmake for iOS compiling?

huhai huhai8274 at 163.com
Fri Jun 24 01:49:20 CEST 2016


Thank you!Sure,I'll have a try!

发自我的 iPhone

> 在 2016年6月24日,06:44,chen <chenm003 at 163.com> 写道:
> 
> Could you try my new patch?
> 
> At 2016-06-23 11:20:02,"steven.Hu" <huhai8274 at 163.com> wrote:
> I found 'arm-linux' directory under 'build' directory, and I changed the 'crosscompile.cmake' to the following:
> 
> # CMake toolchain file for cross compiling x265 for ARM arch
> # This feature is only supported as experimental. Use with caution.
> # Please report bugs on bitbucket
> # Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source
> 
> set(CROSS_COMPILE_ARM 1)
> set(CMAKE_SYSTEM_NAME Darwin)
> set(CMAKE_SYSTEM_PROCESSOR armv7l)
> 
> # specify the cross compiler
> set(CMAKE_C_COMPILER /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang)
> set(CMAKE_CXX_COMPILER /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++)
> 
> # specify the target environment
> SET(CMAKE_FIND_ROOT_PATH  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/)
> 
> Then I run 'cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source' from the arm-linux directory, and I got the'Makefile' without any error info.
> But when run 'make', it reported many errors, which may be caused by incorrect headers including.I found the compiler uses the headers under '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk', instead, it should use the headers under '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/'.
> How can I fix it? Any suggestion would be appreciated!
> 
> 
>  
> 
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20160624/3e59cfc7/attachment-0001.html>


More information about the x265-devel mailing list