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 run caffe in the M1 mac? I meet a problem. #7019
Comments
same problem, the only solution for me now is using docker |
@klrc can you give reference on how you solved with docker? |
应该是库没链接对,我试过M1可以跑 |
solved now, pls make sure to link with your arm64 python library
hope this helps you can also check this: NOTE: pycaffe cannot run through Rosetta (e.g. anaconda) because of x86_64 arch |
Can you show me your whole cmakecache.txt? I modified it according to your method, but it still doesn't work. thank you |
这是来自QQ邮箱的假期自动回复邮件。 谢谢,您的邮件已收到,尽快给您回复。
|
您好,邮件已收到,谢谢!
|
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
您好请问解决了吗 |
I got a problem, an the compile is terminated! the outputs are:` [ 75%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/db_lmdb.cpp.o ` how can i solve it? |
I use the homebrew in M1 mac to install the lib such as boost, hdm5. After I change the cmakelist and cmake successed , I try to run make, but I meet problem below:
Undefined symbols for architecture arm64:
"boost::python::detail::init_module(char const*, void (*)())", referenced from:
_init_caffe in _caffe.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/_caffe.dylib] Error 1
make[1]: *** [python/CMakeFiles/pycaffe.dir/all] Error 2
make: *** [all] Error 2
when i install boost by homebrew, it look like boost supoort arm64, I try to find some solution or some problom just like I meet, but I thought I was the first one who try to use this simple solution to run caffe in the M1 mac which is arm core inside rather than x86. I hope someone can give me some help to make it. Thanks!
This is my Cmakelist file.
CMakeLists.txt
The text was updated successfully, but these errors were encountered: