x265 cannot compile on ARM server
Hi,
Recently, I'm evaluating x264/265 on ARM server. x264 works well, but x265 cannot compile when set ASSEMBLY=ON. I tried on 2 versions which are 2.8 and 3.2, all failed but error log different.
On 2.8, error log is:
libx265.so.160: undefined reference to x265::setupAssemblyPrimitives(x265::EncoderPrimitives&, int)'
On 3.2, error log is:
/usr/bin/ld: encoder/CMakeFiles/encoder.dir/api.cpp.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol
stderr@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: encoder/CMakeFiles/encoder.dir/api.cpp.o(.text+0x570): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
If I set ASSEMBLY=OFF,x265 can compile successfully. Does that mean x265 cannot support ASSEMBLY on ARM? Thanks!
BTW, I tested on Huawei Kunpeng 920.
Comments (2)
-
-
After set ENABLE_PIC as ON, the problem still existed.
- Log in to comment
You should set ENABLE_PIC flag“ON”and recompile。