mirror of https://github.com/axmolengine/axmol.git
Updated make-all-linux-probject.sh.
Checked whether packages were installed.
This commit is contained in:
parent
1d7650767b
commit
db77c2079e
|
@ -15,41 +15,28 @@ check_make_result()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
DIR_GLEW170=$COCOS2DX20_TRUNK/cocos2dx/platform/third_party/linux/glew-1.7.0/
|
DEPENDS='libx11-dev'
|
||||||
if ! test -d $DIR_GLEW170/glew-1.7.0/; then
|
DEPENDS+=' libxmu-dev'
|
||||||
echo -e $TXTCOLOR_GREEN"it is the first time you run this linux project, some depends lib should be install"$TXTCOLOR_DEFAULT;
|
DEPENDS+=' libglu1-mesa-dev'
|
||||||
DEPENDS='libx11-dev'
|
DEPENDS+=' libgl2ps-dev'
|
||||||
DEPENDS+=' libxmu-dev'
|
DEPENDS+=' libxi-dev'
|
||||||
DEPENDS+=' libglu1-mesa-dev'
|
DEPENDS+=' libglfw-dev'
|
||||||
DEPENDS+=' libgl2ps-dev'
|
DEPENDS+=' g++'
|
||||||
DEPENDS+=' libxi-dev'
|
DEPENDS+=' libzip-dev'
|
||||||
DEPENDS+=' libglfw-dev'
|
DEPENDS+=' libcurl4-gnutls-dev'
|
||||||
DEPENDS+=' g++'
|
DEPENDS+=' libfontconfig1-dev'
|
||||||
DEPENDS+=' libzip-dev'
|
DEPENDS+=' libsqlite3-dev'
|
||||||
DEPENDS+=' libcurl4-gnutls-dev'
|
DEPENDS+=' libglew-dev'
|
||||||
DEPENDS+=' libfontconfig1-dev'
|
|
||||||
DEPENDS+=' libsqlite3-dev'
|
|
||||||
DEPENDS+=' glew-dev'
|
|
||||||
|
|
||||||
for i in $DEPENDS; do
|
for i in $DEPENDS; do
|
||||||
echo -e $TXTCOLOR_GREEN"sudo apt-get install $i, please enter your password:"$TXTCOLOR_DEFAULT
|
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $i | grep "install ok installed")
|
||||||
sudo apt-get install $i
|
echo Checking for $i: $PKG_OK
|
||||||
done
|
if [ "" == "$PKG_OK" ]; then
|
||||||
|
echo -e $TXTCOLOR_GREEN"No $i. Setting up $i, please enter your password:"$TXTCOLOR_DEFAULT
|
||||||
# DIR_GLEW170=$COCOS2DX20_TRUNK/cocos2dx/platform/third_party/linux/glew-1.7.0/
|
sudo apt-get --force-yes --yes install $i
|
||||||
if ! test -d $DIR_GLEW170/glew-1.7.0/; then
|
|
||||||
cd $DIR_GLEW170
|
|
||||||
echo -e $TXTCOLOR_GREEN"building glew-1.7.0 ..."$TXTCOLOR_DEFAULT;
|
|
||||||
tar -zxf glew-1.7.0.tgz
|
|
||||||
make -C ./glew-1.7.0/
|
|
||||||
cd -
|
|
||||||
fi
|
fi
|
||||||
fi
|
done
|
||||||
|
|
||||||
#OUTPUT_DEBUG=$COCOS2DX20_TRUNK/lib/linux/Debug/
|
|
||||||
#if ! test -d $OUTPUT_DEBUG; then
|
|
||||||
# mkdir $OUTPUT_DEBUG -p
|
|
||||||
#fi
|
|
||||||
mkdir -p $OUTPUT_DEBUG
|
mkdir -p $OUTPUT_DEBUG
|
||||||
mkdir -p $OUTPUT_RELEASE
|
mkdir -p $OUTPUT_RELEASE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue