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

how to build macOS with corml on M1 arm? #1584

Closed
lucasjinreal opened this issue Mar 14, 2022 · 11 comments
Closed

how to build macOS with corml on M1 arm? #1584

lucasjinreal opened this issue Mar 14, 2022 · 11 comments

Comments

@lucasjinreal
Copy link

how to build macOS with corml on M1 arm?

@nicklezheng
Copy link

I have problems while build using scripts\build_macos.sh on M1 macbook pro:

scripts/build_macos/openvinoInstallShared/deployment_tools/inference_engine/lib**/intel64/**plugins.xml: No such file or directory

"intel64" is for intel chip mac.
I found "arm64" under "openvinoInstallShared/deployment_tools/inference_engine/lib/"

I think we should modfiy build_macos.sh to distinguish intel64 or arm64.

By the way, i wonder what difference between "build_macos.sh" and "build_macos_native.sh" under scripts dir

@lucasjinreal
Copy link
Author

I know there is a build_macos_aarch64.sh to build on M1, but the code can not pass building #1589

@nicklezheng
Copy link

I know there is a build_macos_aarch64.sh to build on M1, but the code can not pass building #1589

thanks for reminding, i can build with 'build_macos_aarch64.sh' successfully on my 14-inch M1 Macbook pro.

@lucasjinreal
Copy link
Author

@nicklezheng did u met the problem I mentioned above?

@nicklezheng
Copy link

@nicklezheng did u met the problem I mentioned above?

I have met similar problem like your problem mentioned in #1589 while doing cross compile
see this: #1588 multiple definition between c code and assembly code

I suggest you remove the conflicting code in gemm_function.cc

@lucasjinreal
Copy link
Author

@nicklezheng what do u mean cross compile? I just compile on arm M1 Mac native get into that error. Editing the code seems not a good way to do, the tnn author should pay some attention to this issue unless they have a more proper way to build on arm m1 Mac

@nicklezheng
Copy link

what do u mean cross compile? I just compile on arm M1 Mac native get into that error. Editing the code seems not a good way to do, the tnn author should pay some attention to this issue unless they have a more proper way to build on arm m1 Mac

I cross compile for some ARM chip embedded linux system.
yeah, I agree with you that editing the code is not perfect way.

@nicklezheng
Copy link

I meet same problem mentioned in #1589 after update macOS from 12.1 to 12.2

@ruichaowang
Copy link

Hi,
Did you successfuly compiled the TNN on M1 mac?
I am facing the same issues.

and by the way.
where did you get this "build_macos_aarch64.sh" file

Thanks!

@lucasjinreal
Copy link
Author

@ruichaowang I switched to mnn, mnn is great.

@ruichaowang
Copy link

@ruichaowang I switched to mnn, mnn is great.

Okay, I will have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants