How to cross-compile x265 2.0 for AARCH64 (arm64)?
Hello.
I'm trying to cross-compile x265 2.0 for AARCH64(arm64) processor, but x.265_2.0/build/arm-linux makes ELF32 executable file only.
So, I try to compile on arm64 machine directly. (using x265 1.9v and 2.0v) Then, I face the following error message during compiling.
-error message
common/CMakeFiles/common.dir/common.cpp.o(.text+0x10c): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
Please help me.
Comments (5)
-
Account Deactivated -
I’m coming up against the issue above. Have the necessary cmake flags for aarch64 been determined?
Thanks!
-
I’m not sure if there is a way to cross compile for both ARM arch with cmake. Can you confirm with an example ?
-
Do you have any update on how to cross-compile x265 for aarch64?
-
For cross-compiling for aarch64 on Linux it seem that you just cd to build/aarch64-linux and use the crosscompile.cmake file provided in there.
- Log in to comment
We've so far only tested with compiling for 32-bit ARM and I don't have a 64-bit ARM handy to test. I am assuming that some cmake flags have to be edited to enable 64-bit.