From dbfc2d7ddeb271a17cddb39c5640082d0c9fca5a Mon Sep 17 00:00:00 2001 From: yefeng Date: Fri, 8 Jul 2022 09:20:15 +0800 Subject: [PATCH] fix demo --- .../CMakeLists.txt | 2 +- .../build.bat | 26 ------------------- .../quick_start_server_inference_cpp/build.sh | 2 +- 3 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 mindspore/lite/examples/quick_start_server_inference_cpp/build.bat diff --git a/mindspore/lite/examples/quick_start_server_inference_cpp/CMakeLists.txt b/mindspore/lite/examples/quick_start_server_inference_cpp/CMakeLists.txt index b3bf7d538b2..2bbb85f2146 100644 --- a/mindspore/lite/examples/quick_start_server_inference_cpp/CMakeLists.txt +++ b/mindspore/lite/examples/quick_start_server_inference_cpp/CMakeLists.txt @@ -17,7 +17,7 @@ add_executable(mindspore_quick_start_cpp ${QUICK_START_CXX}) target_link_libraries( mindspore_quick_start_cpp -Wl,--whole-archive mindspore-lite -Wl,--no-whole-archive - ${CMAKE_CURRENT_SOURCE_DIR}/lib/libglog.so.0 + ${CMAKE_CURRENT_SOURCE_DIR}/lib/libmindspore_glog.so.0 pthread ) diff --git a/mindspore/lite/examples/quick_start_server_inference_cpp/build.bat b/mindspore/lite/examples/quick_start_server_inference_cpp/build.bat deleted file mode 100644 index ef991ec43e3..00000000000 --- a/mindspore/lite/examples/quick_start_server_inference_cpp/build.bat +++ /dev/null @@ -1,26 +0,0 @@ -@rem Copyright 2022 Huawei Technologies Co., Ltd -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem http://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem ============================================================================ -@echo off -@title mindspore_lite_quick_start_cpp_demo_build - -SET BASEPATH=%CD% - -IF NOT EXIST "%BASEPATH%/build" ( - md build -) - -cd %BASEPATH%/build -cmake -G "CodeBlocks - MinGW Makefiles" %BASEPATH% -cmake --build . \ No newline at end of file diff --git a/mindspore/lite/examples/quick_start_server_inference_cpp/build.sh b/mindspore/lite/examples/quick_start_server_inference_cpp/build.sh index bfd5917763f..1962a087227 100644 --- a/mindspore/lite/examples/quick_start_server_inference_cpp/build.sh +++ b/mindspore/lite/examples/quick_start_server_inference_cpp/build.sh @@ -35,7 +35,7 @@ if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/libmindspore-lite.a ${BASEPATH}/lib -cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/third_party/glog/libglog.so.0 ${BASEPATH}/lib +cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/third_party/glog/* ${BASEPATH}/lib cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/include ${BASEPATH}/ cd ${BASEPATH}/build || exit cmake ${BASEPATH}