-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Mac 10.12.1 Sierra Xcode 8.1 cmake error (1).not Found vecLib (2).ImportError: No module named numpy (3).Undefined symbols for architecture x86_64 cv::imread(std::__1::basic_string (4) make runtest. Aborted at (unix time) using GNU date #4926
Comments
I have update my xcode to 8.1 and this problem also has been solved.
I installed the python, opencv and numpy via anaconda, and I can import numpy in python.
|
finally, I found the failure reason.
But I modified the FindNumpy.cmake, adding
It shows So I
wtf... |
Record
continue...
|
😔...step by step
or you can modify the CMakeLists.txt
make all
the solution at this: |
I modified the caffe/Makefile file by adding
then The second false trial is to uncomment this line
It's useless. Because conda didn't install opencv on expected way. Finally, make it right. Then, everything goes well. |
make all...
The solution is at #1993 This is a result of the logging library (glog) that shows this when a failure happens.[Quote] |
I cannot find the reason above, so I use make instead of cmake.
That's Because I install boost by anaconda as I mentioned before,
I use the first method, and it goes well for make all and make test
Then I reinstall the boost by homebrew, and another Libray not loaded(hdf5), also hdf5 is installed by anaconda. So I also reinstalled hdf5 by homebrew, and another Library not loaded So all the errors like above are caused by the Library not found, First anaconda installed library cannot found (Even though I have add all the necessary env, indeed I tried to commen and uncommen all the not necessary env in Makefile.config and .bash_profile like adding all anaconda lib dirs to LD_xxx pythonlibxxx PKG-configxxx dirs , but the result is the same), Second other library cannot found like mkl( Though I have
|
Finally, I Make through.
as I mentioned above, I have set the mkl evn in the right way in Makefile.config
and in env |
I am angry because in the source code in cmake(cmake/Modules/Summary.cmake): caffe_status(" BLAS : " APPLE THEN "Yes (vecLib)" ELSE "Yes (${BLAS})") That means that if you use APPLE, then you are not able to use ${BLAS} as what you set to. |
I am the user of MKL , but the author of the packages said that @
Oh that means if you are a user of apple, you can only use vecLib. Otherwise, you can BLAS try what you have set to. |
On OS X I always compile with the Makefile build. I have not been able to make CMake compile correctly. Please ask installation questions on the mailing list. From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:
|
I find there is no 10.12 in the makefile
in makefile there is:
\# 10.10 has accelerate while 10.9 has veclib XCODE_CLT_VER := $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep 'version' | sed 's/[^0-9]*\([0-9]\).*/\1/') XCODE_CLT_GEQ_7 := $(shell [ $(XCODE_CLT_VER) -gt 6 ] && echo 1) XCODE_CLT_GEQ_6 := $(shell [ $(XCODE_CLT_VER) -gt 5 ] && echo 1)
when I execute
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
it shows:
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
when I
find / -name 'vecLib.h'
it shows:
AppleTV SDK balabala... Swift SDK balabala... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers/vecLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/vecLib/vecLib.h
which one should I use.
The best way is to modify Makefile or CmakeCache file?
The text was updated successfully, but these errors were encountered: