!32877 [MS][LITE][parallel predoct]fix bug: cpp demo

Merge pull request !32877 from yefeng/284-fix_parallel_predict_cpp_demo_bug-master
This commit is contained in:
i-robot 2022-04-12 11:11:51 +00:00 committed by Gitee
commit 96a2cbc461
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +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
pthread
)

View File

@ -35,6 +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/include ${BASEPATH}/
cd ${BASEPATH}/build || exit
cmake ${BASEPATH}