未验证 提交 591e09a5 编写于 作者: H huzhiqiang 提交者: GitHub

[BUG FIX] Fix the issue that paddle-lite python lib can not inference on mac env

上级 a9baf23d
...@@ -47,7 +47,7 @@ if '${WITH_MKL}' == 'ON': ...@@ -47,7 +47,7 @@ if '${WITH_MKL}' == 'ON':
PACKAGE_DATA['paddlelite.libs'] += ['libmklml.dylib', 'libiomp5.dylib'] PACKAGE_DATA['paddlelite.libs'] += ['libmklml.dylib', 'libiomp5.dylib']
# link lite.so to paddlelite.libs # link lite.so to paddlelite.libs
COMMAND = "install_name_tool -id \"@loader_path/libs/\" ${PADDLE_BINARY_DIR}\ COMMAND = "install_name_tool -add_rpath \"@loader_path/libs/\" ${PADDLE_BINARY_DIR}\
/inference_lite_lib/python/install/lite/lite.so" /inference_lite_lib/python/install/lite/lite.so"
if os.system(COMMAND) != 0: if os.system(COMMAND) != 0:
raise Exception("patch third_party libs failed, command: %s" % COMMAND) raise Exception("patch third_party libs failed, command: %s" % COMMAND)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册