axmol/install-deps-linux.sh

37 lines
927 B
Bash
Raw Normal View History

#!/bin/bash
echo "This Shell Script will install dependencies for cocos2d-x"
echo -n "Are you continue? (y/n) "
read answer
if echo "$answer" | grep -iq "^y" ;then
echo "It will take few minutes"
else
exit
fi
2015-01-14 14:22:08 +08:00
sudo apt-get update
# run 32bit applicatio: needed for lua relase mode as luajit has 32bit version
# https://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit
sudo dpkg --add-architecture i386
2020-10-24 10:37:38 +08:00
# DEPENDS='libc6:i386 libncurses5:i386 libstdc++6:i386'
2020-10-24 10:37:38 +08:00
DEPENDS=' libx11-dev'
DEPENDS+=' libxmu-dev'
DEPENDS+=' libglu1-mesa-dev'
DEPENDS+=' libgl2ps-dev'
DEPENDS+=' libxi-dev'
DEPENDS+=' libzip-dev'
DEPENDS+=' libpng-dev'
DEPENDS+=' libcurl4-gnutls-dev'
DEPENDS+=' libfontconfig1-dev'
DEPENDS+=' libsqlite3-dev'
2015-01-14 14:22:08 +08:00
DEPENDS+=' libglew-dev'
2014-02-13 10:08:03 +08:00
DEPENDS+=' libssl-dev'
2015-06-06 14:20:16 +08:00
DEPENDS+=' libgtk-3-dev'
DEPENDS+=' binutils'
DEPENDS+=' libbsd-dev'
2020-10-24 10:47:07 +08:00
sudo apt-get install --force-yes --yes $DEPENDS > /dev/null