[x265] x265-devel Digest, Vol 37, Issue 33

neve_capricorn at gmx.de neve_capricorn at gmx.de
Sat Jun 25 13:52:42 CEST 2016


i have excatly the same problem. does anyone successfull build libx265
for iOS?


> 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/14b2ca3c/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
> 
> 
> ------------------------------
> 
> End of x265-devel Digest, Vol 37, Issue 33
> ******************************************
> 



More information about the x265-devel mailing list