| | |
| | | |
| | | LYFTP_SRC=ftp://master.iot-yun.club/src/ |
| | | |
| | | CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | |
| | | function msg_banner() |
| | | { |
| | |
| | | PACK_SUFIX=tar.bz2 |
| | | |
| | | if [ -f ${PREFIX_PATH}/bin/zbarcam ] ; then |
| | | echo "$SRC_NAME already compile and installed" |
| | | msg_banner "$SRC_NAME already compile and installed" |
| | | return 0; |
| | | fi |
| | | |
| | |
| | | |
| | | autoreconf --install |
| | | |
| | | sed -i -e "s|-Wno-parentheses -Werror|-Wno-parentheses|g" configure |
| | | |
| | | CFLAGS="-DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16" \ |
| | | ./configure --host=arm-linux --enable-static --enable-shared --prefix=$PREFIX_PATH \ |
| | | --without-gtk --without-python --without-qt --without-x --without-java \ |
| | | --with-imagemagick=${PREFIX_PATH}/ --without-graphicsmagick \ |
| | | MAGICK_CFLAGS=-I${PREFIX_PATH}//include/ImageMagick-6 \ |
| | | MAGICK_LIBS="-L${PREFIX_PATH}/lib -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lm -lz -L`pwd`/zbar/.libs/ -lzbar " |
| | | MAGICK_LIBS="-L${PREFIX_PATH}/lib -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lm -lz -L`pwd`/zbar/.libs/ -lzbar" |
| | | #LIBS="-liconv" |
| | | |
| | | sed -i -e "s|^LIBS = -lpthread.*|LIBS = -lpthread -liconv|g" Makefile |
| | | |
| | | mkdir -p ./doc/man/ |
| | | touch ./doc/man/zbarimg.1 |
| | |
| | | cd - |
| | | } |
| | | |
| | | cd ../zlib |
| | | cd ../iconv |
| | | ./build.sh |
| | | cd - |
| | | |
| | | cd ../zlib |
| | | ./build.sh |
| | | cd - |
| | | |
| | | cd ../imageMagick |
| | | ./build.sh |