Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile on M1 Chip #391

Open
shersoni610 opened this issue Jul 3, 2023 · 5 comments
Open

Compile on M1 Chip #391

shersoni610 opened this issue Jul 3, 2023 · 5 comments
Labels

Comments

@shersoni610
Copy link

Hello,

On Apple M1 Chip, I get the following error:

ld: warning: ignoring file /Users/Projects/CompVis/LiteAi/lite.ai.toolkit/lib/macos/libopencv_videoio.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
"_OrtGetApiBase", referenced from:
___cxx_global_var_init.8 in age_googlenet.cpp.o
___cxx_global_var_init.19 in backgroundmattingv2.cpp.o
___cxx_global_var_init.18 in backgroundmattingv2_dyn.cpp.o
___cxx_global_var_init.8 in cava_combined_face.cpp.o
___cxx_global_var_init.8 in cava_ghost_arcface.cpp.o
___cxx_global_var_init.8 in center_loss_face.cpp.o
___cxx_global_var_init.8 in colorizer.cpp.o
...

@Leo-WL
Copy link

Leo-WL commented Jul 4, 2023

same error here, please help
"ld: error: undefined symbol: OrtGetApiBase
referenced by onnxruntime_cxx_api.h:114"

@wangzijian1010
Copy link

same error plz help!!!

@naonao-cola
Copy link

同样遇到这个问题了,mac 系统说的应该是macOS-X86_64,不是macOS-arm64。暂时无法解决。只能看看源码怎么写的了

@xp19870106
Copy link

U r linking to a x86 architecture library, just change it to an arm64 architecture library, it will be ok

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants