You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
手机通过adb pair与安卓手机配对连接,完全按照《端测部署文档》克隆Paddle-Lite-Demo仓库并操作,在build.sh操作处出现报错make: *** No targets specified and no makefile found. Stop.,不知是什么原因。我的电脑为windows11。安装有Cmake、msys64-mingw64。
具体版本为:
cmake --version
cmake version 4.0.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-pc-mingw32
g++ --version
g++ (Rev3, Built by MSYS2 project) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
以下是build.sh文件内容
#!/bin/bash
#setting NDK_ROOT root
export NDK_ROOT=="D:/Python_Code/OCR/android-ndk-r28b"
echo "NDK_ROOT is ${NDK_ROOT}"
#configure
ARM_ABI=arm64-v8a
#ARM_ABI=armeabi-v7a
#ARM_TARGET_LANG=gcc
ARM_TARGET_LANG=clang
PADDLE_LITE_DIR="$(pwd)/../../../../../libs/android/cxx"
OPENCV_LITE_DIR="$(pwd)/../../../../../libs/android/opencv4.1.0"
if [ "x$1" != "x" ]; then
ARM_ABI=$1
fi
echo "ARM_TARGET_LANG is ${ARM_TARGET_LANG}"
echo "ARM_ABI is ${ARM_ABI}"
echo "PADDLE_LITE_DIR is ${PADDLE_LITE_DIR}"
echo "OPENCV_LITE_DIR is ${OPENCV_LITE_DIR}"
#build
if [ -d "$(pwd)/build" ]; then
rm -rf build
fi
mkdir build
#make clean
cd build
cmake -DANDROID_PLATFORM=android-21 -DPADDLE_LITE_DIR=${PADDLE_LITE_DIR} -DARM_ABI=${ARM_ABI} -DARM_TARGET_LANG=${ARM_TARGET_LANG} -DOPENCV_LITE_DIR=${OPENCV_LITE_DIR} -DNDK_ROOT=${NDK_ROOT} ..
make -j10
cd ..
echo "make successful!"
运行sh build.sh显示信息如下:
$ sh build.sh
NDK_ROOT is =D:/Python_Code/OCR/android-ndk-r28b
ARM_TARGET_LANG is clang
ARM_ABI is arm64-v8a
PADDLE_LITE_DIR is /d/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/cxx
OPENCV_LITE_DIR is /d/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/opencv4.1.0
-- Building for: Visual Studio 17 2022
-- The C compiler identification is MSVC 19.39.33523.0
-- The CXX compiler identification is MSVC 19.39.33523.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- TARGET ARM LANG: clang
-- TARGET ARCH ABI: arm64-v8a
-- PADDLE LITE DIR: D:/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/cxx
-- PADDLE LITE DIR: D:/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/opencv4.1.0
-- PaddleLite_LIBS is D:/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/cxx/libs/arm64-v8a/libpaddle_light_api_shared.so;D:/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/cxx/libs/arm64-v8a/libc++_shared.so
-- OPENCV_PATH: D:/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/../../../../../libs/android/opencv4.1.0/arm64-v8a
-- Configuring done (7.8s)
-- Generating done (0.0s)
-- Build files have been written to: D:/Python_Code/OCR/PaddleX-Lite-Deploy/semantic_segmentation/android/shell/cxx/semantic_segmentation/build
make: *** No targets specified and no makefile found. Stop.
make successful!
The text was updated successfully, but these errors were encountered:
手机通过adb pair与安卓手机配对连接,完全按照《端测部署文档》克隆Paddle-Lite-Demo仓库并操作,在build.sh操作处出现报错make: *** No targets specified and no makefile found. Stop.,不知是什么原因。我的电脑为windows11。安装有Cmake、msys64-mingw64。
具体版本为:
以下是build.sh文件内容
运行sh build.sh显示信息如下:
The text was updated successfully, but these errors were encountered: