|
|
|
|
49
|
QTOX_REPO="https://github.com/bashrc/qTox"
|
49
|
QTOX_REPO="https://github.com/bashrc/qTox"
|
50
|
QTOX_COMMIT='505c5043828cf0fc43ee3f16279a131e50edc057'
|
50
|
QTOX_COMMIT='505c5043828cf0fc43ee3f16279a131e50edc057'
|
51
|
|
51
|
|
|
|
52
|
+function mesh_install_ffmpeg
|
|
|
53
|
+{
|
|
|
54
|
+ chroot "${rootdir}" apt-get -y remove ffmpeg libav-tools
|
|
|
55
|
+ chroot "${rootdir}" apt-get -y install build-essential
|
|
|
56
|
+ chroot "${rootdir}" apt-get -y install --reinstall libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config
|
|
|
57
|
+ mkdir -p ${rootdir}$INSTALL_DIR/ffmpeg-release
|
|
|
58
|
+ cd ${rootdir}$INSTALL_DIR
|
|
|
59
|
+ wget http://ffmpeg.org/releases/ffmpeg-3.1.tar.bz2
|
|
|
60
|
+ tar xvjf ffmpeg-3.1.tar.bz2
|
|
|
61
|
+ chroot ${rootdir} /bin/bash -x <<EOF
|
|
|
62
|
+cd ${INSTALL_DIR}/ffmpeg-3.1
|
|
|
63
|
+./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg
|
|
|
64
|
+make
|
|
|
65
|
+make install
|
|
|
66
|
+EOF
|
|
|
67
|
+ chroot "${rootdir}" apt-get install libav-tools
|
|
|
68
|
+}
|
|
|
69
|
+
|
52
|
function mesh_tox_qtox {
|
70
|
function mesh_tox_qtox {
|
53
|
- chroot "${rootdir}" apt-get -y install build-essential libatk1.0-0 libbz2-1.0 libc6 libcairo2 libdbus-1-3 libegl1-mesa libfontconfig1 libfreetype6 libgcc1 libgdk-pixbuf2.0-0 libgl1-mesa-glx libglib2.0-0 libgtk2.0-0 libice6 libicu52 libjpeg62-turbo libmng1 libmtdev1 libopenal1 libopus0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpng12-0 libqrencode3 libsm6 libsodium13 libsqlite3-0 libssl1.0.0 libstdc++6 libtiff5 libudev1 libvpx1 libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa libwebp5 libx11-6 libx11-xcb1 libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb-xinerama0 libxcb1 libxext6 libxfixes3 libxi6 libxrender1 libxss1 zlib1g libopus-dev libvpx-dev
|
|
|
54
|
- chroot "${rootdir}" apt-get -y install build-essential qt5-qmake qt5-default qttools5-dev-tools libqt5opengl5-dev libqt5svg5-dev libopenal-dev libxss-dev qrencode libqrencode-dev libglib2.0-dev libgdk-pixbuf2.0-dev libgtk2.0-dev ffmpeg libsqlcipher-dev libopus-dev libvpx-dev libavformat-dev libavdevice-dev libswscale-dev libavutil-dev libavcodec-dev libavcodec56 libavcodec57 libavfilter-dev libavfilter6
|
|
|
55
|
- #chroot "${rootdir}" apt-get -y install --force-yes tox-ffmpeg-dev
|
|
|
56
|
if [ ! ${rootdir}$INSTALL_DIR ]; then
|
71
|
if [ ! ${rootdir}$INSTALL_DIR ]; then
|
57
|
INSTALL_DIR=${rootdir}/root/build
|
72
|
INSTALL_DIR=${rootdir}/root/build
|
58
|
fi
|
73
|
fi
|
|
|
|
|
61
|
mkdir -p ${rootdir}$INSTALL_DIR
|
76
|
mkdir -p ${rootdir}$INSTALL_DIR
|
62
|
fi
|
77
|
fi
|
63
|
|
78
|
|
|
|
79
|
+ chroot "${rootdir}" apt-get -y install build-essential libatk1.0-0 libbz2-1.0 libc6 libcairo2 libdbus-1-3 libegl1-mesa libfontconfig1 libfreetype6 libgcc1 libgdk-pixbuf2.0-0 libgl1-mesa-glx libglib2.0-0 libgtk2.0-0 libice6 libicu52 libjpeg62-turbo libmng1 libmtdev1 libopenal1 libopus0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpng12-0 libqrencode3 libsm6 libsodium13 libsqlite3-0 libssl1.0.0 libstdc++6 libtiff5 libudev1 libvpx1 libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa libwebp5 libx11-6 libx11-xcb1 libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb-xinerama0 libxcb1 libxext6 libxfixes3 libxi6 libxrender1 libxss1 zlib1g libopus-dev libvpx-dev
|
|
|
80
|
+ chroot "${rootdir}" apt-get -y install build-essential qt5-qmake qt5-default qttools5-dev-tools libqt5opengl5-dev libqt5svg5-dev libopenal-dev libxss-dev qrencode libqrencode-dev libglib2.0-dev libgdk-pixbuf2.0-dev libgtk2.0-dev libsqlcipher-dev libopus-dev libvpx-dev libavformat-dev libavdevice-dev libswscale-dev libavutil-dev libavcodec-dev libavcodec56 libavcodec57 libavfilter-dev libavfilter6
|
|
|
81
|
+ #chroot "${rootdir}" apt-get -y install --force-yes tox-ffmpeg-dev
|
|
|
82
|
+
|
|
|
83
|
+ mesh_install_ffmpeg
|
|
|
84
|
+
|
64
|
git clone $QTOX_REPO ${rootdir}$INSTALL_DIR/qtox
|
85
|
git clone $QTOX_REPO ${rootdir}$INSTALL_DIR/qtox
|
65
|
if [ ! -d ${rootdir}$INSTALL_DIR/qtox ]; then
|
86
|
if [ ! -d ${rootdir}$INSTALL_DIR/qtox ]; then
|
66
|
exit 72428
|
87
|
exit 72428
|