Can't build 4.2.0 using homebrew

asked 2020-02-12 15:05:02 -0600

I am trying to build OpenCV 4.2.0 using the following command.

brew install --build-from-source opencv

But I get a make error.

/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(arenastring.cc.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(io_win32.cc.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(gzip_stream.cc.o) has no symbols
/usr/bin/ranlib ../lib/liblibprotobuf.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(arenastring.cc.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(io_win32.cc.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(gzip_stream.cc.o) has no symbols
[ 24%] Built target libprotobuf
make: *** [all] Error 2

I've installed the xcode command line tools.

Any help would be appreciated.

edit retag flag offensive close merge delete

Comments

Try this brew install --build-from-source --with-python --fresh -vd protobuf

supra56 gravatar imagesupra56 ( 2020-02-13 04:07:59 -0600 )edit