From 3b4c6499f5fdd4e53efd13af9ebef427632493e7 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 11 Jun 2026 23:27:55 +0800
Subject: [PATCH] Update cross compiler

---
 opencv/build.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opencv/build.sh b/opencv/build.sh
index 64af066..7710594 100755
--- a/opencv/build.sh
+++ b/opencv/build.sh
@@ -6,13 +6,13 @@
 PACK_SUFIX=zip
 
 # LingYun source code FTP server
-LY_FTP=http://main.iot-yun.club:2211/src/
+LY_FTP=http://master.weike-iot.com:8021/src/
 
 # library download URL address
 LIB_URL=$LY_FTP
 
 # Cross compiler for cross compile on Linux server
-CROSS_COMPILE=arm-linux-gnueabihf-
+CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
 
 # compile jobs
 JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
@@ -106,7 +106,7 @@
 {
 	BUILD_ARCH=$(uname -m)
 	if [[ $BUILD_ARCH =~ "arm" ]] ; then
-		pr_error "ERROR: local($BUILD_ARCH) compile $LIB_NAME not support"
+		pr_error "ERROR: local($BUILD_ARCH) compile $LIB_NAME not support for it's too slow"
 		exit 0;
 	fi
 
@@ -175,7 +175,7 @@
 		-DINSTALL_PYTHON_EXAMPLES=OFF -DBUILD_EXAMPLES=OFF -DWITH_FFMPEG=OFF -DHAVE_FFMPEG=OFF \
 		-DBUILD_opencv_js=OFF ../
 
-	make && make install
+	make -j ${JOBS} && make install
 	check_result "ERROR: compile ${LIB_NAME} failure"
 }
 

--
Gitblit v1.10.0