Thank you for taking your time reading this, I'm stuck at building matcaffe, Im using Linux (Manjaro KDE) and i was able to build caffe using make all, make test, make runtest. Everything worked fine, but I'm not able to build matcaffe. I'm really new to building software from source and still learning how to do it properly, so please excuse me if my question is trivial.
Here is the console logs which I'm getting, any help would be appreciated.
MEX matlab/+caffe/private/caffe_.cpp
Building with 'g++'.
Warning: gcc version '10.2.0' not supported. See
https://www.mathworks.com/support/compilers/current_release.
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_gemm<float>
(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, float, float const*, float const*, float, float*)':
math_functions.cpp:(.text+0x137): undefined reference to `cblas_sgemm'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_gemm<double
>(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, double, double const*, double const*, double, double*)':
math_functions.cpp:(.text+0x187): undefined reference to `cblas_dgemm'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_gemv<float>
(CBLAS_TRANSPOSE, int, int, float, float const*, float const*, float, float*)':
math_functions.cpp:(.text+0x1bc): undefined reference to `cblas_sgemv'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_gemv<double
>(CBLAS_TRANSPOSE, int, int, double, double const*, double const*, double, double*)':
math_functions.cpp:(.text+0x1ec): undefined reference to `cblas_dgemv'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_axpby<float
>(int, float, float const*, float, float*)':
math_functions.cpp:(.text+0x2e3): undefined reference to `cblas_sscal'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_axpby<doubl
e>(int, double, double const*, double, double*)':
math_functions.cpp:(.text+0x344): undefined reference to `cblas_dscal'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_scale<float
>(int, float, float const*, float*)':
math_functions.cpp:(.text+0x3e1): undefined reference to `cblas_scopy'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_scale<doubl
e>(int, double, double const*, double*)':
math_functions.cpp:(.text+0x431): undefined reference to `cblas_dcopy'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_axpy<float>(int
, float, float const*, float*)':
math_functions.cpp:(.text+0x20f): undefined reference to `cblas_saxpy'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_axpy<double>(in
t, double, double const*, double*)':
math_functions.cpp:(.text+0x22f): undefined reference to `cblas_daxpy'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_scal<float>(int
, float, float*)':
math_functions.cpp:(.text+0x2a6): undefined reference to `cblas_sscal'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_scal<double>(in
t, double, double*)':
math_functions.cpp:(.text+0x2b6): undefined reference to `cblas_dscal'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_axpby<float
>(int, float, float const*, float, float*)':
math_functions.cpp:(.text+0x30d): undefined reference to `cblas_saxpy'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_axpby<doubl
e>(int, double, double const*, double, double*)':
math_functions.cpp:(.text+0x36f): undefined reference to `cblas_daxpy'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `float caffe::caffe_cpu_strided_do
t<float>(int, float const*, int, float const*, int)':
math_functions.cpp:(.text+0x381): undefined reference to `cblas_sdot'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `double caffe::caffe_cpu_strided_d
ot<double>(int, double const*, int, double const*, int)':
math_functions.cpp:(.text+0x391): undefined reference to `cblas_ddot'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `float caffe::caffe_cpu_asum<float
>(int, float const*)':
math_functions.cpp:(.text+0x3a6): undefined reference to `cblas_sasum'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `double caffe::caffe_cpu_asum<doub
le>(int, double const*)':
math_functions.cpp:(.text+0x3b6): undefined reference to `cblas_dasum'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_scale<float
>(int, float, float const*, float*)':
math_functions.cpp:(.text+0x3fd): undefined reference to `cblas_sscal'
/usr/bin/ld: .build_release/lib/libcaffe.a(math_functions.o): in function `void caffe::caffe_cpu_scale<doubl
e>(int, double, double const*, double*)':
math_functions.cpp:(.text+0x44d): undefined reference to `cblas_dscal'
collect2: error: ld returned 1 exit status
make: *** [Makefile:541: matlab/+caffe/private/caffe_.mexa64] Error 255