setting up caffe on mac 10.12 (sierra) – "symbol(s) not found for architecture x86_64"

225 views
Skip to first unread message

sarah h

unread,
May 26, 2017, 6:00:43 PM5/26/17
to Caffe Users
hello, 

i have been trying to set up caffe on my macbook pro for three days now... maybe you can help me?

i was originally on mac os 10.11 el capitan with an outdated xcode (7.3). in order to update xcode i had to upgrade to Sierra (mac os 10.12)

i followed several tutorials including these:

but whenever i try to run 

make all

i get this error:

LD -o .build_release/lib/libcaffe.so.1.0.0

clang: warning: argument unused during compilation: '-pthread'

Undefined symbols for architecture x86_64:

  "cv::String::deallocate()", referenced from:

..............
..............
..............

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1



- i have xcode 8 now, but downgraded the xcode command line tools to 7.3.2.
- i don't have an NVIDIA graphics card but still installed CUDA (from what i read online it's a prerequisite for caffe)... i tried cuda 7 (as recommended on the berkeley vision site) and currently cuda 8
- right now i'm using CUDA-8 
- i used homebrew to install opencv as recommended online (opencv 2.4.13.2)
- i realize that the linker errors have to do with libc++ vs libstdc++  ! i manually checked all kinds of dependencies with otool -L to see if any still used libstdc++ but it seems they should all be built with libc++.
- i use openblas
- protobuf 3.3.0
- i added opencv_highgui opencv_imgproc opencv_core opencv_imgcodecs to LIBRARIES in the makefile


any advice?


Steven Chen

unread,
Dec 5, 2017, 9:26:38 AM12/5/17
to Caffe Users
I have the same issue


Reply all
Reply to author
Forward
0 new messages