1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| #!/bin/bash sudo chmod 777 ./* -Rf sudo rm -rf x265 curpath=$(pwd) buildx265() { cd x265 git checkout 2.6 sudo apt update sudo apt install cmake build-essential yasm nasm
sudo apt install cmake-curses-gui sudo make clean
local path="/home/tuling/.FuHan-arm-linux/opt/arm-fullhanv3-linux-uclibcgnueabi-b6/bin" build_x265=${curpath}/buildx265 rm -rf $build_x265 sudo mkdir -p $build_x265
set -x cd ./build/arm-linux rm crosscompile.cmake # rm -rf ./* sudo cp $curpath/crosscompile.cmake ./ pwd ls -l # ./make-Makefiles.bash cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=./crosscompile.cmake ../../source && ccmake ../../source set +x
# cmake -G "Unix Makefiles" \
# CC="${path}/arm-fullhanv3-linux-uclibcgnueabi-gcc" \
make -j$(nproc) sudo make install
}
download(){ git clone https://bitbucket.org/multicoreware/x265_git.git x265 sudo chmod 777 ./* -Rf cd x265 git checkout 2.6
# wget https://bitbucket.org/multicoreware/x265/downloads/x265_2.6.tar.gz # tar -xzf x265_2.6.tar.gz # rm -rf x265_2.6.tar.gz }
if [ -d "x265" ]; then echo "x265 exists" else download fi
buildx265
|