macOS High Sierra errors
Closed this issue · 4 comments
denisgrib commented
> $ sed -i 's/^Libs: .*/& -lblas -llapack/' /usr/local/lib/pkgconfig/dlib-1.pc
sed: 1: "/usr/local/lib/pkgconfi ...": extra characters at the end of l command
denisgrib commented
> $ go install
# github.com/Kagami/go-face
Undefined symbols for architecture x86_64:
"_cblas_dgemm", referenced from:
dlib::point_transform_affine dlib::find_affine_transform<float>(std::__1::vector<dlib::vector<float, 2l>, std::__1::allocator<dlib::vector<float, 2l> > > const&, std::__1::vector<dlib::vector<float, 2l>, std::__1::allocator<dlib::vector<float, 2l> > > const&) in _x005.o
dlib::matrix<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::type, dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::NC, dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::NR, dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::mem_manager_type, dlib::row_major_layout> const dlib::pinv_helper<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_statel
Kagami commented
Can you show contents of /usr/local/lib/pkgconfig/dlib-1.pc
?
Kagami commented
Nevermind, it turned out sed on macOS has a bit different CLI syntax.
Use sed -i '' 's/^Libs: .*/& -lblas -llapack/' /usr/local/lib/pkgconfig/dlib-1.pc
instead (fixed in readme).
denisgrib commented
Thanks!