How to cross-compile x265 2.0 for AARCH64 (arm64)?

Issue #294 new
Former user created an issue

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)

  1. Pradeep Ramachandran Account Deactivated

    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.

  2. Ian Butterworth

    I’m coming up against the issue above. Have the necessary cmake flags for aarch64 been determined?

    Thanks!

  3. Stéphane Cerveau

    I’m not sure if there is a way to cross compile for both ARM arch with cmake. Can you confirm with an example ?

  4. Mark Himsley

    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.

  5. Log in to comment