Installation von opencv-3.1.0 auf MacOS Sierra Nutzung mit python
Ich vor kurzem ein Upgrade auf MacOS Sierra und beschäftige ich mich mit vielen Fragen (ich erwähne es dazu führen, dass es relevant sein kann). Ich bin versucht zu installieren opencv-3.1.0 Verwendung mit python 2.7. und es ist schon unmöglich. Ich heruntergeladen opencv-3.1.0 von hier entpackt und es lief:
python platforms/osx/build_framework.py osx
aus der opencv-3.1.0-Verzeichnis. Will nicht alle drucken der Ausgabe, so ist hier nur die Fehlermeldung.
** BUILD FAILED **
The following build commands failed:
CompileC osx/build/x86_64-MacOSX/modules/world/OpenCV.build/Release/opencv_world.build/Objects-normal/x86_64/cap_qtkit.o modules/videoio/src/cap_qtkit.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
============================================================
ERROR: Command '['xcodebuild', 'ARCHS=x86_64', '-sdk', 'macosx', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
============================================================
Traceback (most recent call last):
File "/Users/christoshadjinikolis/Downloads/opencv-3.1.0/platforms/ios/build_framework.py", line 87, in build
self._build(outdir)
File "/Users/christoshadjinikolis/Downloads/opencv-3.1.0/platforms/ios/build_framework.py", line 81, in _build
self.buildOne(t[0], t[1], mainBD, cmake_flags)
File "/Users/christoshadjinikolis/Downloads/opencv-3.1.0/platforms/ios/build_framework.py", line 139, in buildOne
execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir)
File "/Users/christoshadjinikolis/Downloads/opencv-3.1.0/platforms/ios/build_framework.py", line 34, in execute
retcode = check_call(cmd, cwd = cwd)
File "/Users/christoshadjinikolis/anaconda/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['xcodebuild', 'ARCHS=x86_64', '-sdk', 'macosx', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
Würde Ihre Hilfe schätzen. Danke.
Du musst angemeldet sein, um einen Kommentar abzugeben.
Nachdem Sie die post hier ich war in der Lage, es zu installieren, Prima ausgeführt:
brew install opencv3 --HEAD --with-contrib
Das Problem scheint zu sein, im Zusammenhang mit dem QuickTime-codecs. Sie müssen angeben, dass die Bibliothek installiert ist, mit ffmpeg statt und es sollte funktionieren.
brew install homebrew/science/opencv3 --with-ffmpeg --with-tbb --with-contrib
Versuchen:
conda erstellen -n opencv-python=2
Quelle aktivieren opencv
conda install-c conda-Schmiede opencv==3.1.0