Ver código fonte

Exit on error when building (#81)

Fangjun Kuang 2 anos atrás
pai
commit
3927c01b2a

+ 6 - 1
build-aarch64-linux-gnu.sh

@@ -8,7 +8,7 @@ if ! command -v aarch64-linux-gnu-gcc  &> /dev/null; then
   exit 1
 fi
 
-set -x
+set -ex
 
 dir=build-aarch64-linux-gnu
 mkdir -p $dir
@@ -19,6 +19,11 @@ if [ ! -f alsa-lib/src/.libs/libasound.so ]; then
   if [ ! -d alsa-lib ]; then
     git clone --depth 1 https://github.com/alsa-project/alsa-lib
   fi
+  # If it shows:
+  #  ./gitcompile: line 79: libtoolize: command not found
+  # Please use:
+  #  sudo apt-get install libtool m4 automake
+  #
   pushd alsa-lib
   CC=aarch64-linux-gnu-gcc ./gitcompile --host=aarch64-linux-gnu
   popd

+ 1 - 1
build-android-arm64-v8a-with-vulkan.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -e
+set -ex
 
 # First, we assume you have installed vulkan by following
 # windows: https://vulkan.lunarg.com/doc/sdk/latest/windows/getting_started.html

+ 1 - 1
build-android-arm64-v8a.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -e
+set -ex
 
 dir=build-android-arm64-v8a
 

+ 1 - 1
build-android-armv7-eabi.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -x
+set -ex
 
 dir=build-android-armv7-eabi
 

+ 1 - 1
build-android-x86-64.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -x
+set -ex
 
 # see https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-android