提交 5c13146d 编写于 作者: M Megvii Engine Team

refactor(android/dlopen): sync megvii3 and add user prompts

GitOrigin-RevId: 0d6fc7a88c4479ee6bc2230723da02fcec487132
上级 97178868
...@@ -1492,3 +1492,10 @@ endif() ...@@ -1492,3 +1492,10 @@ endif()
if(MGE_WITH_LITE) if(MGE_WITH_LITE)
add_subdirectory(lite) add_subdirectory(lite)
endif() endif()
if(ANDROID)
message(
WARNING
"MegEngine project use thread_local, if you want to deploy MegEngine at dlopen/dlclose scene, please build with c++_shared by -DANDROID_STL=c++_shared, detail at https://github.com/android-ndk/ndk/issues/789 for example: EXTRA_CMAKE_ARGS=\" -DANDROID_STL=c++_shared\" ./scripts/cmake-build/cross_build_android_arm_inference.sh "
)
endif()
...@@ -30,6 +30,7 @@ cc_megvii_binary( ...@@ -30,6 +30,7 @@ cc_megvii_binary(
]), ]),
internal_deps = [":lar_object"], internal_deps = [":lar_object"],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
# is_linking_system_dynamic_library = True,
) )
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册