diff --git a/thirdparty/aubio/HPKBUILD b/thirdparty/aubio/HPKBUILD index 2a25709dae2fe131146f27ff2ea470c32f1359db..6d054107c31c4a38f365ee2e446f46c26f07b680 100644 --- a/thirdparty/aubio/HPKBUILD +++ b/thirdparty/aubio/HPKBUILD @@ -23,7 +23,7 @@ archs=("armeabi-v7a" "arm64-v8a") license=("GPL-3.0-only") depends=() makedepends=() - +source="https://gitee.com/lycium_pkg_mirror/$pkgname.git" commitid=152d6819b360c2e7b379ee3f373d444ab3df0895 builddir=${pkgname}-${commitid} packagename= @@ -37,10 +37,11 @@ cc= ar= source envset.sh - +#编译前要建立python的软链接,sudo ln -s /usr/bin/python3 /usr/bin/python prepare() { if [ $clonesrcflag == true ]; then - git clone https://github.com/$pkgname/$pkgname.git $builddir > $publicbuildlog 2>&1 + mkdir -p $builddir + git clone -b $pkgver $source $builddir > $publicbuildlog 2>&1 if [ $? -ne 0 ]; then return -1 fi diff --git a/thirdparty/aubio/HPKCHECK b/thirdparty/aubio/HPKCHECK index 9f04888045bd591897eb5aaa54eaebf171faaa11..605404952e6b3e08d4381bf823fd8508c0210f02 100644 --- a/thirdparty/aubio/HPKCHECK +++ b/thirdparty/aubio/HPKCHECK @@ -16,7 +16,7 @@ source HPKBUILD > /dev/null 2>&1 logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log - +export LD_LIBRARY_PATH=/data/tpc_c_cplusplus/thirdparty/${pkgname}/${builddir}-${ARCH}-build/build/dist/usr/local/lib64/:$LD_LIBRARY_PATH openharmonycheck() { res=0 cd $builddir-${ARCH}-build/build/examples