makefile - Can not install opencv using brew or make on mac osx -
i'm trying install opencv brew ,
but showed me following errors.
i knew should tap "brew tap homebrew/homebrew-science"
but didn't work.
is there idea , or should show information command fix problem quickly.
thanks~
[local] $ brew update error: permission denied - /var/folders/wt/ffjhmkgx4292wtm22b966mdc0000gn/t/.gitignore20130904-819-fdlv65-0 or /usr/local/library/formula/.gitignore [local] $ sudo brew update up-to-date. [local] $ sudo brew install opencv warning: appears have macports or fink installed. software installed other package managers causes known problems homebrew. if formula fails build, uninstall macports/fink , try again. error: no available formula opencv [local] $ brew tap homebrew/homebrew-science error: tapped! [local] $ sudo brew tap homebrew/homebrew-science error: tapped! [local] $ sudo brew install opencv warning: appears have macports or fink installed. software installed other package managers causes known problems homebrew. if formula fails build, uninstall macports/fink , try again. error: no available formula opencv [local] $ brew install opencv warning: appears have macports or fink installed. software installed other package managers causes known problems homebrew. if formula fails build, uninstall macports/fink , try again. error: no available formula opencv if tried make manually tutorial http://tilomitra.com/opencv-on-mac-osx/ see error after make -j8
_ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o) "_xvid_plugin_lumimasking", referenced from: _xvid_encode_init in libavcodec.a(libxvid.o) "_xvid_plugin_single", referenced from: _xvid_encode_init in libavcodec.a(libxvid.o) ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) make[2]: *** [lib/libopencv_highgui.2.4.6.dylib] error 1 make[1]: *** [modules/highgui/cmakefiles/opencv_highgui.dir/all] error 2 make: *** [all] error 2
i have encountered similar problem building opencv using brew. central issue opencv not build when building against ffmpeg (it try if ffmpeg installed.)
as suggested here, problem can resolved using following brew command build opencv, forces alternative version of build environment (one of top troubleshooting suggestions brew):
brew install opencv --env=std hope works too!
Comments
Post a Comment