3 Star 8 Fork 2

PerfBenchmark/perf-monitor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.sh 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
woohello 提交于 2024-03-18 10:04 . add build.sh
#!/bin/bash
#scriptdir=$(realpath $(basename $(realpath $0)))
scriptdir=$(realpath $(dirname $0))
rootdir=${scriptdir}
thirddir=${rootdir}/third-part
echo "rootdir=${rootdir}"
echo "thirddir=${thirddir}"
# x264: compile and install
build_x264() {
echo -e "\n\n----> build_x264 \n\n"
cd ${thirddir}
tar xvf x264.tar.gz -C tmp
cd tmp/x264
./configure --enable-shared
make
sudo make install
}
# ffmpeg: compile and install
build_ffmpeg() {
echo -e "\n\n----> build_ffmpeg \n\n"
cd ${thirddir}
tar jxvf ffmpeg-snapshot.tar.bz2 -C tmp/
cd tmp/ffmpeg
./configure --enable-pic --enable-pthreads --enable-shared --disable-static --disable-network --enable-pthreads --enable-ffmpeg --disable-ffplay --enable-ffprobe --enable-gpl --enable-nonfree --enable-libx264 --enable-encoder=libx264 --enable-decoder=h264 --disable-debug
make
sudo make install
}
cd ${thirddir}
mkdir -p tmp
build_x264
build_ffmpeg
echo -e "\n\n----> build finish. it need to open QtCreator to install. \n"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/perfbenchmark/perf-monitor.git
git@gitee.com:perfbenchmark/perf-monitor.git
perfbenchmark
perf-monitor
perf-monitor
master

搜索帮助