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

发自我的 iPhone

> 在 2016年6月24日,06:44,chen <[email protected]> 写道:
> 
> Could you try my new patch?
> 
> At 2016-06-23 11:20:02,"steven.Hu" <[email protected]> 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
> [email protected]
> https://mailman.videolan.org/listinfo/x265-devel
> 
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to