i am trying to install caffe in my ubuntu 14.04 system, i have downloaded the caffe-master from github. now when i did make all i am geting this error..can someone tell me how to overcome this issue
root@tesla-S2050-host:/home/dmacs7/caffe-master# make all
CXX/LD -o .build_release/tools/compute_image_mean.bin
.build_release/lib/libcaffe.so: undefined reference to cblas_sgemv'
.build_release/lib/libcaffe.so: undefined reference tocblas_dgemm'
.build_release/lib/libcaffe.so: undefined reference to cblas_sscal'
.build_release/lib/libcaffe.so: undefined reference tocblas_dgemv'
.build_release/lib/libcaffe.so: undefined reference to cblas_saxpy'
.build_release/lib/libcaffe.so: undefined reference tocblas_ddot'
.build_release/lib/libcaffe.so: undefined reference to cblas_dasum'
.build_release/lib/libcaffe.so: undefined reference tocblas_sgemm'
.build_release/lib/libcaffe.so: undefined reference to cblas_dscal'
.build_release/lib/libcaffe.so: undefined reference tocblas_scopy'
.build_release/lib/libcaffe.so: undefined reference to cblas_sasum'
.build_release/lib/libcaffe.so: undefined reference tocblas_daxpy'
.build_release/lib/libcaffe.so: undefined reference to cblas_dcopy'
.build_release/lib/libcaffe.so: undefined reference tocblas_sdot'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/compute_image_mean.bin] Error 1
I had the same issue. What does your makefile.config look like? Turns out I set BLAS := OpenBlas when I should've set BLAS := open.
hii.... i set BLAS:= open in my makefile.config and i did "make all"...and it worked. But when i typed the next command "make test"..then again i am geting the same error.....if u figured out just let me know
thnks :)
Did you try doing a make clean before you re-made with this setting fixed?
yeah i did,,,,,even i tried to install again and again..is ur make all
command working??.....i feel there some is reference problem in
caffe_master folder
On Sun, Jul 5, 2015 at 11:03 AM jmhessel [email protected] wrote:
Did you try doing a make clean before you re-made with this setting fixed?
—
Reply to this email directly or view it on GitHub
https://github.com/BVLC/caffe/issues/2685#issuecomment-118582983.
now the problem is here in the test directory..test_caffe_main.cpp.....it stops here...
root@tesla-S2050-host:/home/dmacs7/caffe# make runtest
CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
/usr/lib/libcaffe.so: undefined reference to cblas_sgemv'
/usr/lib/libcaffe.so: undefined reference tocblas_dgemm'
/usr/lib/libcaffe.so: undefined reference to cblas_sscal'
/usr/lib/libcaffe.so: undefined reference tocblas_dgemv'
/usr/lib/libcaffe.so: undefined reference to cblas_saxpy'
/usr/lib/libcaffe.so: undefined reference tocblas_ddot'
/usr/lib/libcaffe.so: undefined reference to cblas_dasum'
/usr/lib/libcaffe.so: undefined reference tocblas_sgemm'
/usr/lib/libcaffe.so: undefined reference to cblas_dscal'
/usr/lib/libcaffe.so: undefined reference tocblas_scopy'
/usr/lib/libcaffe.so: undefined reference to cblas_sasum'
/usr/lib/libcaffe.so: undefined reference tocblas_daxpy'
/usr/lib/libcaffe.so: undefined reference to cblas_dcopy'
/usr/lib/libcaffe.so: undefined reference tocblas_sdot'
collect2: error: ld returned 1 exit status
make: *** [.build_release/test/test_all.testbin] Error 1
Closing as this does not appear to be a bug with Caffe, but an issue with build configuration/dynamic linking. Please ask installation questions on the caffe-users list. Thanks!
Have you solved the problem?
@DanlanChen Have you solved the problem too? :crying_cat_face:
check if there is a space after BLAS := mkl
make sure no space after mkl
@Merlin2013 Your answer worked for me! Thank you very much!!
Most helpful comment
check if there is a space after BLAS := mkl
make sure no space after mkl