2 # check build environment
5 if [ "${TARGET_OS}" != "windows-32" ] && [ "${TARGET_OS}" != "windows-64" ] \
6 && ["${TARGET_OS}" != "ubuntu-32" ] && ["${TARGET_OS}" != "ubuntu-64" ]
11 if [ "${TARGET_OS}" = "windows-32" ] || [ "${TARGET_OS}" = "windows-64" ]
13 # for Windows target (cross compiling)
15 # we should use cross compiler from mingw-x package
16 if [ "${TARGET_OS}" = "windows-32" ]
18 export PATH=/opt/mingw32/bin:$PATH
19 export CROSS_PREFIX=i686-w64-mingw32
21 export PATH=/opt/mingw64/bin:$PATH
22 export CROSS_PREFIX=x86_64-w64-mingw32
25 # correct pc's prefix since windows install script is not run
27 cd ${ROOTDIR}/lib/pkgconfig
28 ${ROOTDIR}/correct_pc_prefix.sh
31 # mingw-x doesn't have zlib, so we use our own.
32 export EXTRA_CFLAGS=-I${ROOTDIR}/include
33 export EXTRA_LDFLAGS=-L${ROOTDIR}/lib
37 REQUIRED_PKG="ant python zlib1g-dev libglib2.0-dev libsdl1.2-dev \
38 libasound2-dev libx11-dev libv4l-dev libxcomposite-dev \
39 libpixman-1-dev libcurl4-gnutls-dev libcap-dev libattr1-dev"
41 echo "Checking required packages before compling!!"
42 for pkg in ${REQUIRED_PKG}
44 dpkg -s ${pkg} > /dev/null
47 echo "checking ${pkg} ... OK"
49 echo "checking ${pkg} ... failure"
65 . $SRCDIR/package/build.common
72 . $SRCDIR/package/build.common