Undefined symbols for architecture x86_64: for caffe build

前端 未结 1 1034
面向向阳花
面向向阳花 2021-02-04 18:09

I got this error for caffe build. How can I fix it? I\'m using Mac OSX Yosemite 10.10.1.

CONSOLE LOG

Machida-no-MacBook-Air:caffe machidahiroaki$ /usr/bi         


        
1条回答
  •  广开言路
    2021-02-04 18:38

    Solved!

    cv::imread(cv::String const&, int) is defined on libopencv_imgcodecs.dylib and Makefile is missing it.

    So, I added opencv_imgcodecs to Makefile.

    LIBRARIES += glog gflags protobuf leveldb snappy \
            lmdb \
            boost_system \
            hdf5_hl hdf5 \
            opencv_imgcodecs opencv_highgui opencv_imgproc opencv_core pthread
    

    0 讨论(0)
提交回复
热议问题