3rdparty/appweb/build.sh
@@ -10,11 +10,15 @@ PRJ_PATH=`pwd` PREFIX_PATH=`pwd`/appweb TFTP_PATH=/tftp mkdir -p $PREFIX_PATH/{bin,modules} 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- TARBALL=appweb_cortexa5.tar.bz2 function msg_banner() { @@ -64,6 +68,7 @@ PACK_SUFIX=tar.bz2 if [ -f ${PREFIX_PATH}/modules/libphp5.so ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi @@ -114,6 +119,7 @@ PACK_SUFIX=-0-src.tgz if [ -f ${PREFIX_PATH}/bin/appweb ] ; then msg_banner "$SRC_NAME already compiled" return 0; fi @@ -147,9 +153,14 @@ function install_appweb() { msg_banner "Start install webserver appweb " cd ${PRJ_PATH} if [ -f ${TARBALL} ] ; then msg_banner "$SRC_NAME already installed" return 0; fi msg_banner "Start install webserver appweb " # install web page rm -rf $PREFIX_PATH/web @@ -172,8 +183,11 @@ chmod 755 run.sh mv run.sh $PREFIX_PATH/ tar -czf appweb_cortexa8.tar.gz `basename $PREFIX_PATH` ls -l appweb_cortexa8.tar.gz tar -cjf ${TARBALL} `basename $PREFIX_PATH` if [ -d $TFTP_PATH -a -w $TFTP_PATH ] ; then cp ${TARBALL} $TFTP_PATH fi } 3rdparty/busybox/build.sh
@@ -6,29 +6,70 @@ 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- SRC_NAME=busybox-1.31.0 PACK_SUFIX=tar.bz2 JOBS=`cat /proc/cpuinfo | grep processor | wc -l` if [ ! -d $SRC_NAME ] ; then if [ ! -f $SRC_NAME.${PACK_SUFIX} ] ; then wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX} function msg_banner() { echo "" echo "+-----------------------------------------------------------------------" echo "| $1 " echo "+-----------------------------------------------------------------------" echo "" } function check_result() { if [ $? != 0 ] ; then echo "" echo "+-----------------------------------------------------------------------" echo "| $1 " echo "+-----------------------------------------------------------------------" echo "" exit ; fi } function compile_busybox() { SRC_NAME=busybox-1.31.0 PACK_SUFIX=tar.bz2 if [ -f $SRC_NAME/busybox ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi msg_banner "start download and compile $SRC_NAME " if [ ! -d $SRC_NAME ] ; then if [ ! -f $SRC_NAME.${PACK_SUFIX} ] ; then wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX} check_result "ERROR: download ${SRC_NAME} failure" fi tar -xjf $SRC_NAME.${PACK_SUFIX} fi tar -xjf $SRC_NAME.${PACK_SUFIX} fi cp config/${SRC_NAME}.config $SRC_NAME/.config cp config/${SRC_NAME}.config $SRC_NAME/.config cd $SRC_NAME cd $SRC_NAME sed -i "s|^CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX=\"${CROSSTOOL}\"|g" .config sed -i "s|^CONFIG_PREFIX.*|CONFIG_PREFIX=\"$ROOTFS_PATH\"|g" .config sed -i "s|^CONFIG_CROSS_COMPILER_PREFIX.*|CONFIG_CROSS_COMPILER_PREFIX=\"${CROSSTOOL}\"|g" .config sed -i "s|^CONFIG_PREFIX.*|CONFIG_PREFIX=\"$ROOTFS_PATH\"|g" .config make #make uninstall && sudo make install } make #make uninstall && sudo make install compile_busybox 3rdparty/curl/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.bz2 if [ -f ${PREFIX_PATH}/bin/curl ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/dhcpd/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/${IMG_NAME} ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/dnsmasq/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -60,6 +60,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/dnsmasq ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/dropbear/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -71,6 +71,7 @@ PACK_SUFIX=tar.bz2 if [ -f ${PREFIX_PATH}/bin/dropbear ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/ethtool/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -60,6 +60,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/ethtool ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/fbgrab/build.sh
@@ -12,7 +12,7 @@ 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() { @@ -62,6 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/bin/${IMG_NAME} ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/ffmpeg/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ IMG_NAME=ffmpeg if [ -f ${PREFIX_PATH}/${IMG_NAME} ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/file/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/file ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/iconv/build.sh
@@ -10,7 +10,7 @@ PROJ_PATH=`pwd`/../ INST_PATH=${PROJ_PATH}/install CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- LYFTP_SRC=ftp://master.iot-yun.club/src/ @@ -62,7 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${INST_PATH}/lib/libiconv.so ] ; then msg_banner "Already cross compile $SRC_NAME " msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/imageMagick/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f $PREFIX_PATH/lib/libMagickCore-6.Q16.a ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/iptables/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ IMG_NAME=iptables if [ -f ${PREFIX_PATH}/${IMG_NAME} ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/libconfig/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/lib/libconfig.so ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/libevent/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/lib/libevent.so ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/libpng/build.sh
@@ -12,7 +12,7 @@ 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() { @@ -62,6 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/lib/libpng.a ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/libressl/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -60,6 +60,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/lib/libcrypto.a ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/lrzsz/build.sh
@@ -12,7 +12,7 @@ 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() { @@ -62,6 +62,7 @@ IMG_NAME=sz if [ -f ${PRJ_PATH}/${IMG_NAME} ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/mosquitto/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -62,6 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/bin/mosquitto ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/ntpdate/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/bin/ntpdate ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/opencv/build.sh
@@ -6,7 +6,7 @@ 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- TOOLCHAIN=cortexa7.toolchain.cmake @@ -41,7 +41,7 @@ if [ -f ${PREFIX_PATH}/lib/libopencv_core.so ] ; then msg_banner "$SRC_NAME already compile and installed" # return 0; return 0; fi msg_banner "Start cross compile $SRC_NAME " 3rdparty/openssh/build.sh
@@ -13,7 +13,7 @@ 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() { @@ -72,6 +72,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/sbin/sshd ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/openssh/openssl/build.sh
@@ -11,7 +11,7 @@ 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() { 3rdparty/openssh/zlib/build.sh
@@ -11,7 +11,7 @@ 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() { 3rdparty/openssl/build.sh
@@ -11,7 +11,7 @@ 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() { 3rdparty/pppd/build.sh
@@ -11,7 +11,9 @@ 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- SYSROOT=`${CROSSTOOL}gcc -print-sysroot` function msg_banner() { @@ -60,6 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/pppd ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi @@ -78,6 +81,7 @@ patch -p1 < ../patch/${SRC_NAME}.patch sed -i -e "s|.*CC = .*|CC=${CROSSTOOL}gcc|g" pppd/Makefile.linux sed -i -e "s|^OPENSSL_INCLUDE_DIR=.*|OPENSSL_INCLUDE_DIR=${SYSROOT}/usr/include/openssl|g" pppd/Makefile.linux sed -i -e "s|.*CC = .*|CC=${CROSSTOOL}gcc|g" chat/Makefile.linux cd pppd 3rdparty/pppd/patch/ppp-2.4.7.patch
@@ -1,6 +1,6 @@ diff -Nuar ppp-2.4.7/chat/Makefile.linux ppp-2.4.7-fixed/chat/Makefile.linux --- ppp-2.4.7/chat/Makefile.linux 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/chat/Makefile.linux 2019-08-02 12:47:14.580689353 +0800 +++ ppp-2.4.7-fixed/chat/Makefile.linux 2019-08-11 16:34:20.884222551 +0800 @@ -21,7 +21,7 @@ $(CC) -o chat chat.o @@ -12,7 +12,7 @@ mkdir -p $(BINDIR) $(MANDIR) diff -Nuar ppp-2.4.7/pppd/auth.c ppp-2.4.7-fixed/pppd/auth.c --- ppp-2.4.7/pppd/auth.c 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/pppd/auth.c 2019-08-02 12:48:41.600691022 +0800 +++ ppp-2.4.7-fixed/pppd/auth.c 2019-08-11 16:34:20.884222551 +0800 @@ -1322,7 +1322,8 @@ int hadchap; @@ -25,32 +25,114 @@ (hadchap = have_chap_secret(user, (explicit_remote? remote_name: diff -Nuar ppp-2.4.7/pppd/Makefile.linux ppp-2.4.7-fixed/pppd/Makefile.linux --- ppp-2.4.7/pppd/Makefile.linux 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/pppd/Makefile.linux 2019-08-02 12:48:18.064690571 +0800 @@ -43,12 +43,12 @@ +++ ppp-2.4.7-fixed/pppd/Makefile.linux 2019-08-11 16:35:13.888223567 +0800 @@ -33,12 +33,12 @@ # CC = gcc # COPTS = -O2 -pipe -Wall -g -LIBS = +LIBS = -lpthread -# Uncomment the next 2 lines to include support for Microsoft's +# Uncomment the next line to include support for Microsoft's # MS-CHAP authentication protocol. Also, edit plugins/radius/Makefile.linux. CHAPMS=y -USE_CRYPT=y +#USE_CRYPT=y # Don't use MSLANMAN unless you really know what you're doing. #MSLANMAN=y # Uncomment the next line to include support for MPPE. CHAPMS (above) must # also be enabled. Also, edit plugins/radius/Makefile.linux. -MPPE=y +#MPPE=y @@ -79,6 +79,7 @@ MAXOCTETS=y # Uncomment the next line to include support for PPP packet filtering. # This requires that the libpcap library and headers be installed # and that the kernel driver support PPP packet filtering. -FILTER=y +#FILTER=y INCLUDE_DIRS= -I../include +OPENSSL_INCLUDE_DIR= /usr/include/openssl # Uncomment the next line to enable multilink PPP (enabled by default) # Linux distributions: Please leave multilink ENABLED in your builds @@ -62,10 +62,10 @@ COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP HAS_SHADOW=y #USE_PAM=y -HAVE_INET6=y +#HAVE_INET6=y @@ -132,7 +133,8 @@ # Enable plugins -PLUGIN=y +#PLUGIN=y ifdef NEEDDES ifndef USE_CRYPT -LIBS += -ldes $(LIBS) +CFLAGS += -I$(OPENSSL_INCLUDE_DIR) +LIBS += -lcrypto -lpthread else CFLAGS += -DUSE_CRYPT=1 endif diff -Nuar ppp-2.4.7/pppd/plugins/rp-pppoe/pppoe.h ppp-2.4.7-fixed/pppd/plugins/rp-pppoe/pppoe.h --- ppp-2.4.7/pppd/plugins/rp-pppoe/pppoe.h 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/pppd/plugins/rp-pppoe/pppoe.h 2019-08-11 16:34:20.884222551 +0800 @@ -47,6 +47,8 @@ #include <sys/socket.h> #endif # Enable Microsoft proprietary Callback Control Protocol #CBCP=y +#include <netinet/in.h> + /* Ugly header files on some Linux boxes... */ #if defined(HAVE_LINUX_IF_H) #include <linux/if.h> @@ -84,8 +86,6 @@ #include <linux/if_ether.h> #endif -#include <netinet/in.h> - #ifdef HAVE_NETINET_IF_ETHER_H #include <sys/types.h> diff -Nuar ppp-2.4.7/pppd/pppcrypt.c ppp-2.4.7-fixed/pppd/pppcrypt.c --- ppp-2.4.7/pppd/pppcrypt.c 2014-08-09 20:31:39.000000000 +0800 +++ ppp-2.4.7-fixed/pppd/pppcrypt.c 2019-08-11 16:34:20.888222551 +0800 @@ -64,7 +64,7 @@ des_key[7] = Get7Bits(key, 49); #ifndef USE_CRYPT - des_set_odd_parity((des_cblock *)des_key); + DES_set_odd_parity((DES_cblock *)des_key); #endif } @@ -158,25 +158,25 @@ } #else /* USE_CRYPT */ -static des_key_schedule key_schedule; +static DES_key_schedule key_schedule; bool DesSetkey(key) u_char *key; { - des_cblock des_key; + DES_cblock des_key; MakeKey(key, des_key); - des_set_key(&des_key, key_schedule); + DES_set_key(&des_key, &key_schedule); return (1); } bool -DesEncrypt(clear, key, cipher) +DesEncrypt(clear, cipher) u_char *clear; /* IN 8 octets */ u_char *cipher; /* OUT 8 octets */ { - des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher, - key_schedule, 1); + DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher, + &key_schedule, 1); return (1); } @@ -185,8 +185,8 @@ u_char *cipher; /* IN 8 octets */ u_char *clear; /* OUT 8 octets */ { - des_ecb_encrypt((des_cblock *)cipher, (des_cblock *)clear, - key_schedule, 0); + DES_ecb_encrypt((DES_cblock *)cipher, (DES_cblock *)clear, + &key_schedule, 0); return (1); } 3rdparty/qt/build_QT5.sh
@@ -20,7 +20,7 @@ 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() @@ -53,7 +53,7 @@ #rm -rf ${QT_INST_PATH}/lib/libQt5Gui.so if [ -f ${QT_INST_PATH}/lib/libQt5Gui.so ] ; then msg_banner "Already cross compile $SRC_NAME " msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/qt/tslib/build.sh
@@ -10,7 +10,7 @@ PROJ_PATH=`pwd`/.. INST_PATH=${PROJ_PATH}/../install CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- LYFTP_SRC=ftp://master.iot-yun.club/src/ function msg_banner() 3rdparty/sqlite/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/bin/sqlite3 ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/stunnel/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -62,6 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/bin/stunnel ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/tree/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -60,6 +60,7 @@ PACK_SUFIX=tgz if [ -f ${PREFIX_PATH}/tree ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/vsftpd/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -62,7 +62,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/bin/vsftpd ] ; then echo "$SRC_NAME already compile and installed" msg_banner "$SRC_NAME already compile and installed" return 0; fi 3rdparty/zbar/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -62,7 +62,7 @@ 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 @@ -83,12 +83,17 @@ 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 @@ -98,10 +103,13 @@ cd - } cd ../zlib cd ../iconv ./build.sh cd - cd ../zlib ./build.sh cd - cd ../imageMagick ./build.sh 3rdparty/zlib/build.sh
@@ -11,7 +11,7 @@ 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() { @@ -61,6 +61,7 @@ PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}/lib/libz.a ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi