tce-load -i compiletc cmake wget https://bitbucket.org/multicoreware/x265/downloads/x265_3.3.tar.gz cd x265_3.3 patch -Np1 -i ../x265-arm-asm-primitives.patch edit source/CMakeLists.txt find_package(Neon) if(CPU_HAS_NEON) set(ARM_ARGS -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -marm -fPIC) else() set(ARM_ARGS -march=armv6zk -mtune=arm1176jzf-s -mfpu-vfp -marm -fPIC) endif() mkdir build_x265 cd build_x265 cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE ../source find . -name flags.make -type f -exec sed -i 's/-O3/-Os/g' {} \; find . -name link.txt -type f -exec sed -i 's/-O3/-Os/g' {} \; [-fno-rtti fails] make [21m 21.65s] sudo make install